From 6c218047bb3293f7b6cf1ac659b909a6ff446023 Mon Sep 17 00:00:00 2001 From: adilger Date: Fri, 16 Aug 2002 16:45:35 +0000 Subject: [PATCH] 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. --- lustre/llite/file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 1.8.3.1