tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

newfs_msdos uses disk size instead of partition size



I think newfs_msdos is using the disk size instead of the partition size.
Is the attached patch correct?

--
Kind regards,

Yorick Hardy
--- sbin/newfs_msdos/newfs_msdos.c.orig 2009-02-15 16:19:07.000000000 +0200
+++ sbin/newfs_msdos/newfs_msdos.c      2009-02-15 16:21:29.000000000 +0200
@@ -800,7 +800,7 @@
        if (!bpb->hds)
            bpb->hds = ckgeom(fname, geo.dg_ntracks, "drive heads");
        if (!bpb->bsec)
-           bpb->bsec = geo.dg_secperunit;
+           bpb->bsec = dkw.dkw_size;
     }
 }
 


Home | Main Index | Thread Index | Old Index