tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: fix getdisksize() for zfs zvols



On Sat, 9 Nov 2019 17:24:12 -0000 (UTC)
Michael van Elst <mlelstv%serpens.de@localhost> wrote:

> The DIOCGWEDGEINFO ioctl for zvols should be deleted.

Agreed, but I think is used to also hardcode the partition type for
mount(8) (argh!) so I'll leave that until we have something better.

> What we can do is adding a fallback for the DIOCSECTORSIZE and DIOCGMEDIASIZE
> ioctls to getdisksize().

That seems reasonable. I will attempt to implement it.
Thanks!

-Tobias


Home | Main Index | Thread Index | Old Index