Brian Behlendorf
c7c19c1259
Merge branch 'linux-user-disk' into refs/top-bases/linux-zfs-branch
2010-03-10 12:09:32 -08:00
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
Ricardo M. Correia
c557557e4a
Add umem_alloc_aligned() and honor cache_align field for umem caches
...
Under linux we open block devices with O_DIRECT which means we must
provide aligned memory buffers. This patch adds the needed umem
interfaces or in the case of caches simply honors alignment provided
at cache creation time.
2010-03-10 11:51:43 -08:00
Brian Behlendorf
6663e28c0b
Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch
2010-03-10 09:59:54 -08:00
Brian Behlendorf
f13e607b28
Merge commit 'refs/top-bases/linux-zfs-branch' into linux-zfs-branch
2010-03-10 09:59:52 -08:00
Brian Behlendorf
9c0d97face
Merge branch 'linux-have-idmap' into refs/top-bases/linux-zfs-branch
2010-03-10 09:59:51 -08:00
Brian Behlendorf
b02716b3d7
Merge commit 'refs/top-bases/linux-have-idmap' into linux-have-idmap
2010-03-10 09:59:49 -08:00
Brian Behlendorf
9eccf857fc
Merge branch 'linux-ztest' into refs/top-bases/linux-zfs-branch
2010-03-10 09:59:44 -08:00
Brian Behlendorf
69833fb0bb
Merge commit 'refs/top-bases/linux-ztest' into linux-ztest
2010-03-10 09:59:42 -08:00
Brian Behlendorf
b646d93620
Merge branch 'linux-unused' into refs/top-bases/linux-zfs-branch
2010-03-10 09:59:37 -08:00
Brian Behlendorf
b47f6b7691
Merge commit 'refs/top-bases/linux-unused' into linux-unused
2010-03-10 09:59:35 -08:00
Brian Behlendorf
7dbaeb671d
Merge branch 'linux-libspl' into refs/top-bases/linux-zfs-branch
2010-03-10 09:59:30 -08:00
Brian Behlendorf
3670186d0a
Merge commit 'refs/top-bases/linux-libspl' into linux-libspl
2010-03-10 09:59:28 -08:00
Brian Behlendorf
85a710a0da
Merge branch 'linux-zpios' into refs/top-bases/linux-zfs-branch
2010-03-10 09:59:23 -08:00
Brian Behlendorf
8e62815eea
Merge commit 'refs/top-bases/linux-zpios' into linux-zpios
2010-03-10 09:59:21 -08:00
Brian Behlendorf
df3aa8242b
Merge branch 'linux-user-disk' into refs/top-bases/linux-zfs-branch
2010-03-10 09:59:16 -08:00
Brian Behlendorf
1186ea3781
Merge commit 'refs/top-bases/linux-user-disk' into linux-user-disk
2010-03-10 09:59:14 -08:00
Brian Behlendorf
1a2b64653a
Merge branch 'linux-symbol-collisions' into refs/top-bases/linux-zfs-branch
2010-03-10 09:59:09 -08:00
Brian Behlendorf
8dce5973eb
Merge commit 'refs/top-bases/linux-symbol-collisions' into linux-symbol-collisions
2010-03-10 09:59:07 -08:00
Brian Behlendorf
c2037c0c27
Merge branch 'linux-legacy' into refs/top-bases/linux-zfs-branch
2010-03-10 09:59:02 -08:00
Brian Behlendorf
211edca1cc
Merge commit 'refs/top-bases/linux-legacy' into linux-legacy
2010-03-10 09:59:00 -08:00
Brian Behlendorf
4dc7d1aceb
Merge branch 'linux-kernel-mem' into refs/top-bases/linux-zfs-branch
2010-03-10 09:58:55 -08:00
Brian Behlendorf
eb99e5706b
Merge commit 'refs/top-bases/linux-kernel-mem' into linux-kernel-mem
2010-03-10 09:58:52 -08:00
Brian Behlendorf
138931f868
Merge branch 'linux-kernel-disk' into refs/top-bases/linux-zfs-branch
2010-03-10 09:58:47 -08:00
Brian Behlendorf
90c4f99e36
Merge commit 'refs/top-bases/linux-kernel-disk' into linux-kernel-disk
2010-03-10 09:58:45 -08:00
Brian Behlendorf
bb21b58943
Merge branch 'linux-have-sysevent' into refs/top-bases/linux-zfs-branch
2010-03-10 09:58:40 -08:00
Brian Behlendorf
724a450233
Merge commit 'refs/top-bases/linux-have-sysevent' into linux-have-sysevent
2010-03-10 09:58:38 -08:00
Brian Behlendorf
c1c14c18c8
Merge commit 'refs/top-bases/linux-kernel-module' into linux-kernel-module
2010-03-10 09:58:37 -08:00
Brian Behlendorf
37f7c0842f
Merge branch 'linux-have-spl-debug' into refs/top-bases/linux-zfs-branch
2010-03-10 09:58:28 -08:00
Brian Behlendorf
509439a63e
Merge commit 'refs/top-bases/linux-have-spl-debug' into linux-have-spl-debug
2010-03-10 09:58:26 -08:00
Brian Behlendorf
0152c1e275
Merge branch 'linux-have-mntent' into refs/top-bases/linux-zfs-branch
2010-03-10 09:58:21 -08:00
Brian Behlendorf
9cbaecdd01
Merge commit 'refs/top-bases/linux-have-mntent' into linux-have-mntent
2010-03-10 09:58:19 -08:00
Brian Behlendorf
31c8d3565f
Merge branch 'linux-have-fm' into refs/top-bases/linux-zfs-branch
2010-03-10 09:58:14 -08:00
Brian Behlendorf
014fcdccb5
Merge commit 'refs/top-bases/linux-have-fm' into linux-have-fm
2010-03-10 09:58:12 -08:00
Brian Behlendorf
a97cedc2df
Merge branch 'linux-docs' into refs/top-bases/linux-zfs-branch
2010-03-10 09:58:07 -08:00
Brian Behlendorf
ec4e27c1e7
Merge commit 'refs/top-bases/linux-docs' into linux-docs
2010-03-10 09:58:05 -08:00
Brian Behlendorf
7223b8df33
Merge commit 'refs/top-bases/zfs-branch' into zfs-branch
2010-03-10 09:58:04 -08:00
Brian Behlendorf
54cf7ab2bc
Merge branch 'fix-branch' into refs/top-bases/zfs-branch
2010-03-10 09:58:03 -08:00
Brian Behlendorf
104e33e79b
Merge commit 'refs/top-bases/fix-branch' into fix-branch
2010-03-10 09:54:44 -08:00
Brian Behlendorf
166355dcf0
Merge branch 'fix-error-handling' into refs/top-bases/fix-branch
2010-03-10 09:54:43 -08:00
Brian Behlendorf
33d6f7ee08
New TopGit dependency: fix-error-handling
2010-03-10 09:54:41 -08:00
Ricardo M. Correia
62a0ac8f22
Fix some incorrect error handling.
...
In vn_open(), if fstat64() returned an error, the real errno
was being obscured by calling close().
Add error handling for both pwrite64() calls in vn_rdwr().
2010-03-10 09:53:53 -08:00
Brian Behlendorf
68b657e394
Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch
2010-03-09 14:56:34 -08:00
Brian Behlendorf
6cebd0b385
Merge commit 'refs/top-bases/linux-zfs-branch' into linux-zfs-branch
2010-03-09 14:56:33 -08:00
Brian Behlendorf
5c9d4629ee
Merge branch 'linux-have-idmap' into refs/top-bases/linux-zfs-branch
2010-03-09 14:56:32 -08:00
Brian Behlendorf
01aaa755f6
Merge commit 'refs/top-bases/linux-have-idmap' into linux-have-idmap
2010-03-09 14:56:30 -08:00
Brian Behlendorf
b077eb69ea
Merge branch 'linux-ztest' into refs/top-bases/linux-zfs-branch
2010-03-09 14:56:25 -08:00
Brian Behlendorf
6858ca3c59
Merge commit 'refs/top-bases/linux-ztest' into linux-ztest
2010-03-09 14:56:23 -08:00
Brian Behlendorf
22f524e95d
Merge branch 'linux-unused' into refs/top-bases/linux-zfs-branch
2010-03-09 14:56:18 -08:00
Brian Behlendorf
838036387f
Merge commit 'refs/top-bases/linux-unused' into linux-unused
2010-03-09 14:56:16 -08:00