summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/Vstat.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-08-22 11:26:00 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-08-22 11:26:00 +0000
commitf852fb898ffcd373ace58494eef8f25f7efa226a (patch)
tree5baf450708aa95ad7788449e2c70a313ee6226d2 /usr.sbin/pkg_add/OpenBSD/Vstat.pm
parentf2fbecb6a3aeb65af9ea07aca6f774bca2681c93 (diff)
maintain a counter of problems encountered per-filesystem.
Do not report more than 3 problems per filesystem unless -v -v.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Vstat.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Vstat.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Vstat.pm b/usr.sbin/pkg_add/OpenBSD/Vstat.pm
index e06558115dc..76f90d5c835 100644
--- a/usr.sbin/pkg_add/OpenBSD/Vstat.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Vstat.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Vstat.pm,v 1.11 2005/08/22 11:11:39 espie Exp $
+# $OpenBSD: Vstat.pm,v 1.12 2005/08/22 11:25:59 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -37,7 +37,7 @@ sub create_device($)
my $dev = shift;
my $n = $devinfo->{$dev};
if (!defined $n) {
- $n = { dev => $dev, used => 0 };
+ $n = { dev => $dev, used => 0, problems => 0 };
bless $n, "OpenBSD::Vstat::MountPoint";
$devinfo->{$dev} = $n;
}