aboutsummaryrefslogtreecommitdiff
path: root/cow.h
diff options
context:
space:
mode:
Diffstat (limited to 'cow.h')
-rw-r--r--cow.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/cow.h b/cow.h
new file mode 100644
index 0000000..5b5f497
--- /dev/null
+++ b/cow.h
@@ -0,0 +1,13 @@
+/* user mode linux compatible COW file */
+#define COW_MAGIC 0x4f4f4f4d /* MOOO */
+#define COW_VERSION 2
+
+struct cow_header_v2 {
+ uint32_t magic;
+ uint32_t version;
+ char backing_file[1024];
+ int32_t mtime;
+ uint64_t size;
+ uint32_t sectorsize;
+};
+