Author: rgrimes
Date: Thu Oct 25 12:13:13 2018
New Revision: 339707
URL: https://svnweb.freebsd.org/changeset/base/339707

Log:
  Allow fdisk(8) to deal with sectors larger than 2048
  especially for 4Kn drives with PMBR's
  
  Approved by:    bde (mentor)
  MFC:            3 days

Modified:
  head/sbin/fdisk/fdisk.c

Modified: head/sbin/fdisk/fdisk.c
==============================================================================
--- head/sbin/fdisk/fdisk.c     Thu Oct 25 08:05:53 2018        (r339706)
+++ head/sbin/fdisk/fdisk.c     Thu Oct 25 12:13:13 2018        (r339707)
@@ -67,7 +67,7 @@ static char lbuf[LBUF];
 
 #define Decimal(str, ans, tmp, maxval) if (decimal(str, &tmp, ans, maxval)) 
ans = tmp
 
-#define MAX_SEC_SIZE 2048      /* maximum section size that is supported */
+#define MAX_SEC_SIZE 65536     /* maximum sector size that is supported */
 #define MIN_SEC_SIZE 512       /* the sector size to start sensing at */
 static int secsize = 0;                /* the sensed sector size */
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to