1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * This file is part of Lustre, http://www.lustre.org
7 * See also lustre_idl.h for wire formats of requests.
13 #include <lustre_handles.h>
14 #include <libcfs/libcfs.h>
15 #include <lustre/lustre_idl.h>
16 #include <lustre_lib.h>
17 #include <lustre_dlm.h>
18 #include <lustre_log.h>
19 #include <lustre_export.h>
21 #if defined(__linux__)
22 #include <linux/lustre_mds.h>
23 #elif defined(__APPLE__)
24 #include <darwin/lustre_mds.h>
25 #elif defined(__WINNT__)
26 #include <winnt/lustre_mds.h>
28 #error Unsupported operating system.
31 struct mds_group_info {
32 struct obd_uuid *uuid;
37 int mds_lov_write_objids(struct obd_device *obd);
38 void mds_lov_update_objids(struct obd_device *obd, struct lov_mds_md *lmm);
41 #define MDS_LOV_MD_NAME "trusted.lov"
42 #define MDS_LMV_MD_NAME "trusted.lmv"
43 #define MDD_OBD_NAME "mdd_obd"
44 #define MDD_OBD_UUID "mdd_obd_uuid"
45 #define MDD_OBD_TYPE "mds"
47 static inline int md_should_create(__u32 flags)
49 return !(flags & MDS_OPEN_DELAY_CREATE ||
50 !(flags & FMODE_WRITE));