From de4acb053ef72da421396a4d0c43898ce795f899 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 20 Dec 2011 12:36:02 +0100 Subject: losetup: remove unnecessary header files Signed-off-by: Karel Zak --- mount/lomount.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'mount/lomount.c') diff --git a/mount/lomount.c b/mount/lomount.c index 32655cba3..d38b36404 100644 --- a/mount/lomount.c +++ b/mount/lomount.c @@ -18,12 +18,11 @@ #include #include -#include "loop.h" -#include "lomount.h" #include "strutils.h" #include "nls.h" #include "sundries.h" #include "pathnames.h" +#include "loopdev.h" static int is_associated(int dev, struct stat *file, unsigned long long offset, int isoff); @@ -49,6 +48,11 @@ struct looplist { #define LLFLG_SUBDIR (1 << 5) /* /dev/loop/N */ #define LLFLG_DFLT (1 << 6) /* directly try to check default loops */ +#define SETLOOP_RDONLY (1<<0) /* Open loop read-only */ +#define SETLOOP_AUTOCLEAR (1<<1) /* Automatically detach loop on close (2.6.25?) */ + +static int del_loop (const char *device); + /* TODO: move to lib/sysfs.c */ static char *loopfile_from_sysfs(const char *device) { @@ -882,7 +886,7 @@ delete_all_devices (void) return ok; } -int +static int del_loop (const char *device) { int fd, errsv; -- cgit v1.2.3-55-g7522