Whamcloud - gitweb
LU-2378 lma: move HSM & SOM attributes to dedicated xattrs
[fs/lustre-release.git] / lustre / include / md_object.h
index f704dc9..ce8f875 100644 (file)
@@ -135,17 +135,21 @@ typedef enum {
 } mdl_type_t;
 
 struct md_hsm {
-        __u32  mh_flags;
-        __u32  mh_archive_number;
+       __u32   mh_compat;
+       __u32   mh_flags;
+       __u64   mh_arch_id;
+       __u64   mh_arch_ver;
 };
 
 #define IOEPOCH_INVAL 0
 
 struct md_som_data {
-        __u64 msd_ioepoch;
-        __u64 msd_size;
-        __u64 msd_blocks;
-        __u64 msd_mountid;
+       __u32   msd_compat;
+       __u32   msd_incompat;
+       __u64   msd_ioepoch;
+       __u64   msd_size;
+       __u64   msd_blocks;
+       __u64   msd_mountid;
 };
 
 struct md_attr {
@@ -861,5 +865,8 @@ int llo_local_objects_setup(const struct lu_env *env,
                              struct md_device * md,
                              struct dt_device * dt);
 
+int lustre_buf2som(void *buf, int rc, struct md_som_data *msd);
+int lustre_buf2hsm(void *buf, int rc, struct md_hsm *mh);
+void lustre_hsm2buf(void *buf, struct md_hsm *mh);
 /** @} md */
 #endif /* _LINUX_MD_OBJECT_H */