EFI GPT partitions use 'p' as a slice seperator. eg: da0p1 or da0p217.

(There is a theoretical limit of 16384 partitions)
This commit is contained in:
Peter Wemm 2002-10-04 00:29:26 +00:00
parent 4ae86c723c
commit a1c254d8c6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104429

View File

@ -725,7 +725,7 @@ getdiskinfo(int fd, const char *fname, const char *dtype, int oflag,
else
while (isdigit(*++s2));
s1 = s2;
if (s2 && *s2 == 's') {
if (s2 && (*s2 == 's' || *s2 == 'p')) {
slice = strtol(s2 + 1, &s, 10);
if (slice < 1 || slice > MAX_SLICES - BASE_SLICE)
s2 = NULL;