X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flustre%2Flustre_barrier_user.h;h=e69bdc2795e568b3528e19242cd1fb6d367cb211;hb=3afede2b81;hp=ba4228104e7872b303678cbf790f0128c8c286e8;hpb=20d724103f4edfaf59fcc5914c8d6200d4a0bdc5;p=fs%2Flustre-release.git diff --git a/lustre/include/lustre/lustre_barrier_user.h b/lustre/include/lustre/lustre_barrier_user.h index ba42281..e69bdc2 100644 --- 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 +#include + +#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, @@ -43,4 +55,19 @@ enum barrier_status { 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 */