4 /* loopback device helpers */
6 #define LOOP_DEV_MAJOR 7
8 #ifndef LO_FLAGS_AUTOCLEAR
9 #define LO_FLAGS_AUTOCLEAR 4
12 #ifndef LOOP_CTL_GET_FREE
13 #define LOOP_CTL_GET_FREE 0x4C82
16 char *crypt_loop_get_device(void);
17 char *crypt_loop_backing_file(const char *loop);
18 int crypt_loop_device(const char *loop);
19 int crypt_loop_attach(const char *loop, const char *file, int offset,
20 int autoclear, int *readonly);
21 int crypt_loop_detach(const char *loop);
23 #endif /* _UTILS_LOOP_H */