Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Oct 2018 12:13:13 +0000 (UTC)
From:      "Rodney W. Grimes" <rgrimes@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339707 - head/sbin/fdisk
Message-ID:  <201810251213.w9PCDDxl075250@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810251213.w9PCDDxl075250>