From: Alan J. Pippin Date: Sun, 2 Mar 2008 15:17:38 +0000 (-0700) Subject: Increased width of zfs filesystem column. Output sorted by filesystem now. X-Git-Url: http://git.pippins.net/embedvideo/static/images/%7Blink_participation%7D?a=commitdiff_plain;h=1a36d88c652470f2cf55ab51dbd3f06fb6402f5a;p=zfs-nexenta%2F.git Increased width of zfs filesystem column. Output sorted by filesystem now. --- diff --git a/zfs-snapshot-totals b/zfs-snapshot-totals index 53bcd7b..09abb74 100755 --- a/zfs-snapshot-totals +++ b/zfs-snapshot-totals @@ -29,18 +29,18 @@ foreach $snapshot (@snapshots) } } -printf "%-20s %-15s %-10s\n","ZFS Filesystem","Snapshots Size","Num Snapshots"; -printf "%-20s %-15s %-10s\n","--","--","--"; -foreach $key (keys %totals) +printf "%-30s %-15s %-10s\n","ZFS Filesystem","Snapshots Size","Num Snapshots"; +printf "%-30s %-15s %-10s\n","--","--","--"; +foreach $key (sort keys %totals) { $size = $totals{$key}{size}; $total_size += $size; $total_snapshots += $totals{$key}{snapshots}; $size = &adjust_size($size); - printf "%-20s %-15s %-10s\n", $key, $size, $totals{$key}{snapshots}; + printf "%-30s %-15s %-10s\n", $key, $size, $totals{$key}{snapshots}; } $total_size = &adjust_size($total_size); -printf "%-20s %-15s %-10s\n","--","--","--"; -printf "%-20s %-15s %-10s\n","Total Snapshots",$total_size,$total_snapshots; +printf "%-30s %-15s %-10s\n","--","--","--"; +printf "%-30s %-15s %-10s\n","Total Snapshots",$total_size,$total_snapshots;