Bug 402621
| Summary: | xfs_info doesn't handle mountpoint with spaces | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Zdenek Kabelac <zkabelac> |
| Component: | xfsprogs | Assignee: | Eric Sandeen <esandeen> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | rawhide | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | xfsprogs-2.9.5-1 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2008-01-21 15:35:40 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Zdenek Kabelac
2007-11-28 13:12:38 UTC
xfs_info is just a bash script, and it's that which isn't coping. The underlying command, xfs_growfs, is fine. I'm no good at bash scripting :) but this seems to work: --- /usr/sbin/xfs_info 2007-11-28 09:14:02.000000000 -0600 +++ /usr/sbin/xfs_info.new 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 xfs_freeze has the same problem. I take it back, freeze is fine. Sent upstream http://oss.sgi.com/archives/xfs/2007-11/msg00297.html And what about these tools : xfs_admin xfs_check xfs_info xfs_metadump xfs_ncheck I think they have similar problem when the $1 is passed without "" xfs_info is covered already. xfs_admin, xfs_check, xfs_metadump, and xfs_ncheck all take a device as an argument. I thought a mount point with a space was unlikely; a device with a space seems even more so (though, I guess the "device" could be a fs-in-a-file with a space in the name...) I'm not overly concerned about it, but if you have a patch, then by all means send it along :) xfsprogs-2.9.5-1, building into rawhide now, fixes this. I'll push to f8 and f7 as well. pushed to f8 and f7 testing as well |