diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-01-31 20:51:53 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-01-31 20:51:53 +0100 |
commit | b11c3ec341b6282c21c23e2226cce41434651d61 (patch) | |
tree | 1ff8bcc569e6b66db4c252532e6ff3c5e573a6cd /bin | |
parent | c562646b16c5bf75d78616e90134160cec93f2be (diff) |
vdf: Add -A option (show _all_ filesystems)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/vdf | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -159,7 +159,7 @@ sub show_df_png { return; } -getopts('a:cfg', \%opts); +getopts('Aa:cfg', \%opts); $alpha = $opts{'a'} // 0; open(my $mounts_fh, '<', '/proc/mounts'); @@ -181,7 +181,9 @@ while (my $line = <$mounts_fh>) { } close($mounts_fh); -@mounts = grep { $_->[0] !~ qr{ ^ ( (root|tmp)fs | none ) $ }x } @mounts; +if (not $opts{'A'}) { + @mounts = grep { $_->[0] !~ qr{ ^ ( (root|tmp)fs | none ) $ }x } @mounts; +} if ($opts{'c'}) { show_df_console(); |