Commit Graph

16882 Commits

Author SHA1 Message Date
Brian Behlendorf d60568eb41 Merge commit 'refs/top-bases/linux-kernel-mem' into linux-kernel-mem 2009-10-27 15:03:22 -07:00
Brian Behlendorf 6f111fc3e6 Merge branch 'linux-kernel-disk' into refs/top-bases/linux-zfs-branch 2009-10-27 15:03:16 -07:00
Brian Behlendorf d509ff0e40 Merge commit 'refs/top-bases/linux-kernel-disk' into linux-kernel-disk 2009-10-27 15:03:14 -07:00
Brian Behlendorf 969fde4ae5 Merge branch 'linux-have-zvol' into refs/top-bases/linux-zfs-branch 2009-10-27 15:03:09 -07:00
Brian Behlendorf f80667aafb Merge commit 'refs/top-bases/linux-have-zvol' into linux-have-zvol 2009-10-27 15:03:07 -07:00
Brian Behlendorf 9569fa25a4 Merge branch 'linux-have-uio-rw' into refs/top-bases/linux-zfs-branch 2009-10-27 15:03:01 -07:00
Brian Behlendorf 0d884efc91 Merge commit 'refs/top-bases/linux-have-uio-rw' into linux-have-uio-rw 2009-10-27 15:02:59 -07:00
Brian Behlendorf efe92cd6ad Merge commit 'refs/top-bases/linux-debug-zerocopy' into linux-debug-zerocopy 2009-10-27 15:02:59 -07:00
Brian Behlendorf 8874842335 Merge branch 'linux-have-sysevent' into refs/top-bases/linux-zfs-branch 2009-10-27 15:02:49 -07:00
Brian Behlendorf ece5e73882 Merge commit 'refs/top-bases/linux-have-sysevent' into linux-have-sysevent 2009-10-27 15:02:47 -07:00
Brian Behlendorf 33618ea044 Merge commit 'refs/top-bases/linux-kernel-module' into linux-kernel-module 2009-10-27 15:02:46 -07:00
Brian Behlendorf 234633b4b1 Merge branch 'linux-have-spl-debug' into refs/top-bases/linux-zfs-branch 2009-10-27 15:02:37 -07:00
Brian Behlendorf 68f961299e Merge commit 'refs/top-bases/linux-have-spl-debug' into linux-have-spl-debug 2009-10-27 15:02:35 -07:00
Brian Behlendorf ab4306f9d1 Merge branch 'linux-have-mntent' into refs/top-bases/linux-zfs-branch 2009-10-27 15:02:29 -07:00
Brian Behlendorf 001c847cc7 Merge commit 'refs/top-bases/linux-have-mntent' into linux-have-mntent 2009-10-27 15:02:27 -07:00
Brian Behlendorf 617655ee5f Merge branch 'linux-have-fm' into refs/top-bases/linux-zfs-branch 2009-10-27 15:02:22 -07:00
Brian Behlendorf 2650b697e0 Merge commit 'refs/top-bases/linux-have-fm' into linux-have-fm 2009-10-27 15:02:20 -07:00
Brian Behlendorf df6bfa3ce9 Merge branch 'linux-docs' into refs/top-bases/linux-zfs-branch 2009-10-27 15:02:15 -07:00
Brian Behlendorf 87218f5709 Merge commit 'refs/top-bases/linux-docs' into linux-docs 2009-10-27 15:02:13 -07:00
Brian Behlendorf a9accbcb57 Always open using O_EXCL to ensure the device is not in use.
Allow partition tables on md devices but not dm- devices.
2009-10-27 14:58:12 -07:00
Brian Behlendorf ed97b4447d Adds the last missing block device support (merge_bdev support)
This change should wrap up the last of the missing block device
support in the vdev_disk layer.  With this change I can now
successfully create and use zpools which are layered on top of
md and lvm virtual devices.  The following changes include:

1) The big one, properly handle the case when page cannot be added
to a bio due to dynamic limitation of a merge_bdev handler.  For
example the md device will limit a bio to the configured stripe
size.  Our bio size may also end up being limited by the maximum
request size, and other factors determined during bio construction.

To handle all of the above cases the code has been updated to
handle failures from bio_add_page().  This had been hardcoded to
never fail for the prototype proof of concept implementation.  In
the case of a failure the number of bytes which still need to be
added to a bio are returned.  New bio's are allocated and attached
to the dio until the entire data buffer is mapped to bios.  It is
then submitted as before to the request queue, and once all the bio's
attached to a dio have finished the completion callback is run.

2) The devid comments have been removed because it is not clear to
me that we will not need devid support.  They have been replaced
with a comment explaining that udev can and should be used.
2009-10-27 14:38:38 -07:00
Brian Behlendorf 008f3a42bb Added zpios-sanity.sh script to validate common configurations.
This script was added to provide a simple way to check that zpool
layers correctly on all the standard linux block device types.
It's still a little fragile if there a hiccup in say the md or
lvm tool chain but aside from that it works well.

The 'make check' target now also calls this script in a safe mode
which only operates on files and loopback devices.  To check other
block devices types is must be explicitly run by hand because it
will overwrite various block devices.
2009-10-27 14:33:27 -07:00
Brian Behlendorf 2d70e6fd91 Update scripts to cleanup better when setup failures occur 2009-10-27 14:31:31 -07:00
Brian Behlendorf 85450bdb88 Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2009-10-26 10:53:55 -07:00
Brian Behlendorf 16b3e8d559 Merge commit 'refs/top-bases/linux-zfs-branch' into linux-zfs-branch 2009-10-26 10:53:53 -07:00
Brian Behlendorf 0f959cc313 Merge branch 'linux-user-disk' into refs/top-bases/linux-zfs-branch 2009-10-26 10:53:52 -07:00
Brian Behlendorf 37a519433c Add additional clarification for Linux systems to error message. 2009-10-26 10:50:43 -07:00
Brian Behlendorf bc3183067e Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2009-10-26 10:50:10 -07:00
Brian Behlendorf 648207adf6 Merge commit 'refs/top-bases/linux-zfs-branch' into linux-zfs-branch 2009-10-26 10:50:08 -07:00
Brian Behlendorf b845e1e543 Merge branch 'linux-have-idmap' into refs/top-bases/linux-zfs-branch 2009-10-26 10:50:07 -07:00
Brian Behlendorf 9190d7b0e2 Merge commit 'refs/top-bases/linux-have-idmap' into linux-have-idmap 2009-10-26 10:50:06 -07:00
Brian Behlendorf e731c16616 Merge branch 'linux-ztest' into refs/top-bases/linux-zfs-branch 2009-10-26 10:50:01 -07:00
Brian Behlendorf 745711e4fa Merge commit 'refs/top-bases/linux-ztest' into linux-ztest 2009-10-26 10:50:00 -07:00
Brian Behlendorf ec3b852f87 Merge branch 'linux-have-zpl' into refs/top-bases/linux-zfs-branch 2009-10-26 10:49:55 -07:00
Brian Behlendorf 395efeea02 Merge commit 'refs/top-bases/linux-have-zpl' into linux-have-zpl 2009-10-26 10:49:53 -07:00
Brian Behlendorf 195775b62d Merge branch 'linux-unused' into refs/top-bases/linux-zfs-branch 2009-10-26 10:49:49 -07:00
Brian Behlendorf 688a77c600 Merge commit 'refs/top-bases/linux-unused' into linux-unused 2009-10-26 10:49:47 -07:00
Brian Behlendorf a33c17f764 Merge branch 'linux-libspl' into refs/top-bases/linux-zfs-branch 2009-10-26 10:49:43 -07:00
Brian Behlendorf 2a90602f35 Merge commit 'refs/top-bases/linux-libspl' into linux-libspl 2009-10-26 10:49:41 -07:00
Brian Behlendorf 0b7e2369b1 Merge branch 'linux-zpios' into refs/top-bases/linux-zfs-branch 2009-10-26 10:49:37 -07:00
Brian Behlendorf 753a45822f Merge commit 'refs/top-bases/linux-zpios' into linux-zpios 2009-10-26 10:49:35 -07:00
Brian Behlendorf 419036f635 Merge branch 'linux-user-disk' into refs/top-bases/linux-zfs-branch 2009-10-26 10:49:30 -07:00
Brian Behlendorf 757cbd422e Merge commit 'refs/top-bases/linux-user-disk' into linux-user-disk 2009-10-26 10:49:28 -07:00
Brian Behlendorf 60b32c37d7 Merge branch 'linux-symbol-collisions' into refs/top-bases/linux-zfs-branch 2009-10-26 10:49:24 -07:00
Brian Behlendorf 50b1a0b822 Merge commit 'refs/top-bases/linux-symbol-collisions' into linux-symbol-collisions 2009-10-26 10:49:22 -07:00
Brian Behlendorf c2be60c215 Merge branch 'linux-legacy' into refs/top-bases/linux-zfs-branch 2009-10-26 10:49:18 -07:00
Brian Behlendorf 5544dc20a5 Merge commit 'refs/top-bases/linux-legacy' into linux-legacy 2009-10-26 10:49:16 -07:00
Brian Behlendorf 7091db797b Merge branch 'linux-kernel-mem' into refs/top-bases/linux-zfs-branch 2009-10-26 10:49:11 -07:00
Brian Behlendorf ebb2afcdfe Merge commit 'refs/top-bases/linux-kernel-mem' into linux-kernel-mem 2009-10-26 10:49:09 -07:00
Brian Behlendorf 81a0245120 Merge branch 'linux-kernel-disk' into refs/top-bases/linux-zfs-branch 2009-10-26 10:49:05 -07:00