summaryrefslogtreecommitdiffstats
path: root/mount/lomount.c
diff options
context:
space:
mode:
authorKarel Zak2011-12-20 12:36:02 +0100
committerKarel Zak2011-12-20 12:36:02 +0100
commitde4acb053ef72da421396a4d0c43898ce795f899 (patch)
treefd8517a727579f4abb93e43182d6514cc15cbff0 /mount/lomount.c
parentlosetup: remove 32-bit ioctls (diff)
downloadkernel-qcow2-util-linux-de4acb053ef72da421396a4d0c43898ce795f899.tar.gz
kernel-qcow2-util-linux-de4acb053ef72da421396a4d0c43898ce795f899.tar.xz
kernel-qcow2-util-linux-de4acb053ef72da421396a4d0c43898ce795f899.zip
losetup: remove unnecessary header files
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/lomount.c')
-rw-r--r--mount/lomount.c10
1 files changed, 7 insertions, 3 deletions
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 <getopt.h>
#include <stdarg.h>
-#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;