diff options
author | Ming Lei | 2015-11-17 15:32:48 +0100 |
---|---|---|
committer | Karel Zak | 2015-11-19 11:27:36 +0100 |
commit | faeef4d2e9d5e38bed57846ba903009990f24422 (patch) | |
tree | edeabbde252963bc44bc4e1e18eeccd76159fc6a /include/loopdev.h | |
parent | losetup: support ioctl cmd of LOOP_SET_DIRECT_IO (diff) | |
download | kernel-qcow2-util-linux-faeef4d2e9d5e38bed57846ba903009990f24422.tar.gz kernel-qcow2-util-linux-faeef4d2e9d5e38bed57846ba903009990f24422.tar.xz kernel-qcow2-util-linux-faeef4d2e9d5e38bed57846ba903009990f24422.zip |
losetup: support list direct io
So that user can see if DIO is set for current loop device.
Signed-off-by: Ming Lei <tom.leiming@gmail.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 9a7f6ba69..18ca41fe8 100644 --- a/include/loopdev.h +++ b/include/loopdev.h @@ -40,6 +40,7 @@ enum { LO_FLAGS_USE_AOPS = 2, LO_FLAGS_AUTOCLEAR = 4, /* kernel >= 2.6.25 */ LO_FLAGS_PARTSCAN = 8, /* kernel >= 3.2 */ + LO_FLAGS_DIRECT_IO = 16, /* kernel >= 4.2 */ }; #define LO_NAME_SIZE 64 @@ -181,6 +182,7 @@ extern int loopcxt_get_encrypt_type(struct loopdev_cxt *lc, uint32_t *type); extern const char *loopcxt_get_crypt_name(struct loopdev_cxt *lc); extern int loopcxt_is_autoclear(struct loopdev_cxt *lc); extern int loopcxt_is_readonly(struct loopdev_cxt *lc); +extern int loopcxt_is_dio(struct loopdev_cxt *lc); extern int loopcxt_is_partscan(struct loopdev_cxt *lc); extern int loopcxt_find_by_backing_file(struct loopdev_cxt *lc, const char *filename, |