]> git.ipfire.org Git - thirdparty/systemd.git/commit
storagetm: ensure device lock fd is opened for writing
authorMike Yuan <me@yhndnzj.com>
Sun, 25 Jan 2026 15:50:34 +0000 (16:50 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 27 Feb 2026 20:05:57 +0000 (20:05 +0000)
commitf5d99d4e1619ebe1ce5c4797a3e4f601144dc1f0
treed4d79875eba7baeea82096b9182797fde34991dc
parent3d168dca1e3527c357440924c98f131dc21b09bc
storagetm: ensure device lock fd is opened for writing

Follow-up for e582484789a6d889d11b97d9c2afa74c3c985130

_cleanup_close_ is dropped, as the fd would be immediately
consumed by the nvme_subsystem_add() call below anyways.

(cherry picked from commit 28fb7e869c6be086fc7ab8ddbc8a4e00b53714b6)
(cherry picked from commit a827513472cda8f65faabc536ef396189d6ecd15)
(cherry picked from commit 763a2a400c4509800ada9da1bd1ac3a7438a3624)
src/storagetm/storagetm.c