diff options
author | Karel Zak | 2011-09-29 23:28:36 +0200 |
---|---|---|
committer | Karel Zak | 2011-09-29 23:28:36 +0200 |
commit | aee31ddc598853670c850cf3c1424191bee5ad02 (patch) | |
tree | e324652d148e63c089a0bb1bf66361cd99bd4111 /include/loopdev.h | |
parent | tests: add loopdev libmount test (diff) | |
download | kernel-qcow2-util-linux-aee31ddc598853670c850cf3c1424191bee5ad02.tar.gz kernel-qcow2-util-linux-aee31ddc598853670c850cf3c1424191bee5ad02.tar.xz kernel-qcow2-util-linux-aee31ddc598853670c850cf3c1424191bee5ad02.zip |
lib,loopdev: add debugu messages
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 9a9f0994a..6136535e3 100644 --- a/include/loopdev.h +++ b/include/loopdev.h @@ -88,6 +88,7 @@ struct loopdev_cxt { int flags; /* LOOPDEV_FL_* flags */ unsigned int has_info:1; /* .info contains data */ unsigned int extra_check:1; /* unusual stuff for iterator */ + unsigned int debug:1; /* debug mode ON/OFF */ struct sysfs_cxt sysfs; /* pointer to /sys/dev/block/<maj:min>/ */ struct loop_info64 info; /* for GET/SET ioctl */ @@ -124,6 +125,7 @@ extern int loopdev_delete(const char *device); */ extern int loopcxt_init(struct loopdev_cxt *lc, int flags); 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 char *loopcxt_strdup_device(struct loopdev_cxt *lc); |