summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Blomdell <anders.blomdell@control.lth.se>2014-07-24 16:55:45 +0200
committerVijay Bellur <vbellur@redhat.com>2014-07-27 13:37:36 -0700
commitf8496dab2f6111bdc5ced0881d15061160b76e52 (patch)
tree5f269c76dab6f43f0bb36c224f043be374305773
parent3e7c3b25129df098511970c79faf561be08ef87b (diff)
Allow gluster to be used with linux automounter
Added (ignored) -n option to mount.glusterfs command Change-Id: I9209da215d38507cd9d01b1e9af4aecff4414f83 BUG: 1123004 Signed-off-by: Anders Blomdell <anders.blomdell@control.lth.se> Reviewed-on: http://review.gluster.org/8373 Reviewed-by: Harshavardhana <harsha@harshavardhana.net> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Humble Devassy Chirammal <humble.devassy@gmail.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
-rwxr-xr-xxlators/mount/fuse/utils/mount.glusterfs.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in
index 154b8fa97e8..55d0c51de18 100755
--- a/xlators/mount/fuse/utils/mount.glusterfs.in
+++ b/xlators/mount/fuse/utils/mount.glusterfs.in
@@ -555,12 +555,15 @@ main ()
## `mount` specifies options as a last argument
shift 2;
fi
- while getopts "Vo:h" opt; do
+ while getopts "Vo:hn" opt; do
case "${opt}" in
o)
parse_options ${OPTARG};
shift 2;
;;
+ n)
+ shift 1;
+ ;;
V)
${cmd_line} -V;
exit 0;