X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fllite%2Fllite_internal.h;h=fc9f234443108b07748dfa8d4251ddbd4fcc0ab9;hb=34e7d46234e5c957e1e815c5267b13fe610a9d8d;hp=da5f369003d7eb008d945edcab8e17e8cc323db4;hpb=e477f21ed67bfb76aba2b7cede8f62cc0cbd2ff7;p=fs%2Flustre-release.git diff --git a/lustre/llite/llite_internal.h b/lustre/llite/llite_internal.h index da5f369..fc9f234 100644 --- a/lustre/llite/llite_internal.h +++ b/lustre/llite/llite_internal.h @@ -208,6 +208,12 @@ struct ll_inode_info { unsigned int lli_sa_generation; /* directory stripe information */ struct lmv_stripe_md *lli_lsm_md; + /* default directory stripe offset. This is extracted + * from the "dmv" xattr in order to decide which MDT to + * create a subdirectory on. The MDS itself fetches + * "dmv" and gets the rest of the default layout itself + * (count, hash, etc). */ + __u32 lli_def_stripe_offset; }; /* for non-directory */ @@ -1506,6 +1512,8 @@ int ll_layout_restore(struct inode *inode, loff_t start, __u64 length); int ll_xattr_init(void); void ll_xattr_fini(void); +int ll_getxattr_common(struct inode *inode, const char *name, + void *buffer, size_t size, __u64 valid); int ll_page_sync_io(const struct lu_env *env, struct cl_io *io, struct cl_page *page, enum cl_req_type crt);