Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc86909
)
Set the o_valid flag for valid fields in the obdo. We also need to start
author
adilger
<adilger>
Fri, 16 Aug 2002 16:45:35 +0000
(16:45 +0000)
committer
adilger
<adilger>
Fri, 16 Aug 2002 16:45:35 +0000
(16:45 +0000)
checking for these at the target side to ensure we are using good data
and not an unset or corrupt field.
lustre/llite/file.c
patch
|
blob
|
history
diff --git
a/lustre/llite/file.c
b/lustre/llite/file.c
index
a87dfde
..
f2bbb07
100644
(file)
--- a/
lustre/llite/file.c
+++ b/
lustre/llite/file.c
@@
-62,8
+62,9
@@
static int ll_file_open(struct inode *inode, struct file *file)
}
oa->o_mode = S_IFREG | 0600;
oa->o_easize = mdc->cl_max_mdsize;
- oa->o_valid = OBD_MD_FLMODE | OBD_MD_FLEASIZE;
oa->o_id = inode->i_ino;
+ oa->o_valid = OBD_MD_FLMODE | OBD_MD_FLEASIZE |
+ OBD_MD_FLID;
rc = obd_create(ll_i2obdconn(inode), oa, &lli->lli_smd);
if (rc) {
obdo_free(oa);