From b5ad85803b85ae83b2a1bcbe18c8b42265dc34dc Mon Sep 17 00:00:00 2001 From: Pavan Sondur Date: Sun, 6 Dec 2009 10:50:18 +0000 Subject: features/locks: Disable mandatory locks, until we can use lock-owner field without problems in mandatory locking. Signed-off-by: Pavan Vilas Sondur Signed-off-by: Anand V. Avati BUG: 336 (Use lock owner field from fuse in locks) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=336 --- xlators/features/locks/src/posix.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'xlators/features') diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c index 5c25d680ea5..4a1a2a76376 100644 --- a/xlators/features/locks/src/posix.c +++ b/xlators/features/locks/src/posix.c @@ -1345,15 +1345,9 @@ init (xlator_t *this) priv = CALLOC (1, sizeof (*priv)); mandatory = dict_get (this->options, "mandatory-locks"); - if (mandatory) { - if (gf_string2boolean (mandatory->data, - &priv->mandatory) == -1) { - gf_log (this->name, GF_LOG_ERROR, - "'mandatory-locks' takes on only boolean " - "values."); - return -1; - } - } + if (mandatory) + gf_log (this->name, GF_LOG_ERROR, + "mandatory locks not supported in this minor release."); trace = dict_get (this->options, "trace"); if (trace) { -- cgit