mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@448 36d66b0a-2a48-0410-832c-cd162a569da5
20 lines
469 B
C
20 lines
469 B
C
#ifndef _UTILS_LOOP_H
|
|
#define _UTILS_LOOP_H
|
|
|
|
/* loopback device helpers */
|
|
|
|
#define LOOP_DEV_MAJOR 7
|
|
|
|
#ifndef LO_FLAGS_AUTOCLEAR
|
|
#define LO_FLAGS_AUTOCLEAR 4
|
|
#endif
|
|
|
|
char *crypt_loop_get_device(void);
|
|
char *crypt_loop_backing_file(const char *loop);
|
|
int crypt_loop_device(const char *loop);
|
|
int crypt_loop_attach(const char *loop, const char *file, int offset,
|
|
int autoclear, int *readonly);
|
|
int crypt_loop_detach(const char *loop);
|
|
|
|
#endif /* _UTILS_LOOP_H */
|