From 2fede8c2e1fa30c63c010dd3f508b920843f4961 Mon Sep 17 00:00:00 2001 From: Jinshan Xiong Date: Wed, 3 Apr 2013 00:12:00 -0700 Subject: [PATCH] LU-3026 llite: setattr to override permission check for owner Otherwise, iozone creates no permission file and will fail at mdd_permission check. Signed-off-by: Jinshan Xiong Change-Id: If9f97aeebe0ff12b535dd3b4ce131eb8079c1b51 Reviewed-on: http://review.whamcloud.com/5924 Tested-by: Hudson Reviewed-by: wangdi Reviewed-by: Bobi Jam Tested-by: Maloo Reviewed-by: Alex Zhuravlev Reviewed-by: Oleg Drokin --- lustre/llite/llite_lib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 43da149..0f09dc8 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -1490,6 +1490,7 @@ int ll_setattr_raw(struct dentry *dentry, struct iattr *attr) /* If we are changing file size, file content is modified, flag it. */ if (attr->ia_valid & ATTR_SIZE) { + attr->ia_valid |= MDS_OPEN_OWNEROVERRIDE; spin_lock(&lli->lli_lock); lli->lli_flags |= LLIF_DATA_MODIFIED; spin_unlock(&lli->lli_lock); -- 1.8.3.1