From f9edff586ce175b5d3330853f04e86aba16ebc0e Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Wed, 26 Jun 2013 15:35:21 -0700 Subject: [PATCH] Don't double-count use of the same device --- mount/mount-lib.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mount/mount-lib.pl b/mount/mount-lib.pl index 61884a403..d967be3c6 100755 --- a/mount/mount-lib.pl +++ b/mount/mount-lib.pl @@ -324,8 +324,10 @@ foreach $m (@mounted) { # Don't double-count maps from the same zone pool next; } - if ($donedevice{$m->[0]}++) { - # Don't double-count mounts from the same device + if ($donedevice{$m->[0]}++ || + $donedevice{$m->[1]}++) { + # Don't double-count mounts from the same device, or + # on the same directory. next; } my ($t, $f) = &mount::disk_space($m->[2], $m->[0]);