Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
patches related to bug 13377 (CMD small fixes), 2+4 patch and fid_unpack patch
[fs/lustre-release.git]
/
lustre
/
include
/
lustre_mds.h
diff --git
a/lustre/include/lustre_mds.h
b/lustre/include/lustre_mds.h
index
b051786
..
e388fb8
100644
(file)
--- a/
lustre/include/lustre_mds.h
+++ b/
lustre/include/lustre_mds.h
@@
-115,4
+115,10
@@
void mds_objids_from_lmm(obd_id *, struct lov_mds_md *, struct lov_desc *);
#define MDD_OBD_TYPE "mds"
#define MDD_OBD_PROFILE "lustre-MDT0000"
+static inline int md_should_create(__u32 flags)
+{
+ return !(flags & MDS_OPEN_DELAY_CREATE ||
+ !(flags & FMODE_WRITE));
+}
+
#endif