aboutsummaryrefslogtreecommitdiff
path: root/ubuntu/dm-raid4-5/dm-raid4-5.h
diff options
context:
space:
mode:
Diffstat (limited to 'ubuntu/dm-raid4-5/dm-raid4-5.h')
-rw-r--r--ubuntu/dm-raid4-5/dm-raid4-5.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/ubuntu/dm-raid4-5/dm-raid4-5.h b/ubuntu/dm-raid4-5/dm-raid4-5.h
new file mode 100644
index 000000000000..a0fe7c0621fa
--- /dev/null
+++ b/ubuntu/dm-raid4-5/dm-raid4-5.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2006 Red Hat GmbH
+ *
+ * Module Author: Heinz Mauelshagen (Mauelshagen@RedHat.com)
+ *
+ * This file is released under the GPL.
+ *
+ */
+
+#ifndef _DM_RAID45_H
+#define _DM_RAID45_H
+
+/* Factor out to dm.h! */
+#define STR_LEN(ptr, str) ptr, str, strlen(ptr)
+
+enum lock_type { RAID45_EX, RAID45_SHARED };
+
+struct dmraid45_locking_type {
+ /* Request a lock on a stripe. */
+ void* (*lock)(sector_t key, enum lock_type type);
+
+ /* Release a lock on a stripe. */
+ void (*unlock)(void *lock_handle);
+
+};
+
+#endif