Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-8900 snapshot: user interface for write barrier on MDT
[fs/lustre-release.git]
/
lustre
/
include
/
lustre
/
lustre_barrier_user.h
diff --git
a/lustre/include/lustre/lustre_barrier_user.h
b/lustre/include/lustre/lustre_barrier_user.h
index
ba42281
..
e69bdc2
100644
(file)
--- a/
lustre/include/lustre/lustre_barrier_user.h
+++ b/
lustre/include/lustre/lustre_barrier_user.h
@@
-31,6
+31,18
@@
#ifndef _LUSTRE_BARRIER_USER_H
# define _LUSTRE_BARRIER_USER_H
#ifndef _LUSTRE_BARRIER_USER_H
# define _LUSTRE_BARRIER_USER_H
+#include <lustre/lustre_user.h>
+
+#define BARRIER_VERSION_V1 1
+#define BARRIER_TIMEOUT_DEFAULT 30
+
+enum barrier_commands {
+ BC_FREEZE = 1,
+ BC_THAW = 2,
+ BC_STAT = 3,
+ BC_RESCAN = 4,
+};
+
enum barrier_status {
BS_INIT = 0,
BS_FREEZING_P1 = 1,
enum barrier_status {
BS_INIT = 0,
BS_FREEZING_P1 = 1,
@@
-43,4
+55,19
@@
enum barrier_status {
BS_RESCAN = 8,
};
BS_RESCAN = 8,
};
+struct barrier_ctl {
+ __u32 bc_version;
+ __u32 bc_cmd;
+ union {
+ __s32 bc_timeout;
+ __u32 bc_total;
+ };
+ union {
+ __u32 bc_status;
+ __u32 bc_absence;
+ };
+ char bc_name[12];
+ __u32 bc_padding;
+};
+
#endif /* _LUSTRE_BARRIER_USER_H */
#endif /* _LUSTRE_BARRIER_USER_H */