mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 00:33:30 +00:00
MFC r339707: Allow fdisk(8) to deal with sectors larger than 2048
especially for 4Kn drives with PMBR's Approved by: bde (mentor, implicit)
This commit is contained in:
parent
84460af7db
commit
6ad6070ac7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/12/; revision=344490
@ -67,7 +67,7 @@ static char lbuf[LBUF];
|
|||||||
|
|
||||||
#define Decimal(str, ans, tmp, maxval) if (decimal(str, &tmp, ans, maxval)) ans = tmp
|
#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 */
|
#define MIN_SEC_SIZE 512 /* the sector size to start sensing at */
|
||||||
static int secsize = 0; /* the sensed sector size */
|
static int secsize = 0; /* the sensed sector size */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user