summaryrefslogtreecommitdiffstats
path: root/src/shared/loop-util.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-09-05 22:19:46 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-09-07 13:45:24 +0200
commite77cab824829f33e7870eb188ccd014acac49075 (patch)
tree887c92f0c23af859ea2f6ab5330c7b9849f27817 /src/shared/loop-util.h
parentloop-util: move device_has_block_children() to blockdev-util.c (diff)
downloadsystemd-e77cab824829f33e7870eb188ccd014acac49075.tar.xz
systemd-e77cab824829f33e7870eb188ccd014acac49075.zip
loop-util: save backing file of loopback block device
It will be used in later commits.
Diffstat (limited to 'src/shared/loop-util.h')
-rw-r--r--src/shared/loop-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/loop-util.h b/src/shared/loop-util.h
index 43bd25d445..cb0183ba07 100644
--- a/src/shared/loop-util.h
+++ b/src/shared/loop-util.h
@@ -17,6 +17,7 @@ struct LoopDevice {
dev_t devno;
char *node;
sd_device *dev;
+ char *backing_file;
bool relinquished;
uint64_t diskseq; /* Block device sequence number, monothonically incremented by the kernel on create/attach, or 0 if we don't know */
uint64_t uevent_seqnum_not_before; /* uevent sequm right before we attached the loopback device, or UINT64_MAX if we don't know */