diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-03-22 21:22:22 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-04-19 23:16:02 +0200 |
commit | f3859d5f5591494c3022d6e9e4af1538174526fd (patch) | |
tree | f4c0c0bba4bf7a78386ac86e73ae1de1bac22e00 /src/shared/loop-util.h | |
parent | repart: add high-level setting for creating dirs in formatted file systems (diff) | |
download | systemd-f3859d5f5591494c3022d6e9e4af1538174526fd.tar.xz systemd-f3859d5f5591494c3022d6e9e4af1538174526fd.zip |
loop-util: store device major/minor in LoopDevice object
Let's store this away. It's useful when matching up mounts (i.e. struct
stat's .st_dev field) with loopback devices.
Diffstat (limited to 'src/shared/loop-util.h')
-rw-r--r-- | src/shared/loop-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/loop-util.h b/src/shared/loop-util.h index 9538daea31..619b34716b 100644 --- a/src/shared/loop-util.h +++ b/src/shared/loop-util.h @@ -10,6 +10,7 @@ typedef struct LoopDevice LoopDevice; struct LoopDevice { int fd; int nr; + dev_t devno; char *node; bool relinquished; }; |