public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@sandeen.net>
To: xfs-oss <xfs@oss.sgi.com>
Subject: [PATCH] make xfs_info work on mountpoints with spaces
Date: Wed, 28 Nov 2007 22:03:40 -0600	[thread overview]
Message-ID: <474E3A1C.4050302@sandeen.net> (raw)

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@sandeen.net>

---

--- 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

                 reply	other threads:[~2007-11-29  4:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=474E3A1C.4050302@sandeen.net \
    --to=sandeen@sandeen.net \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox