summaryrefslogtreecommitdiffstats
path: root/include/loopdev.h
diff options
context:
space:
mode:
authorStanislav Brabec2016-07-14 15:29:21 +0200
committerKarel Zak2016-08-03 11:53:28 +0200
commit211e1d4609d36081fc57dd31cad6806f51b06016 (patch)
tree5572e3aa78ba4f0fff429bd3cd6c947ebd1ec3fc /include/loopdev.h
parentAdd sizelimit to internal API (diff)
downloadkernel-qcow2-util-linux-211e1d4609d36081fc57dd31cad6806f51b06016.tar.gz
kernel-qcow2-util-linux-211e1d4609d36081fc57dd31cad6806f51b06016.tar.xz
kernel-qcow2-util-linux-211e1d4609d36081fc57dd31cad6806f51b06016.zip
Implement loopcxt_check_conflict()
Add a function that searches for a possible conflicting (i. e. overlaying loop device). Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Diffstat (limited to 'include/loopdev.h')
-rw-r--r--include/loopdev.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/loopdev.h b/include/loopdev.h
index 57fcc1b10..706388e86 100644
--- a/include/loopdev.h
+++ b/include/loopdev.h
@@ -188,6 +188,9 @@ extern int loopcxt_find_by_backing_file(struct loopdev_cxt *lc,
const char *filename,
uint64_t offset, uint64_t sizelimit,
int flags);
+extern int loopcxt_check_conflict(struct loopdev_cxt *lc,
+ const char *filename,
+ uint64_t offset, uint64_t sizelimit);
extern int loopcxt_is_used(struct loopdev_cxt *lc,
struct stat *st,