X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=lustre%2Finclude%2Flustre_mds.h;h=2a586ff9445f223d81b4acf8e4eb02120c891032;hb=d750891e478804bc495ffa075d771d1816369958;hp=4b810279d7166bdc0159146c434b07dd3e5f2fec;hpb=6869932b552ac705f411de3362f01bd50c1f6f7d;p=fs%2Flustre-release.git diff --git a/lustre/include/lustre_mds.h b/lustre/include/lustre_mds.h index 4b81027..2a586ff 100644 --- a/lustre/include/lustre_mds.h +++ b/lustre/include/lustre_mds.h @@ -26,7 +26,7 @@ * GPL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved + * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. */ /* @@ -42,6 +42,11 @@ #ifndef _LUSTRE_MDS_H #define _LUSTRE_MDS_H +/** \defgroup mds mds + * + * @{ + */ + #include #include #include @@ -65,16 +70,22 @@ struct mds_group_info { int group; }; -/* mds/mds_reint.c */ +struct mds_capa_info { + struct obd_uuid *uuid; + struct lustre_capa_key *capa; +}; + +/* mds/mds_lov.c */ int mds_lov_write_objids(struct obd_device *obd); +int mds_lov_prepare_objids(struct obd_device *obd, struct lov_mds_md *lmm); void mds_lov_update_objids(struct obd_device *obd, struct lov_mds_md *lmm); +int mds_log_op_unlink(struct obd_device *, struct lov_mds_md *, int, + struct llog_cookie *, int); -#define MDS_LOV_MD_NAME "trusted.lov" -#define MDS_LMV_MD_NAME "trusted.lmv" -#define MDD_OBD_NAME "mdd_obd" -#define MDD_OBD_UUID "mdd_obd_uuid" -#define MDD_OBD_TYPE "mds" +#define MDD_OBD_NAME "mdd_obd" +#define MDD_OBD_UUID "mdd_obd_uuid" +#define MDD_OBD_TYPE "mds" static inline int md_should_create(__u32 flags) { @@ -82,4 +93,9 @@ static inline int md_should_create(__u32 flags) !(flags & FMODE_WRITE)); } +/* these are local flags, used only on the client, private */ +#define M_CHECK_STALE 0200000000 + +/** @} mds */ + #endif