summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-utils.c
diff options
context:
space:
mode:
authorSachidananda <sac@gluster.com>2011-07-11 05:37:39 +0000
committerAnand Avati <avati@gluster.com>2011-07-12 02:13:04 -0700
commit818f8c87d56bc46d0d0903275699351b66f17e57 (patch)
treecddc4e937a59ee67965869498a5ba572619c3204 /xlators/mgmt/glusterd/src/glusterd-utils.c
parent03df277c7880541570107bbaa7f91e5cf7ad5a69 (diff)
Fail volume creation on existing directories of a read-only file system.
Thanks to kp@ for the fix. Signed-off-by: Sachidananda Urs <sac@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2609 (Error message not properly provided when trying to create a volume from a read-only source) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2609
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index c06b1932fa7..4152fcda792 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -2963,8 +2963,8 @@ check_xattr:
" supported on brick: %s:%s.\nSetting"
" extended attributes failed, reason:"
" %s.", host, path, strerror(errno));
-
gf_log ("glusterd", GF_LOG_ERROR, "%s", msg);
+ goto out;
} else {
/* Remove xattr *cannot* fail after setting it succeeded */
sys_lremovexattr (path, "trusted.glusterfs.test");