util-linux/lib
Karel Zak 3cb2413b02 losetup: use loop-control to explicitly ask for device
Now we use LOOP_CTL_GET_FREE ioctl to ask for free device, for example

  losetup -f foo.img

Unfortunately, losetup(8) allows to ask for specified device

  losetup /dev/loop100 foo.img

and in this case we assume that the device already exists in the
system. This is incorrect, we should be able to use loop-control
LOOP_CTL_ADD ioctl to ask for the specified device.

Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-06 11:04:35 +02:00
..
Makemodule.am lib/colors: add support for auto, always and never modes 2013-05-06 19:07:23 +02:00
at.c include: cleanup copyright headers 2013-01-08 15:10:17 +01:00
blkdev.c loopdev: sync capacity after setting it 2013-04-09 14:32:50 +02:00
canonicalize.c lib/canonical: use realpath() from libc 2013-07-01 16:13:46 +02:00
colors.c lib/colors: add colormode_or_err() 2013-05-07 09:09:35 +02:00
cpuset.c include: cleanup copyright headers 2013-01-08 15:10:17 +01:00
crc32.c lib: add a generic crc32() 2009-09-16 16:17:41 +02:00
env.c build-sys: test for secure_getenv() too. 2013-02-06 12:03:22 +01:00
exec_shell.c exec_shell: add a license and touch up func def 2013-07-01 11:46:13 +02:00
fileutils.c lib: use O_CLOEXEC in libcommon 2013-04-03 16:13:06 +02:00
ismounted.c lib: use O_CLOEXEC in libcommon 2013-04-03 16:13:06 +02:00
langinfo.c lib: add fallback for nl_langinfo() 2010-11-15 16:42:45 +01:00
linux_version.c lib: [linux_version.c] simplify version parsing 2011-06-20 13:48:40 +02:00
loopdev.c losetup: use loop-control to explicitly ask for device 2013-08-06 11:04:35 +02:00
mangle.c lib/mangle: remove unused variable 2012-08-13 21:57:34 +02:00
match.c lib/match: fix compiler warning [-Wmissing-prototypes] 2012-07-16 18:29:22 +02:00
mbsalign.c lib/mbsalign: initializations values are never read [clang-analyzer] 2013-07-09 14:25:02 +02:00
md5.c md5: fix strict aliasing warnings 2012-10-10 11:23:24 +02:00
pager.c lib: remove unused code 2013-06-07 12:24:40 +02:00
path.c lib: use O_CLOEXEC in libcommon 2013-04-03 16:13:06 +02:00
procutils.c lib/procutils: add simple API to scan /proc/PID/* 2013-03-12 17:24:14 +01:00
randutils.c lib: use O_CLOEXEC in libcommon 2013-04-03 16:13:06 +02:00
setproctitle.c lib: cleanup setproctitle.c 2011-10-26 23:17:15 +02:00
strutils.c lib/strutils: add strtotimeval_or_err() 2013-03-13 11:51:15 +01:00
sysfs.c lib: use O_CLOEXEC in libcommon 2013-04-03 16:13:06 +02:00
tt.c lib/tty: don't truncate output on non-terminals 2013-02-19 14:10:24 +01:00
ttyutils.c lib/tty: fix get_terminal_name() usage, cleanup code 2013-05-28 12:10:29 +02:00
wholedisk.c lib: use O_CLOEXEC in libcommon 2013-04-03 16:13:06 +02:00
xgetpass.c losetup: make xgetpass more robust 2012-01-17 17:02:34 +01:00