From b11c3ec341b6282c21c23e2226cce41434651d61 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 31 Jan 2011 20:51:53 +0100 Subject: vdf: Add -A option (show _all_ filesystems) --- bin/vdf | 6 ++++-- 1 file 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(); -- cgit v1.2.3