summaryrefslogtreecommitdiffstats
path: root/recipes-extended/glusterfs/files/0001-Fix-for-mount.glusterfs-not-accepting-version-argume.patch
diff options
context:
space:
mode:
authorHe Zhe <zhe.he@windriver.com>2017-06-28 16:52:48 +0800
committerBruce Ashfield <bruce.ashfield@windriver.com>2017-06-29 15:27:21 -0400
commit1e7567ad8eef3a3b1aa3c60f71d7eff507f6aefa (patch)
tree9910165334e79448e36853130c9e92c473e88eb1 /recipes-extended/glusterfs/files/0001-Fix-for-mount.glusterfs-not-accepting-version-argume.patch
parent487a535eb568ed9e71da20ad73b8c08892660163 (diff)
downloadmeta-cloud-services-pyro.tar.gz
glusterfs: Move from meta-openstack to meta-cloud-servicespyro
It's not an openstack specific package. Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-extended/glusterfs/files/0001-Fix-for-mount.glusterfs-not-accepting-version-argume.patch')
-rw-r--r--recipes-extended/glusterfs/files/0001-Fix-for-mount.glusterfs-not-accepting-version-argume.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-extended/glusterfs/files/0001-Fix-for-mount.glusterfs-not-accepting-version-argume.patch b/recipes-extended/glusterfs/files/0001-Fix-for-mount.glusterfs-not-accepting-version-argume.patch
new file mode 100644
index 0000000..d89fde9
--- /dev/null
+++ b/recipes-extended/glusterfs/files/0001-Fix-for-mount.glusterfs-not-accepting-version-argume.patch
@@ -0,0 +1,33 @@
1From 960a101ab795fed1b7505ed9db61769cbdb9450e Mon Sep 17 00:00:00 2001
2From: Sebastian Lenartowicz <Sebastian.Lenartowicz@windriver.com>
3Date: Wed, 4 Dec 2013 15:16:02 -0500
4Subject: [PATCH 1/1] Fix for mount.glusterfs not accepting --version argument
5
6The mount.glusterfs shell script serves as a convenient "gatekeeper"
7for the glusterfs program itself, and performs a few setup tasks,
8depending on the options it's given. However, an overzealous check
9for the number of arguments (any number of arguments less than 2)
10was preventing the --version and --help arguments from being usable
11on their own. This patch solves that by dropping the check (the
12glusterfs software itself can throw out commands with too few
13arguments, which makes the check redundant in any event).
14---
15 xlators/mount/fuse/utils/mount.glusterfs.in | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in
19index 2a8183c..ea18efb 100755
20--- a/xlators/mount/fuse/utils/mount.glusterfs.in
21+++ b/xlators/mount/fuse/utils/mount.glusterfs.in
22@@ -395,7 +395,7 @@ main ()
23 pos_args=$((pos_args+1))
24 fi
25 done
26- if [ $in_opt = "yes" -o $pos_args -lt 2 ]; then
27+ if [ $in_opt = "yes" ]; then
28 usage
29 exit 1
30 fi
31--
321.7.9.7
33