use Getopt::Std;
#
-# Copyright (c) 2003 Silicon Graphics, Inc. All Rights Reserved.
+# Copyright (c) 2003-2004 Silicon Graphics, Inc. All Rights Reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2 of the GNU General Public License as
}
sub xfs_db {
- my $xfsdb = "xfs_db -x $device";
+ my $xfsdb = 'xfs_db -x';
my %hash;
foreach (@_) {
$xfsdb .= ' -c ' . $_;
}
- print $xfsdb, "\n" if ($verbose);
+ print $xfsdb, ' ', $device, "\n" if ($verbose);
- die unless open(DB, "$xfsdb 2>/dev/null |");
+ die unless open(DB, "$xfsdb $device 2>/dev/null |");
while (<DB>) {
if (/^(\S+) = (.*)$/) {
print if ($verbose);