Author: imp
Date: Tue Aug 30 18:01:19 2016
New Revision: 305074
URL: https://svnweb.freebsd.org/changeset/base/305074

Log:
  Remove CHS alignment. It's not needed and causes problems for the BBB
  boot partition. NetBSD removed it in 1.10 in their repo some time ago.
  
  Submitted by: Guy Yur
  PR: 183234

Modified:
  head/sbin/newfs_msdos/mkfs_msdos.c

Modified: head/sbin/newfs_msdos/mkfs_msdos.c
==============================================================================
--- head/sbin/newfs_msdos/mkfs_msdos.c  Tue Aug 30 17:18:35 2016        
(r305073)
+++ head/sbin/newfs_msdos/mkfs_msdos.c  Tue Aug 30 18:01:19 2016        
(r305074)
@@ -313,15 +313,8 @@ mkfs_msdos(const char *fname, const char
        bpb.bpbHiddenSecs = o.hidden_sectors;
     if (!(o.floppy || (o.drive_heads && o.sectors_per_track &&
        o.bytes_per_sector && o.size && o.hidden_sectors_set))) {
-       off_t delta;
        getdiskinfo(fd, fname, dtype, o.hidden_sectors_set, &bpb);
        bpb.bpbHugeSectors -= (o.offset / bpb.bpbBytesPerSec);
-       delta = bpb.bpbHugeSectors % bpb.bpbSecPerTrack;
-       if (delta != 0) {
-           warnx("trim %d sectors to adjust to a multiple of %d",
-               (int)delta, bpb.bpbSecPerTrack);
-           bpb.bpbHugeSectors -= delta;
-       }
        if (bpb.bpbSecPerClust == 0) {  /* set defaults */
            if (bpb.bpbHugeSectors <= 6000)     /* about 3MB -> 512 bytes */
                bpb.bpbSecPerClust = 1;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to