Commit Graph

20721 Commits

Author SHA1 Message Date
Brian Behlendorf c25c7311c1 Merge commit 'refs/top-bases/linux-libspl' into linux-libspl 2010-08-05 11:31:57 -07:00
Brian Behlendorf 01816a0556 Merge branch 'linux-zpios' into refs/top-bases/linux-zfs-branch 2010-08-05 11:31:50 -07:00
Brian Behlendorf ad06a3ace5 Merge commit 'refs/top-bases/linux-zpios' into linux-zpios 2010-08-05 11:31:48 -07:00
Brian Behlendorf b00a6deac1 Merge branch 'linux-user-disk' into refs/top-bases/linux-zfs-branch 2010-08-05 11:31:41 -07:00
Brian Behlendorf 21c8b40f8e Merge commit 'refs/top-bases/linux-user-disk' into linux-user-disk 2010-08-05 11:31:39 -07:00
Brian Behlendorf bfbf05a59f Merge branch 'linux-symbol-collisions' into refs/top-bases/linux-zfs-branch 2010-08-05 11:31:31 -07:00
Brian Behlendorf 06751bed08 Merge commit 'refs/top-bases/linux-symbol-collisions' into linux-symbol-collisions 2010-08-05 11:31:29 -07:00
Brian Behlendorf 021207deba Merge branch 'linux-kernel-mem' into refs/top-bases/linux-zfs-branch 2010-08-05 11:31:23 -07:00
Brian Behlendorf 1ba44f8fc0 Merge commit 'refs/top-bases/linux-kernel-mem' into linux-kernel-mem 2010-08-05 11:31:20 -07:00
Brian Behlendorf 830ff99e23 Merge branch 'linux-kernel-disk' into refs/top-bases/linux-zfs-branch 2010-08-05 11:31:13 -07:00
Brian Behlendorf 1282a0335f Merge commit 'refs/top-bases/linux-kernel-disk' into linux-kernel-disk 2010-08-05 11:31:11 -07:00
Brian Behlendorf c833ae63d6 Merge branch 'linux-have-spl-debug' into refs/top-bases/linux-zfs-branch 2010-08-05 11:31:03 -07:00
Brian Behlendorf 121f70f995 Merge commit 'refs/top-bases/linux-have-spl-debug' into linux-have-spl-debug 2010-08-05 11:31:01 -07:00
Brian Behlendorf a43fffcdbf Merge branch 'linux-have-mntent' into refs/top-bases/linux-zfs-branch 2010-08-05 11:30:54 -07:00
Brian Behlendorf 7878559435 Merge commit 'refs/top-bases/linux-have-mntent' into linux-have-mntent 2010-08-05 11:30:52 -07:00
Brian Behlendorf f6233da863 Add cleanup option -c to zpios-sanity.sh
See commit a6644f49a5 for full
details of cleanup option.
2010-08-05 11:25:36 -07:00
Brian Behlendorf a6644f49a5 Add cleanup option -c to zconfig.sh
Several folks have now remarked that when the regression tests
fail they leave a mess behind.  This was done intentionally at
the time to facilitate debugging the wreckage.

However, this also means that you may need to do some manual
cleanup such as removing the loopback devices before re-running
the tests.  To simplify this proceedure I've added the '-c'
option to zconfig.sh which will attempt to cleanup the mess
from a previous test before starting.

This is somewhat dangerous because it must guess as to which
loopback devices you were using.  But this risk is fairly minimal
because devices which are currently still is use can not be
cleaned up.  And because only devices with 'zpool' in the name
are considered for removal.  That said if your running parallel
copies of say zconfig.sh this may cause you some trouble.
2010-08-05 11:24:04 -07:00
Brian Behlendorf 019953e0b7 Update zconfig to check partitions
Update the zconfig.sh test script to verify not only that volumes,
snapshots, and clones are created and removed properly.  But also
verify that the partition information for each of these types of
devices is properly enumerated by the kernel.

Tests 4 and 5 now also create two partitions on the original volume
and these partitions are expected to also exist on the snapshot and
the clone.  Correctness is verified after import/export, module
load/unload, dataset creation, and pool destruction.

Additionally, the code to create a partition table was refactored
in to a small helper function to simplify the test cases.  And
finally all of the function variables were flagged 'local' to ensure
their scope is limited.  This should have been done a while ago.
2010-08-05 11:22:33 -07:00
Brian Behlendorf 5222cdac37 Merge branch 'linux-kernel-disk' into refs/top-bases/linux-zfs-branch 2010-08-04 16:10:44 -07:00
Brian Behlendorf f3aa3b93df Fix zvol partition creation during module load
Partitions for a zvol device were not appearing in /dev/zvol/<pool>/
at module load time for a couple of reasons.

1) The Linux block layer expects a block device to have a non-zero
   capacity during add_disk().  If the capacity is zero it does not
   attempt to open the device which means we never trigger a partition
   scan.  The device capacity was just being set during the first open.

2) Because we expect to be adding a block device to the zvol_state_list
   during zvol_create_minor() the zvol_state_lock() is held.  This
   can result in a deadlock in add_disk() when it attempts to open
   the block device via zvol_open() which also takes this same lock.
   To avoid this issue special handling has been added to zvol_open()
   and zvol_release() to allow the mutex owner to enter these functions
   without retaking the lock.

3) In __zvol_create_minor() the call to dmu_objset_disown() must occur
   before the call to add_disk().  As mentioned above add_disk() results
   in a call to zvol_open() which will attempt to call dmu_objset_own()
   again on the objset.  If the objset is already open it will fail
   resulting in a failed open.  This in turn means the kernel will be
   unable to read the partition information from the device.
2010-08-04 16:05:25 -07:00
Brian Behlendorf 66391bec96 Merge branch 'linux-libspl' into refs/top-bases/linux-zfs-branch 2010-08-04 09:45:00 -07:00
Ned Bass 80819cc01e remove compiler warning on 32-bit systems
commit 421d95b3ea introduced a compiler
warning on 32-bit systems about casting a pointer to an integer of a
different size.  This commit removes the warning by casting the arguments
to snprintf in the same manner as the original VERIFY3_IMPL macro.
2010-08-04 09:38:44 -07:00
Brian Behlendorf 5348255bbc Merge branch 'linux-have-mlslabel' into refs/top-bases/linux-zfs-branch 2010-08-03 16:04:49 -07:00
Brian Behlendorf e0e0ee9862 Merge commit 'refs/top-bases/linux-have-mlslabel' into linux-have-mlslabel 2010-08-03 16:04:47 -07:00
Brian Behlendorf cae3fb7556 Merge branch 'linux-spa-thread' into refs/top-bases/linux-zfs-branch 2010-08-03 16:04:42 -07:00
Brian Behlendorf e8871dbfaf Merge commit 'refs/top-bases/linux-spa-thread' into linux-spa-thread 2010-08-03 16:04:40 -07:00
Brian Behlendorf da306ae41d Merge branch 'linux-topology' into refs/top-bases/linux-zfs-branch 2010-08-03 16:04:34 -07:00
Brian Behlendorf 8bd970935c Merge commit 'refs/top-bases/linux-topology' into linux-topology 2010-08-03 16:04:32 -07:00
Brian Behlendorf bc57441274 Merge branch 'linux-sha2' into refs/top-bases/linux-zfs-branch 2010-08-03 16:04:26 -07:00
Brian Behlendorf 8c051ed3f4 Merge commit 'refs/top-bases/linux-sha2' into linux-sha2 2010-08-03 16:04:24 -07:00
Brian Behlendorf a57d483043 Merge branch 'linux-user-util' into refs/top-bases/linux-zfs-branch 2010-08-03 16:04:18 -07:00
Brian Behlendorf e5a61eee9d Merge commit 'refs/top-bases/linux-user-util' into linux-user-util 2010-08-03 16:04:16 -07:00
Brian Behlendorf 8f95bd3853 Merge branch 'linux-events' into refs/top-bases/linux-zfs-branch 2010-08-03 16:04:10 -07:00
Brian Behlendorf dc7e820e7f Merge commit 'refs/top-bases/linux-events' into linux-events 2010-08-03 16:04:08 -07:00
Brian Behlendorf 4d2216357c Merge branch 'linux-kernel-module' into refs/top-bases/linux-zfs-branch 2010-08-03 16:04:02 -07:00
Brian Behlendorf bfceec0b53 Merge commit 'refs/top-bases/linux-kernel-module' into linux-kernel-module 2010-08-03 16:04:00 -07:00
Brian Behlendorf bdcf982396 Merge branch 'linux-kernel-device' into refs/top-bases/linux-zfs-branch 2010-08-03 16:03:54 -07:00
Brian Behlendorf d48e566806 Merge commit 'refs/top-bases/linux-kernel-device' into linux-kernel-device 2010-08-03 16:03:52 -07:00
Brian Behlendorf ad3a447664 Merge branch 'linux-have-idmap' into refs/top-bases/linux-zfs-branch 2010-08-03 16:03:46 -07:00
Brian Behlendorf 88879e6e8d Merge commit 'refs/top-bases/linux-have-idmap' into linux-have-idmap 2010-08-03 16:03:44 -07:00
Brian Behlendorf adc8f9455b Merge branch 'linux-ztest' into refs/top-bases/linux-zfs-branch 2010-08-03 16:03:38 -07:00
Brian Behlendorf c2ed58313d Merge commit 'refs/top-bases/linux-ztest' into linux-ztest 2010-08-03 16:03:36 -07:00
Brian Behlendorf 45506f87fd Merge branch 'linux-unused' into refs/top-bases/linux-zfs-branch 2010-08-03 16:03:30 -07:00
Brian Behlendorf 30ead1a620 Merge commit 'refs/top-bases/linux-unused' into linux-unused 2010-08-03 16:03:28 -07:00
Brian Behlendorf fda24b60e5 Merge branch 'linux-libspl' into refs/top-bases/linux-zfs-branch 2010-08-03 16:03:22 -07:00
Brian Behlendorf a84164e81c Merge commit 'refs/top-bases/linux-libspl' into linux-libspl 2010-08-03 16:03:20 -07:00
Brian Behlendorf 1cd7da3beb Merge branch 'linux-zpios' into refs/top-bases/linux-zfs-branch 2010-08-03 16:03:14 -07:00
Brian Behlendorf a469c62186 Merge commit 'refs/top-bases/linux-zpios' into linux-zpios 2010-08-03 16:03:12 -07:00
Brian Behlendorf c891ca01c6 Merge branch 'linux-user-disk' into refs/top-bases/linux-zfs-branch 2010-08-03 16:03:06 -07:00
Brian Behlendorf 072418b458 Merge commit 'refs/top-bases/linux-user-disk' into linux-user-disk 2010-08-03 16:03:04 -07:00