summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-01-31 20:51:53 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-01-31 20:51:53 +0100
commitb11c3ec341b6282c21c23e2226cce41434651d61 (patch)
tree1ff8bcc569e6b66db4c252532e6ff3c5e573a6cd /bin
parentc562646b16c5bf75d78616e90134160cec93f2be (diff)
vdf: Add -A option (show _all_ filesystems)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/vdf6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/vdf b/bin/vdf
index 488ec33..439d4fd 100755
--- a/bin/vdf
+++ b/bin/vdf
@@ -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();