1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-10 17:57:40 +03:00

loop-util: fix LoopDevice.devno assigned by loop_device_open()

This commit is contained in:
Yu Watanabe 2022-09-05 02:39:16 +09:00
parent ffcb33241e
commit 9b5626d67a

View File

@ -851,7 +851,7 @@ int loop_device_open(
.nr = nr,
.node = TAKE_PTR(p),
.relinquished = true, /* It's not ours, don't try to destroy it when this object is freed */
.devno = st.st_dev,
.devno = st.st_rdev,
.diskseq = diskseq,
.uevent_seqnum_not_before = UINT64_MAX,
.timestamp_not_before = USEC_INFINITY,