~ubuntu-branches/ubuntu/wily/glusterfs/wily

« back to all changes in this revision

Viewing changes to libglusterfs/src/graph.c

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Matthäi
  • Date: 2011-08-26 21:50:55 UTC
  • mfrom: (1.3.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20110826215055-6y9q7rlttfft0szr
Tags: 3.2.3-1
* New upstream release.
  - Refresh patch 02-spelling-error.diff.
* Fix lintian warning: brace-expansion-in-debhelper-config-file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
  Copyright (c) 2010 Gluster, Inc. <http://www.gluster.com>
 
2
  Copyright (c) 2010-2011 Gluster, Inc. <http://www.gluster.com>
3
3
  This file is part of GlusterFS.
4
4
 
5
5
  GlusterFS is free software; you can redistribute it and/or modify
6
 
  it under the terms of the GNU Affero General Public License as published
 
6
  it under the terms of the GNU General Public License as published
7
7
  by the Free Software Foundation; either version 3 of the License,
8
8
  or (at your option) any later version.
9
9
 
10
10
  GlusterFS is distributed in the hope that it will be useful, but
11
11
  WITHOUT ANY WARRANTY; without even the implied warranty of
12
12
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
 
  Affero General Public License for more details.
 
13
  General Public License for more details.
14
14
 
15
 
  You should have received a copy of the GNU Affero General Public License
 
15
  You should have received a copy of the GNU General Public License
16
16
  along with this program.  If not, see
17
17
  <http://www.gnu.org/licenses/>.
18
18
*/
232
232
 
233
233
 
234
234
int
 
235
glusterfs_graph_acl (glusterfs_graph_t *graph, glusterfs_ctx_t *ctx)
 
236
{
 
237
        int ret = 0;
 
238
        cmd_args_t      *cmd_args = NULL;
 
239
 
 
240
        cmd_args = &ctx->cmd_args;
 
241
 
 
242
        if (!cmd_args->acl)
 
243
                return 0;
 
244
 
 
245
        ret = glusterfs_graph_insert (graph, ctx, "system/posix-acl",
 
246
                                      "posix-acl-autoload");
 
247
        return ret;
 
248
}
 
249
 
 
250
 
 
251
int
235
252
glusterfs_graph_mac_compat (glusterfs_graph_t *graph, glusterfs_ctx_t *ctx)
236
253
{
237
254
        int ret = 0;
458
475
                return -1;
459
476
        }
460
477
 
 
478
        ret = glusterfs_graph_acl (graph, ctx);
 
479
        if (ret) {
 
480
                gf_log ("graph", GF_LOG_ERROR, "glusterfs graph ACL failed");
 
481
                return -1;
 
482
        }
 
483
 
461
484
        /* XXX: MAC COMPAT */
462
485
        ret = glusterfs_graph_mac_compat (graph, ctx);
463
486
        if (ret) {