systemd-mount: support unmounting loop devices by backing files (#6211)

This makes `systemd-umount` or `systemd-mount -u` support unmounting
loop devices by the corresponding backing files, like
`systemd-mount --umount /tmp/foo.img /tmp/bar.img`

Fixes #6206.
This commit is contained in:
Yu Watanabe
2017-06-28 14:19:38 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 0d787d5ff8
commit 6f6165bf7d
2 changed files with 98 additions and 52 deletions
+3 -2
View File
@@ -256,8 +256,9 @@
<listitem><para>Stop the mount and automount units corresponding to the specified mount points
<replaceable>WHERE</replaceable> or the devices <replaceable>WHAT</replaceable>.
<command>systemd-mount</command> with this option or <command>systemd-umount</command> can take multiple arguments
which can be path, device, or <filename>/etc/fstab</filename> style node name, like
<command>systemd-mount --umount /path/to/umount /dev/sda1 UUID=xxxxxx-xxxx LABEL=xxxxx</command>.
which can be mount points, devices, <filename>/etc/fstab</filename> style node names, or backing files
corresponding to loop devices, like
<command>systemd-mount --umount /path/to/umount /dev/sda1 UUID=xxxxxx-xxxx LABEL=xxxxx /path/to/disk.img</command>.
</para>
</listitem>
</varlistentry>