From f0afc2e7c7bee3043ac1e7d098bc44db60186856 Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Wed, 19 Aug 2015 16:54:42 +0530 Subject: features/shard: Fix permission issues Backport of: http://review.gluster.org/11992 This patch does the following: * reverts commit b467af0e99b39ef708420d3f7f6696b0ca618512 * changes ownership on shards under /.shard to be root:root * makes readv, writev, [f]truncate, rename, and unlink fops to perform operations on files under /.shard with frame->root->{uid,gid} as 0. This would ensure that a [f]setattr on a sharded file does not need to be called on all the shards associated with it. Change-Id: I50d8533bd2b769a4dfe8cd1b49bdcfc117a7e660 BUG: 1253151 Signed-off-by: Krutika Dhananjay Reviewed-on: http://review.gluster.org/12052 Reviewed-by: Pranith Kumar Karampuri Tested-by: Gluster Build System Tested-by: NetBSD Build System --- tests/common-utils.rc | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/common-utils.rc (limited to 'tests/common-utils.rc') diff --git a/tests/common-utils.rc b/tests/common-utils.rc new file mode 100644 index 00000000000..2be4076e8b6 --- /dev/null +++ b/tests/common-utils.rc @@ -0,0 +1,7 @@ + +function run_cmd_as_user { + local user=$1 + shift + su -m $user -c "$*" || return 1 + return 0 +} -- cgit