summaryrefslogtreecommitdiffstats
path: root/loop_file_fmt.h
diff options
context:
space:
mode:
authorJonathan Bauer2020-05-29 14:37:49 +0200
committerJonathan Bauer2020-05-29 14:37:49 +0200
commit1bdbdfdf12ae35f08f5dcbec06a35c8d0f11ef55 (patch)
tree2e64659e53742b64f598b2e36a1d3cb32d1371b9 /loop_file_fmt.h
parentInitial code from Manuel Bentele (diff)
downloadxloop-1bdbdfdf12ae35f08f5dcbec06a35c8d0f11ef55.tar.gz
xloop-1bdbdfdf12ae35f08f5dcbec06a35c8d0f11ef55.tar.xz
xloop-1bdbdfdf12ae35f08f5dcbec06a35c8d0f11ef55.zip
Initial working state
* Moved old Makefile to Kbuild.in * New Makefile to compile against running kernel (or KDIR) * Moved file format defines from loop/include/uapi/linux/loop.h to loop_file_fmt.h * Moved definitions of loop_info{,64} to loop_file_fmt.h * Renamed loop_info{,64} to xloop_info{,64} * Removed checks for file format support which was now unneeded
Diffstat (limited to 'loop_file_fmt.h')
-rw-r--r--loop_file_fmt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/loop_file_fmt.h b/loop_file_fmt.h
index 5c0e493..8a16c86 100644
--- a/loop_file_fmt.h
+++ b/loop_file_fmt.h
@@ -14,6 +14,12 @@
struct loop_file_fmt;
+#define LO_FILE_FMT_RAW 0
+#define LO_FILE_FMT_QCOW 1
+#define LO_FILE_FMT_VDI 2
+#define LO_FILE_FMT_VMDK 3
+#define MAX_LO_FILE_FMT (LO_FILE_FMT_VMDK + 1)
+
/**
* struct loop_file_fmt_ops - File format subsystem operations
*