diff options
author | Stanislav Brabec | 2016-08-02 19:57:56 +0200 |
---|---|---|
committer | Karel Zak | 2016-08-17 12:49:06 +0200 |
commit | bfd4e1f75898510f93779766688cc5086404c23b (patch) | |
tree | 9a0e5a7adc270bb9dd2bb06fdda8bd2ffd36823b /include | |
parent | losetup: add --nooverlap options (diff) | |
download | kernel-qcow2-util-linux-bfd4e1f75898510f93779766688cc5086404c23b.tar.gz kernel-qcow2-util-linux-bfd4e1f75898510f93779766688cc5086404c23b.tar.xz kernel-qcow2-util-linux-bfd4e1f75898510f93779766688cc5086404c23b.zip |
loopdev: Implememt loopcxt_set_status()
Implement stand-alone loopcxt_set_status(). It allows manipulation with some
loop device parameters even if it is initialized.
Its function is limited by the kernel implementation, and only a small subset of
changes is allowed.
For more see linux/drivers/block/loop.c:loop_set_status()
Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Diffstat (limited to 'include')
-rw-r--r-- | include/loopdev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/loopdev.h b/include/loopdev.h index ed6ef2384..953d2db89 100644 --- a/include/loopdev.h +++ b/include/loopdev.h @@ -164,6 +164,7 @@ extern int loopcxt_deinit_iterator(struct loopdev_cxt *lc); extern int loopcxt_next(struct loopdev_cxt *lc); extern int loopcxt_setup_device(struct loopdev_cxt *lc); +extern int loopcxt_set_status(struct loopdev_cxt *lc); extern int loopcxt_delete_device(struct loopdev_cxt *lc); extern int loopcxt_set_capacity(struct loopdev_cxt *lc); extern int loopcxt_set_dio(struct loopdev_cxt *lc, unsigned long use_dio); |