diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-03-06 12:55:59 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-03-09 16:41:26 +0100 |
commit | 5ac52d1f7b7cd11cad8b5c2e9812d7ee7560a517 (patch) | |
tree | 89743dbfe6f39de867596156730f87830a565f2e /test | |
parent | 6f5ef9e4c7b240d67cdefb1232c9e85e43d31586 (diff) | |
download | systemd-5ac52d1f7b7cd11cad8b5c2e9812d7ee7560a517.tar.gz |
udev: add /dev/loop/ symlinks
This adds symlinks that allow accessing loopback block devices via stable
names that reference their backing block devices, make the unpredictable
naming of loopback devices less of an issue.
Example:
1. Create a loopback block device for a file $F
losetup --find $F
2. Reference the backing block device via its inode:
L="$(stat -c '/dev/loop/by-inode/%Hd:%Ld-%i' $F)"
fdisk $L
In the above the loop device name (which might be /dev/loop47 or any
other name) is not used at all.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions