diff options
author | Karel Zak | 2016-08-17 12:28:33 +0200 |
---|---|---|
committer | Karel Zak | 2016-08-17 12:28:33 +0200 |
commit | 9a94b634a343e83bfa2a9d311074e3e520abdddd (patch) | |
tree | b1118ead3294be824b9fdbbf01449bb822aad4cf /include/loopdev.h | |
parent | tests: keep 'hppa' in fdisk/bsd test too (diff) | |
download | kernel-qcow2-util-linux-9a94b634a343e83bfa2a9d311074e3e520abdddd.tar.gz kernel-qcow2-util-linux-9a94b634a343e83bfa2a9d311074e3e520abdddd.tar.xz kernel-qcow2-util-linux-9a94b634a343e83bfa2a9d311074e3e520abdddd.zip |
losetup: add --nooverlap options
This patch introduces overlap detections and loop devices
re-use for losetup(8). We already support this feature for mount(8)
where it's enabled by default (because we mount filesystems and it's
always mistake to share the same filesystem between more loop
devices).
Stanislav has suggested to enable this feature also for losetup by
default. I'm not sure about it, IMHO it's better to keep losetup(8)
simple and stupid by default, and inform users about possible problems
and solutions in the man page.
The feature forces losetup to scan all loop devices always when new
one is requested. This maybe disadvantage (especially when we use
control-loop to avoid /sys or /dev scans) on system with huge number
of loop devices.
Co-Author: Stanislav Brabec <sbrabec@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/loopdev.h')
0 files changed, 0 insertions, 0 deletions