diff options
author | Anand Avati <avati@gluster.com> | 2011-07-01 17:19:39 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-07-08 02:26:28 -0700 |
commit | 8f14d85777c93277403bcac727c0447dcba3cdc0 (patch) | |
tree | 279709b7681382130692466f2d2b3aee837e97a2 /xlators | |
parent | 57b3b7e62487eef4c534e3fe65f954cf5d6d0ce4 (diff) |
mount.glusterfs: support -o acl parameter
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2815 (Server-enforced ACLs)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2815
Diffstat (limited to 'xlators')
-rwxr-xr-x | xlators/mount/fuse/utils/mount.glusterfs.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index e429eca1633..6b683dc91c2 100755 --- a/xlators/mount/fuse/utils/mount.glusterfs.in +++ b/xlators/mount/fuse/utils/mount.glusterfs.in @@ -73,6 +73,10 @@ start_glusterfs () cmd_line=$(echo "$cmd_line --read-only"); fi + if [ -n "$acl" ]; then + cmd_line=$(echo "$cmd_line --acl"); + fi + if [ -n "$log_file" ]; then cmd_line=$(echo "$cmd_line --log-file=$log_file"); fi @@ -169,6 +173,8 @@ main () read_only=$(echo "$options" | sed -n 's/.*\(ro\)[^,]*.*/\1/p'); + acl=$(echo "$options" | sed -n 's/.*\(acl\)[^,]*.*/\1/p'); + transport=$(echo "$options" | sed -n 's/.*transport=\([^,]*\).*/\1/p'); direct_io_mode=$(echo "$options" | sed -n 's/.*direct-io-mode=\([^,]*\).*/\1/p'); @@ -208,6 +214,7 @@ main () -e 's/[,]*volume-id=[^,]*//' \ -e 's/[,]*log-server=[^,]*//' \ -e 's/[,]*ro[^,]*//' \ + -e 's/[,]*acl[^,]*//' \ -e 's/[,]*log-server-port=[^,]*//'); # |