summaryrefslogtreecommitdiff
path: root/mount/lomount.h
blob: 59108d4085683ee1c0de6d487669fc5bfbfa9ca8 (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 *);
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?) */