summaryrefslogtreecommitdiff
path: root/cow.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-02-26 00:20:56 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-02-26 00:20:56 +0000
commit00af2b26809d9cfb20af348ea7df255780348dd2 (patch)
tree859dd98f9c840d38649f6b977c927d93d380087a /cow.h
parenta735aa3139c5b9785eac09dcf6384d89c8d8c445 (diff)
downloadqemu-00af2b26809d9cfb20af348ea7df255780348dd2.tar.gz
added cow.h
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@653 c046a42c-6fe2-441c-8c8c-71466251a162
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 0000000000..5b5f497ed3
--- /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;
+};
+