translate the device name to backing file and then search in mtab for the
filename. See loopdev_get_loopfile().
- - (!) add --source and --target options to specify device and mountpoint
-
- fstab:
- /dev/sda1 /foo auto defaults 0 0
- /foo /mnt auto bind 0 0
- command line:
- mount -o remount,ro /foo
-
- ... this command is ambiguous. It would be better to have a way how specify
- target or source:
-
- mount --target /foo -o remount,ro
-
- Note that findmnt(8) already supports --target and --source.
-
- add ---target-prefix option to specify prefix for mountpoints
so then you can