From 392b62b30a0fe8cfdd6a75b46fb13ac8a7fc8ed9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 16 Apr 2011 11:58:47 +0200 Subject: vdf: Add -i --- bin/vdf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/vdf b/bin/vdf index cbf676f..7f69e7d 100755 --- a/bin/vdf +++ b/bin/vdf @@ -135,7 +135,7 @@ sub show_df_png { return; } -getopts('Aa:cfg', \%opts); +getopts('Aa:cfgi:', \%opts); $alpha = $opts{'a'} // 0; open(my $mounts_fh, '<', '/proc/mounts'); @@ -160,6 +160,10 @@ close($mounts_fh); if (not $opts{'A'}) { @mounts = grep { $_->[0] !~ qr{ ^ ( (root|tmp)fs | none ) $ }x } @mounts; } +if ($opts{'i'}) { + my @ignored = split(qr{,}, $opts{'i'}); + @mounts = grep { not ($_->[1] ~~ [@ignored]) } @mounts; +} if ($opts{'c'}) { show_df_console(); -- cgit v1.2.3