summaryrefslogtreecommitdiff
path: root/sbin/dumpfs/dumpfs.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2008-06-08 03:00:21 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2008-06-08 03:00:21 +0000
commita0031e7262615243bcec56ae05c88258995a20e5 (patch)
tree017bac7f9dd956bff18aa0539a1920e20e660b6d /sbin/dumpfs/dumpfs.c
parent3be2a24cd934b7aff7b6d60b9177959a80ef89c7 (diff)
fix generated size for -m; bug report by Peter J. Philipp; ok millert@
deraadt@
Diffstat (limited to 'sbin/dumpfs/dumpfs.c')
-rw-r--r--sbin/dumpfs/dumpfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/dumpfs/dumpfs.c b/sbin/dumpfs/dumpfs.c
index db1ed07f7c2..09d550a39f9 100644
--- a/sbin/dumpfs/dumpfs.c
+++ b/sbin/dumpfs/dumpfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dumpfs.c,v 1.24 2008/01/22 09:01:44 otto Exp $ */
+/* $OpenBSD: dumpfs.c,v 1.25 2008/06/08 03:00:20 otto Exp $ */
/*
* Copyright (c) 2002 Networks Associates Technology, Inc.
@@ -48,7 +48,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)dumpfs.c 8.5 (Berkeley) 4/29/95";
#else
-static const char rcsid[] = "$OpenBSD: dumpfs.c,v 1.24 2008/01/22 09:01:44 otto Exp $";
+static const char rcsid[] = "$OpenBSD: dumpfs.c,v 1.25 2008/06/08 03:00:20 otto Exp $";
#endif
#endif /* not lint */
@@ -441,7 +441,7 @@ marshal(const char *name)
break;
}
/* -S unimplemented */
- printf("-s %jd ", (intmax_t)afs.fs_size);
+ printf("-s %jd ", (intmax_t)afs.fs_size * (afs.fs_fsize / DEV_BSIZE));
printf("%s ", name);
printf("\n");