2c79a2fa6a
Specifically, the following bugs are fixed in this patch: 1) zdb wasn't getting the correct device size when the vdev is a block device. In Solaris, fstat64() returns the device size but in Linux an ioctl() is needed. 2) We were opening block devices with O_DIRECT, which caused pread64() to fail with EINVAL due to memory alignment issues. This was fixed by the previous umem cache alignment fix in stub implementation to align objects correctly. But we still needed to add a check for the error here. 3) We also make sure that we don't try to open a block device in write mode in userspace. This shouldn't happen, because zdb opens devices in read-only mode, and ztest only uses files. |
||
---|---|---|
.. | ||
libavl | ||
libefi | ||
libnvpair | ||
libunicode | ||
libuutil | ||
libzfs | ||
libzpool | ||
Makefile.am |