From 33477a140fb4e891a05dd9261013e83035155350 Mon Sep 17 00:00:00 2001 From: Kaushal M Date: Wed, 2 Nov 2011 11:27:30 +0530 Subject: fuse: enable kernel read-only mode Enables kernel read-only mode on mounting with '-oro' and disables the gluster read-only translator from being loaded. As a result, '-oro' is reported correctly in the mount options. Change-Id: If94d97836b13668974cfac61b6e5d52e19880e10 BUG: 3742 Reviewed-on: http://review.gluster.com/655 Tested-by: Gluster Build System Reviewed-by: Jeff Darcy Reviewed-by: Csaba Henk --- libglusterfs/src/graph.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'libglusterfs') diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c index 7844a547551..830c8836300 100644 --- a/libglusterfs/src/graph.c +++ b/libglusterfs/src/graph.c @@ -175,24 +175,6 @@ err: return -1; } - -int -glusterfs_graph_readonly (glusterfs_graph_t *graph, glusterfs_ctx_t *ctx) -{ - int ret = 0; - cmd_args_t *cmd_args = NULL; - - cmd_args = &ctx->cmd_args; - - if (!cmd_args->read_only) - return 0; - - ret = glusterfs_graph_insert (graph, ctx, "features/read-only", - "readonly-autoload"); - return ret; -} - - int glusterfs_graph_acl (glusterfs_graph_t *graph, glusterfs_ctx_t *ctx) { @@ -453,13 +435,6 @@ glusterfs_graph_prepare (glusterfs_graph_t *graph, glusterfs_ctx_t *ctx) return -1; } - /* XXX: RO VOLUME */ - ret = glusterfs_graph_readonly (graph, ctx); - if (ret) { - gf_log ("graph", GF_LOG_ERROR, "glusterfs graph readonly failed"); - return -1; - } - /* XXX: WORM VOLUME */ ret = glusterfs_graph_worm (graph, ctx); if (ret) { -- cgit