1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

The number of BSD partitions is variable. Return the proper number

(which is in basetable->gpt_entries).

Submitted by: ae@
This commit is contained in:
Warner Losh 2014-11-19 18:55:27 +00:00
parent aca4343c62
commit dd87e2c610
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274721

View File

@ -521,7 +521,7 @@ g_part_bsd_ioctl(struct g_part_table *basetable, struct g_provider *pp,
table = (struct g_part_bsd_table *)basetable;
p = table->bbarea + pp->sectorsize;
return (bsd_disklabel_le_dec(p, data, MAXPARTITIONS));
return (bsd_disklabel_le_dec(p, data, basetable->gpt_entries));
}
default:
return (ENOIOCTL);