mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue