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 /sys/kern | |
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 'sys/kern')
-rw-r--r-- | sys/kern/subr_diskslice.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/subr_diskslice.c b/sys/kern/subr_diskslice.c index 158ccbb80a3a..9259bf8124fc 100644 --- a/sys/kern/subr_diskslice.c +++ b/sys/kern/subr_diskslice.c @@ -59,8 +59,6 @@ #include <sys/syslog.h> #include <sys/vnode.h> -#include <ufs/ffs/fs.h> - #define TRACE(str) do { if (ds_debug) printf str; } while (0) typedef u_char bool_t; @@ -113,8 +111,6 @@ clone_label(lp) lp1->d_npartitions = MAXPARTITIONS; if (lp1->d_bbsize == 0) lp1->d_bbsize = BBSIZE; - if (lp1->d_sbsize == 0) - lp1->d_sbsize = SBSIZE; lp1->d_partitions[RAW_PART].p_size = lp1->d_secperunit; lp1->d_magic = DISKMAGIC; lp1->d_magic2 = DISKMAGIC; @@ -394,7 +390,7 @@ dsioctl(dev, cmd, data, flags, sspp) lp->d_ntracks = 64; lp->d_bbsize = BBSIZE; - lp->d_sbsize = SBSIZE; + lp->d_sbsize = 0; lp->d_secpercyl = lp->d_nsectors * lp->d_ntracks; lp->d_ncylinders = sp->ds_size / lp->d_secpercyl; lp->d_secperunit = sp->ds_size; |