summaryrefslogtreecommitdiff
path: root/sbin/newfs/mkfs.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2005-08-08 20:27:23 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2005-08-08 20:27:23 +0000
commit8d5b766661b1c1641ec7365114f9dd34f1d8dae3 (patch)
tree81c07cf280607ce01fe12e6b77bcd1a3a8d023ef /sbin/newfs/mkfs.c
parent7395f1c84cbbbc58b189669d53db4176a32bb110 (diff)
More informative error message when trying to create a filesystem
larger than 1TB. ok deraadt@
Diffstat (limited to 'sbin/newfs/mkfs.c')
-rw-r--r--sbin/newfs/mkfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c
index b62854e6824..d13b639305c 100644
--- a/sbin/newfs/mkfs.c
+++ b/sbin/newfs/mkfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkfs.c,v 1.47 2005/04/14 19:58:32 deraadt Exp $ */
+/* $OpenBSD: mkfs.c,v 1.48 2005/08/08 20:27:22 otto Exp $ */
/* $NetBSD: mkfs.c,v 1.25 1995/06/18 21:35:38 cgd Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)mkfs.c 8.3 (Berkeley) 2/3/94";
#else
-static char rcsid[] = "$OpenBSD: mkfs.c,v 1.47 2005/04/14 19:58:32 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mkfs.c,v 1.48 2005/08/08 20:27:22 otto Exp $";
#endif
#endif /* not lint */
@@ -208,7 +208,7 @@ mkfs(struct partition *pp, char *fsys, int fi, int fo,
* Verify that its last block can actually be accessed.
*/
if (fssize <= 0)
- errx(13, "preposterous size %d", fssize);
+ errx(13, "preposterous size %u, max is %u", fssize, INT_MAX);
wtfs(fssize - 1, sectorsize, (char *)&sblock);
recalc:
/*