summaryrefslogtreecommitdiff
path: root/include/loopdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/loopdev.h')
-rw-r--r--include/loopdev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/loopdev.h b/include/loopdev.h
index 9f199a086..793539935 100644
--- a/include/loopdev.h
+++ b/include/loopdev.h
@@ -99,6 +99,7 @@ struct loopdev_cxt {
unsigned int extra_check:1; /* unusual stuff for iterator */
unsigned int debug:1; /* debug mode ON/OFF */
unsigned int info_failed:1; /* LOOP_GET_STATUS ioctl failed */
+ unsigned int control_ok:1; /* /dev/loop-control success */
struct sysfs_cxt sysfs; /* pointer to /sys/dev/block/<maj:min>/ */
struct loop_info64 info; /* for GET/SET ioctl */
@@ -149,6 +150,7 @@ extern void loopcxt_enable_debug(struct loopdev_cxt *lc, int enable);
extern int loopcxt_set_device(struct loopdev_cxt *lc, const char *device)
__attribute__ ((warn_unused_result));
extern int loopcxt_has_device(struct loopdev_cxt *lc);
+extern int loopcxt_add_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);