xfs
[Top] [All Lists]

[PATCH] make xfs_info work on mountpoints with spaces

To: xfs-oss <xfs@xxxxxxxxxxx>
Subject: [PATCH] make xfs_info work on mountpoints with spaces
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Wed, 28 Nov 2007 22:03:40 -0600
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Thunderbird 2.0.0.9 (Macintosh/20071031)
I don't know why one would make mountpoints with spaces, but
apparently people do:

[Bug 402621] New: xfs_info doesn't handle mountpoint with spaces
https://bugzilla.redhat.com/show_bug.cgi?id=402621

I'm no bash expert but I think this solves it:

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxxx>

---

--- xfs-cmds.orig/xfsprogs/growfs/xfs_info.sh   2007-11-28 09:14:02.000000000 
-0600
+++ xfs-cmds/xfsprogs/growfs/xfs_info.sh        2007-11-28 09:21:49.000000000 
-0600
@@ -16,10 +16,10 @@
                ;;
        esac
 done
-set -- extra $@
+set -- extra "$@"
 shift $OPTIND
 case $# in
-       1)      xfs_growfs -p xfs_info -n $OPTS $1
+       1)      xfs_growfs -p xfs_info -n $OPTS "$1"
                status=$?
                ;;
        *)      echo $USAGE 1>&2



<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] make xfs_info work on mountpoints with spaces, Eric Sandeen <=