X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flustre_export.h;fp=lustre%2Finclude%2Flustre_export.h;h=58f27645c18020ea30cf4c3c4bff3447bcc86cc3;hb=3bfb6107ba4e92d8aa02e842502bc44bac7b8b43;hp=33b9aed38492941e3af8fcfd20a06fc5dabc9a72;hpb=7b46ff54afb23c04dec74ef162ed9052f7259e4a;p=fs%2Flustre-release.git diff --git a/lustre/include/lustre_export.h b/lustre/include/lustre_export.h index 33b9aed..58f2764 100644 --- a/lustre/include/lustre_export.h +++ b/lustre/include/lustre_export.h @@ -457,10 +457,23 @@ static inline int exp_connect_lock_convert(struct obd_export *exp) extern struct obd_export *class_conn2export(struct lustre_handle *conn); -#define KKUC_CT_DATA_MAGIC 0x092013cea +static inline int exp_connect_archive_id_array(struct obd_export *exp) +{ + return !!(exp_connect_flags2(exp) & OBD_CONNECT2_ARCHIVE_ID_ARRAY); +} + +enum { + /* archive_ids in array format */ + KKUC_CT_DATA_ARRAY_MAGIC = 0x092013cea, + /* archive_ids in bitmap format */ + KKUC_CT_DATA_BITMAP_MAGIC = 0x082018cea, +}; + + struct kkuc_ct_data { __u32 kcd_magic; - __u32 kcd_archive; + __u32 kcd_nr_archives; + __u32 kcd_archives[0]; }; /** @} export */