diff options
author | Karel Zak | 2011-11-15 12:35:23 +0100 |
---|---|---|
committer | Karel Zak | 2012-01-09 23:28:43 +0100 |
commit | 59d749c33136b85fc4a51a0af6c48cc97e3d1b31 (patch) | |
tree | baed45bc190086fc3351684d35dce1eeae770416 /include | |
parent | sfdisk: use is_blkdev (diff) | |
download | kernel-qcow2-util-linux-59d749c33136b85fc4a51a0af6c48cc97e3d1b31.tar.gz kernel-qcow2-util-linux-59d749c33136b85fc4a51a0af6c48cc97e3d1b31.tar.xz kernel-qcow2-util-linux-59d749c33136b85fc4a51a0af6c48cc97e3d1b31.zip |
loopdev: support LO_FLAGS_PARTSCAN flag (kernel 3.2)
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/loopdev.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/loopdev.h b/include/loopdev.h index 7c7880e1b..238b308fe 100644 --- a/include/loopdev.h +++ b/include/loopdev.h @@ -120,6 +120,8 @@ enum { /* * High-level */ +extern int loopmod_supports_partscan(void); + extern int is_loopdev(const char *device); extern int loopdev_is_autoclear(const char *device); @@ -173,6 +175,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_partscan(struct loopdev_cxt *lc); extern int loopcxt_find_by_backing_file(struct loopdev_cxt *lc, const char *filename, uint64_t offset, int flags); |