From: Yu Watanabe Date: Sun, 4 Sep 2022 17:39:16 +0000 (+0900) Subject: loop-util: fix LoopDevice.devno assigned by loop_device_open() X-Git-Tag: v252-rc1~258^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b5626d67a63d7aae019d533d5c7173d7e1a2690;p=thirdparty%2Fsystemd.git loop-util: fix LoopDevice.devno assigned by loop_device_open() --- diff --git a/src/shared/loop-util.c b/src/shared/loop-util.c index 90451415ff9..c376244cb7a 100644 --- a/src/shared/loop-util.c +++ b/src/shared/loop-util.c @@ -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,