On Mon, Feb 25, 2019 at 07:59:15AM -0800, John Nemeth wrote: > } This is also true when using the raw partition. While access to the disk > } is bounded by the real size, the disklabel can only store a 32bit number > } (which is nowadays clamped to the maximum, not just the low 32 bits). > } The dm driver uses getdisksize() to report device information to > } LVM and getdisksize() uses DIOCGPARTINFO to retrieve the partition data. > } It doesn't specially treat the raw partition differently, maybe it > } just should. > > Modern versions of gpt(8) use: > > ioctl(gpt->fd, DIOCGMEDIASIZE, &gpt->mediasz)
Saying this... DIOCGPARTINFO returns the full 64bit media size for the raw partition. So that problem should be gone since netbsd-8. Greetings, -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."