diff options
author | Karel Zak | 2011-12-21 19:24:58 +0100 |
---|---|---|
committer | Karel Zak | 2011-12-22 12:19:38 +0100 |
commit | c7e0925defe178ac31a524463a3488e4d72b6e4b (patch) | |
tree | d77b6d68a543aceb11bc13baa9647333346c110f /include/loopdev.h | |
parent | losetup: rewrite -f (diff) | |
download | kernel-qcow2-util-linux-c7e0925defe178ac31a524463a3488e4d72b6e4b.tar.gz kernel-qcow2-util-linux-c7e0925defe178ac31a524463a3488e4d72b6e4b.tar.xz kernel-qcow2-util-linux-c7e0925defe178ac31a524463a3488e4d72b6e4b.zip |
losetup: rewrite loop setup
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/loopdev.h')
-rw-r--r-- | include/loopdev.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/loopdev.h b/include/loopdev.h index 27f9668eb..7c7880e1b 100644 --- a/include/loopdev.h +++ b/include/loopdev.h @@ -114,6 +114,7 @@ enum { LOOPDEV_FL_NOIOCTL = (1 << 6), LOOPDEV_FL_DEVSUBDIR = (1 << 7), LOOPDEV_FL_CONTROL = (1 << 8), /* system with /dev/loop-control */ + LOOPDEV_FL_SIZELIMIT = (1 << 9) }; /* @@ -139,6 +140,7 @@ extern void loopcxt_deinit(struct loopdev_cxt *lc); extern void loopcxt_enable_debug(struct loopdev_cxt *lc, int enable); extern int loopcxt_set_device(struct loopdev_cxt *lc, const char *device); +extern int loopcxt_has_device(struct loopdev_cxt *lc); extern char *loopcxt_strdup_device(struct loopdev_cxt *lc); extern const char *loopcxt_get_device(struct loopdev_cxt *lc); extern struct sysfs_cxt *loopcxt_get_sysfs(struct loopdev_cxt *lc); |