diff options
author | Pavan Sondur <pavan@gluster.com> | 2009-12-06 10:50:18 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-12-06 08:56:22 -0800 |
commit | b5ad85803b85ae83b2a1bcbe18c8b42265dc34dc (patch) | |
tree | 2a2bc72b58eaff114e7b13fede3343488cee9952 /xlators/features | |
parent | 21b06ce3e46c3125ee5f281b49f6fcc3a09c02e7 (diff) |
features/locks: Disable mandatory locks, until we can use lock-owner field without problems in mandatory locking.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 336 (Use lock owner field from fuse in locks)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=336
Diffstat (limited to 'xlators/features')
-rw-r--r-- | xlators/features/locks/src/posix.c | 12 |
1 files changed, 3 insertions, 9 deletions
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) { |