diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-05-12 20:49:41 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-05-12 20:49:41 +0000 |
commit | 77068a7fe2146f5edd3808696532ac3adea99df8 (patch) | |
tree | 23b6f85553aa96d4599428d24b108a5190c99452 /sbin/bsdlabel | |
parent | 201efb1913e986bbb8777051dc035e4a0f5a4c02 (diff) | |
download | src-77068a7fe2146f5edd3808696532ac3adea99df8.tar.gz src-77068a7fe2146f5edd3808696532ac3adea99df8.zip |
Retire the bogus uses of the disklabel field d_sbsize and begin to
initialize it to zero so we don't have to have everbody and their
aunt including FFS specific header files.
Sponsored by: DARPA & NAI Labs.
Notes
Notes:
svn path=/head/; revision=96475
Diffstat (limited to 'sbin/bsdlabel')
-rw-r--r-- | sbin/bsdlabel/bsdlabel.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sbin/bsdlabel/bsdlabel.c b/sbin/bsdlabel/bsdlabel.c index 122d778431d0..90423bb5c494 100644 --- a/sbin/bsdlabel/bsdlabel.c +++ b/sbin/bsdlabel/bsdlabel.c @@ -64,7 +64,6 @@ static const char rcsid[] = #ifdef __sparc64__ #include <sys/sun_disklabel.h> #endif -#include <ufs/ffs/fs.h> #include <unistd.h> #include <string.h> #include <stdio.h> @@ -937,7 +936,7 @@ getasciilabel(FILE *f, struct disklabel *lp) int i; lp->d_bbsize = BBSIZE; /* XXX */ - lp->d_sbsize = SBSIZE; /* XXX */ + lp->d_sbsize = 0; /* XXX */ while (fgets(line, sizeof(line) - 1, f)) { lineno++; if ((cp = index(line,'\n')) != 0) @@ -1332,11 +1331,6 @@ checklabel(struct disklabel *lp) errors++; } else if (lp->d_bbsize % lp->d_secsize) Warning("boot block size %% sector-size != 0"); - if (lp->d_sbsize == 0) { - fprintf(stderr, "super block size 0\n"); - errors++; - } else if (lp->d_sbsize % lp->d_secsize) - Warning("super block size %% sector-size != 0"); if (lp->d_npartitions > MAXPARTITIONS) Warning("number of partitions (%lu) > MAXPARTITIONS (%d)", (u_long)lp->d_npartitions, MAXPARTITIONS); |