zfs/lib
Ricardo M. Correia 2c79a2fa6a Fix a few zdb bugs when trying to open a pool
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.
2010-03-10 12:03:48 -08:00
..
libavl Add DEFAULT_INCLUDE to rules, adjust = to += accordingly 2008-12-16 08:58:41 -08:00
libefi Fix duplicate uuid_t typedef. 2010-03-09 13:38:55 -08:00
libnvpair Merge commit 'refs/top-bases/zfs-branch' into zfs-branch 2009-03-11 11:09:13 -07:00
libunicode Add unicode makefile references and support 2009-01-05 12:32:55 -08:00
libuutil Merge commit 'refs/top-bases/zfs-branch' into zfs-branch 2009-03-19 20:59:33 -07:00
libzfs Linux ZVOL implementation; user-side changes 2009-11-20 12:00:08 -08:00
libzpool Fix a few zdb bugs when trying to open a pool 2010-03-10 12:03:48 -08:00
Makefile.am Add libefi library in to the build system. 2009-10-09 15:58:45 -07:00