From 211e1d4609d36081fc57dd31cad6806f51b06016 Mon Sep 17 00:00:00 2001 From: Stanislav Brabec Date: Thu, 14 Jul 2016 15:29:21 +0200 Subject: Implement loopcxt_check_conflict() Add a function that searches for a possible conflicting (i. e. overlaying loop device). Signed-off-by: Stanislav Brabec --- include/loopdev.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/loopdev.h') 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, -- cgit v1.2.3-55-g7522