diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-10 22:26:14 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-10 22:26:14 +0000 |
commit | d834a36937d0107e3677b59074dc587eea9d0959 (patch) | |
tree | a14931c0df851e5c9eecdee0544f026d55a1b0dc /sbin/disklabel/disklabel.c | |
parent | 2ad70cdbfeb8bc5925919d913b34ac2526efaeb7 (diff) |
Error if bsize < fsize. Problem noted by Dieter Dworkin Muller
<dworkin@village.org>
Diffstat (limited to 'sbin/disklabel/disklabel.c')
-rw-r--r-- | sbin/disklabel/disklabel.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c index 8c00d8ce788..db13e58c4e6 100644 --- a/sbin/disklabel/disklabel.c +++ b/sbin/disklabel/disklabel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.c,v 1.28 1997/02/17 16:30:25 imp Exp $ */ +/* $OpenBSD: disklabel.c,v 1.29 1997/04/10 22:26:13 millert Exp $ */ /* $NetBSD: disklabel.c,v 1.30 1996/03/14 19:49:24 ghudson Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #endif /* not lint */ #ifndef lint -static char rcsid[] = "$OpenBSD: disklabel.c,v 1.28 1997/02/17 16:30:25 imp Exp $"; +static char rcsid[] = "$OpenBSD: disklabel.c,v 1.29 1997/04/10 22:26:13 millert Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -1404,6 +1404,10 @@ checklabel(lp) part); errors++; } + if (pp->p_frag == 0 && pp->p_fsize != 0) { + warnx("partition %c: block size < fragment size", part); + errors++; + } } for (; i < MAXPARTITIONS; i++) { part = 'a' + i; |