summaryrefslogtreecommitdiff
path: root/mount/lomount.h
blob: d24d8b62c2be14acdba7eba9aa71ad18c6320ddf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
extern int set_loop(const char *, const char *, unsigned long long, unsigned long long,
		    const char *, int, int *, int, int);
extern int del_loop(const char *);
extern int is_loop_device(const char *);
extern int is_loop_autoclear(const char *device);
extern char * find_unused_loop_device(void);

extern int loopfile_used_with(char *devname, const char *filename, unsigned long long offset);
extern char *loopfile_used (const char *filename, unsigned long long offset);

#define SETLOOP_RDONLY     (1<<0)  /* Open loop read-only */
#define SETLOOP_AUTOCLEAR  (1<<1)  /* Automatically detach loop on close (2.6.25?) */