svn commit: r344490 - in stable: 11/sbin/fdisk 12/sbin/fdisk

Rodney W. Grimes rgrimes at FreeBSD.org
Sun Feb 24 01:56:36 UTC 2019


Author: rgrimes
Date: Sun Feb 24 01:56:35 2019
New Revision: 344490
URL: https://svnweb.freebsd.org/changeset/base/344490

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

Modified:
  stable/11/sbin/fdisk/fdisk.c
Directory Properties:
  stable/11/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/12/sbin/fdisk/fdisk.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/11/sbin/fdisk/fdisk.c
==============================================================================
--- stable/11/sbin/fdisk/fdisk.c	Sat Feb 23 23:35:52 2019	(r344489)
+++ stable/11/sbin/fdisk/fdisk.c	Sun Feb 24 01:56:35 2019	(r344490)
@@ -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 */
 


More information about the svn-src-all mailing list