util-linux/include
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 include: add timer.h 2013-03-13 12:13:11 +01:00
all-io.h include: cleanup copyright headers 2013-01-08 15:10:17 +01:00
at.h lib: [at.c] add readlink_at(), fix semantic for absolute paths 2011-05-18 15:57:16 +02:00
bitops.h include: cleanup copyright headers 2013-01-08 15:10:17 +01:00
blkdev.h include: cleanup copyright headers 2013-01-08 15:10:17 +01:00
c.h include/xalloc: add warn_unused_result to allocation functions 2013-07-09 10:44:06 +02:00
canonicalize.h include: cleanup copyright headers 2013-01-08 15:10:17 +01:00
carefulputc.h Imported from util-linux-2.13-pre1 tarball. 2006-12-07 00:26:54 +01:00
closestream.h include: add close_fd() for noticing write errors before close() 2013-04-26 13:26:06 +02:00
colors.h lib/colors: add colormode_or_err() 2013-05-07 09:09:35 +02:00
cpuset.h include: cleanup copyright headers 2013-01-08 15:10:17 +01:00
crc32.h lib: add a generic crc32() 2009-09-16 16:17:41 +02:00
env.h include/env: unify indentation 2012-10-19 15:07:44 +02:00
exec_shell.h unshare,nsenter: spawn shell by default 2013-02-14 14:42:35 +01:00
exitcodes.h include/exitcodes: clean up names, add _EX_ suffix 2012-03-20 11:22:08 +01:00
fileutils.h include/fileutils: use O_CLOEXEC for mktemp stuff 2013-04-03 16:12:34 +02:00
ismounted.h lib: import whole ismounted.c code from e2fsprogs 2009-10-14 01:13:18 +02:00
linux_reboot.h Imported from util-linux-2.13-pre1 tarball. 2006-12-07 00:26:54 +01:00
linux_version.h lib: add linux_version.{c,h} 2007-11-06 02:40:13 +01:00
list.h include: cleanup copyright headers 2013-01-08 15:10:17 +01:00
loopdev.h losetup: use loop-control to explicitly ask for device 2013-08-06 11:04:35 +02:00
mangle.h lib/mangle: cleanup, add unhexmangle 2012-04-26 09:17:44 +02:00
match.h lib,match: split match_fstype() from libmount 2011-11-15 15:17:19 +01:00
mbsalign.h lib/mbsalign: correct license header from GPLv[23] to LGPLv2+ 2013-03-20 14:03:28 +01:00
md5.h build-sys: check HAVE_ definitions with #ifdef [smatch scan] 2011-12-02 18:21:46 +01:00
minix.h libblkid: arch independent minix detection 2013-04-15 15:14:33 +02:00
namespace.h include: fix SYS_{unshare,nsenter} usage 2013-04-17 16:58:00 +02:00
nls.h lib/strutils: circumvent missing localeconv() 2012-06-05 14:54:12 +02:00
optutils.h include/optutils: make collisions detection between options more robust 2013-03-13 13:04:02 +01:00
pager.h lib: add pager functionality 2012-04-23 11:52:39 +02:00
pamfail.h include: cleanup copyright headers 2013-01-08 15:10:17 +01:00
path.h lib/path: add path_read_u64() 2012-11-23 14:58:21 +01:00
pathnames.h lscpu: detect more hypervisor vendors 2013-05-20 16:30:23 +02:00
procutils.h lib/procutils: add simple API to scan /proc/PID/* 2013-03-12 17:24:14 +01:00
pt-sun.h libblkid: rename in sun_disklabel for compatibility with fdisk 2013-03-11 13:00:55 +01:00
randutils.h libuuid: avoid double open and leaking fd (reworked) 2012-05-10 11:43:49 +02:00
rpmatch.h include: add fallback for rpmatch() 2011-01-05 16:18:08 +01:00
setproctitle.h lib: cleanup setproctitle.c 2011-10-26 23:17:15 +02:00
strutils.h lib/strutils: add strtotimeval_or_err() 2013-03-13 11:51:15 +01:00
swapheader.h swaplabel: new command 2010-04-02 16:16:59 +02:00
sysfs.h include: add missing values to sysfs_cxt initializer definition 2013-01-24 16:33:30 +01:00
timer.h include/timer: return setitimer return value 2013-03-13 14:07:23 +01:00
tt.h lib/tty: don't truncate output on non-terminals 2013-02-19 14:10:24 +01:00
ttyutils.h agetty: don't remove ECHOCTL from c_lflag 2013-06-03 14:06:18 +02:00
wholedisk.h lib: wholedisk - extend API, add test program 2009-03-12 14:31:50 +01:00
widechar.h build-sys: fix ifdef ENABLE_WIDECHAR usage 2007-01-30 13:49:50 +01:00
xalloc.h include/xalloc: add warn_unused_result to allocation functions 2013-07-09 10:44:06 +02:00
xgetpass.h losetup: move xgetpass() to lib/xgetpass.c 2012-01-11 15:17:06 +01:00