From 7a05926fbe6ed92e60e0afc9857ced91a532f791 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 21 Jul 2023 10:26:13 +0900 Subject: udev: re-introduce symlinks for loopback block device But the directories are changed from /dev/loop/by-ref/ -> /dev/disk/by-loop-ref/ and /dev/loop/by-inode/ -> /dev/disk/by-loop-inode/. As /dev/loop/ is used by losetup command for other purpose. See issue #28475. This effectively reverts commits 9915cc60868c77e7e8cecb669ddb90516dffc7df, 5022fab15fc16204d163883ca818fd6092dc919c, and c0d998248e10e1dcf18108fdbb70f259acd452eb. --- man/systemd-dissect.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'man/systemd-dissect.xml') diff --git a/man/systemd-dissect.xml b/man/systemd-dissect.xml index 9a3ed6ce7b..27c5d3c7a8 100644 --- a/man/systemd-dissect.xml +++ b/man/systemd-dissect.xml @@ -413,7 +413,14 @@ .lo_file_name field for the block device. Note this is distinct from the /sys/class/block/loopX/loop/backing_file attribute file that always reports a path referring to the actual backing file. The latter is subject to mount namespace translation, the - former is not. + former is not. + + This setting is particularly useful in combination with the command, + as it allows later referencing the allocated loop device via + /dev/disk/by-loop-ref/… symlinks. Example: first, set up the loopback device + via systemd-dissect attach --loop-ref=quux foo.raw, and then reference it in a + command via the specified filename: cfdisk /dev/disk/by-loop-ref/quux. + -- cgit v1.2.3