Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Feb 2019 01:56:35 +0000 (UTC)
From:      "Rodney W. Grimes" <rgrimes@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r344490 - in stable: 11/sbin/fdisk 12/sbin/fdisk
Message-ID:  <201902240156.x1O1uZ9F034035@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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/12/sbin/fdisk/fdisk.c
Directory Properties:
  stable/12/   (props changed)

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

Modified: stable/12/sbin/fdisk/fdisk.c
==============================================================================
--- stable/12/sbin/fdisk/fdisk.c	Sat Feb 23 23:35:52 2019	(r344489)
+++ stable/12/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 */
 



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