mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 19:52:44 +00:00
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:
parent
4ae86c723c
commit
a1c254d8c6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104429
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user