From 9b5626d67a63d7aae019d533d5c7173d7e1a2690 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 5 Sep 2022 02:39:16 +0900 Subject: [PATCH] loop-util: fix LoopDevice.devno assigned by loop_device_open() --- src/shared/loop-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/loop-util.c b/src/shared/loop-util.c index 90451415ff..c376244cb7 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,