From 0facb11220aea20a6573b656785922219c9650cf Mon Sep 17 00:00:00 2001 From: Poornima G Date: Thu, 31 Mar 2016 06:29:29 -0400 Subject: io-stats: Fix overwriting of client profile by the bricks Issue: When the user executes the following command to generate the client perf profile, if the client is on the same node as bricks, the bricks overwrite the profile info written by clients. Also xattr "trusted.io-stats-dump" gets set on the mount point. setxattr -n trusted.io-stats-dump -v /tmp/iostat.log /mnt/fuse Fix: Unwind from setxattr, when xattr is 'io-stats-dump' Change-Id: Iba0e5df2f25f4ba3b1399ac176a3f8a916ff372e BUG: 1322825 Signed-off-by: Poornima G Reviewed-on: http://review.gluster.org/13872 NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Ravishankar N Smoke: Gluster Build System Reviewed-by: Jeff Darcy --- tests/bugs/core/io-stats-1322825.t | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 tests/bugs/core/io-stats-1322825.t (limited to 'tests/bugs') diff --git a/tests/bugs/core/io-stats-1322825.t b/tests/bugs/core/io-stats-1322825.t new file mode 100755 index 00000000000..924251a432c --- /dev/null +++ b/tests/bugs/core/io-stats-1322825.t @@ -0,0 +1,16 @@ +#!/bin/bash + +. $(dirname $0)/../../include.rc + +cleanup; + +TEST glusterd +TEST pidof glusterd +TEST $CLI volume create $V0 $H0:$B0/${V0} $H0:$B1/${V0} +TEST $CLI volume start $V0 +TEST glusterfs --volfile-id=/$V0 --volfile-server=$H0 $M0 --attribute-timeout=0 --entry-timeout=0 +TEST "echo hello > $M0/file1" +TEST setfattr -n trusted.io-stats-dump -v /tmp/io-stats.log $M0 +TEST ! getfattr -n trusted.io-stats-dump $B0/${V0} + +cleanup; -- cgit