From: adilger Date: Fri, 16 Aug 2002 16:45:35 +0000 (+0000) Subject: Set the o_valid flag for valid fields in the obdo. We also need to start X-Git-Tag: 0.5.5~142 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=6c218047bb3293f7b6cf1ac659b909a6ff446023;p=fs%2Flustre-release.git Set the o_valid flag for valid fields in the obdo. We also need to start checking for these at the target side to ensure we are using good data and not an unset or corrupt field. --- diff --git a/lustre/llite/file.c b/lustre/llite/file.c index a87dfde..f2bbb07 100644 --- 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);