Commit Graph

1177 Commits

Author SHA1 Message Date
Brian Behlendorf 9953593fa1 Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-08-17 10:51:31 -07:00
Brian Behlendorf aa3f7f1c62 Merge branch 'linux-user-disk' into refs/top-bases/linux-zfs-branch 2010-08-17 10:51:28 -07:00
Brian Behlendorf dfd3339d12 Support udev shorthand paths
The Solaris code allows shorthand paths by checking for the short
name in /dev/dsk/.  For Linux we extend this shorthand syntax to
be udev aware.  This commit now additionally checks for the short
name in /dev/, /dev/disk/by-id, /dev/disk/by-label, /dev/disk/by-path,
/dev/disk/by-uuid, and /dev/disk/zpool/.  If the short name is found
in any of these places the path is fully expanded and used.  This
may allow for the simpler creation of pools:

  # Using /dev/disk/by-id/ short names
  zpool crete tank raidz ata-Maxtor_7Y250M0_Y638DK2E \
      ata-Maxtor_7Y250M0_Y638PBNE ata-Maxtor_7Y250M0_Y638PBZE

  # Using /dev/disk/zpool/ short names
  zpool create tank raidz2 A1 A2 A3 A4 mirror B1 B2 B3 B4

  # Using full path names
  zpool create tank raidz2 /dev/sd[ah]
2010-08-17 10:34:59 -07:00
Brian Behlendorf c8bd1e32ac Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-08-16 21:14:59 -07:00
Brian Behlendorf b700c8f4ea Merge commit 'refs/top-bases/linux-user-disk' into linux-user-disk 2010-08-16 21:12:45 -07:00
Brian Behlendorf cb2ed434d5 Merge branch 'linux-have-mntent' into refs/top-bases/linux-zfs-branch 2010-08-16 21:11:57 -07:00
Brian Behlendorf 204ed75462 Cleanly handle partitions in zpool_layout
I knew I'd forget something in the first version of this script.
It turns out what I forgot was partition handling, this commit
ensures duplicate entries are not created in the zdev.conf file.
This previously could occur due to partition entires in the by-path
directory.  This is not needed the existing udev rules will ensure
the partitions are created in /dev/disk/zpool/.
2010-08-16 20:58:43 -07:00
Brian Behlendorf 593d5a361f Refresh autogen.sh products 2010-08-16 17:04:57 -07:00
Brian Behlendorf f82f5c5556 Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-08-16 16:20:37 -07:00
Brian Behlendorf c397c1ba5b Merge commit 'refs/top-bases/linux-user-disk' into linux-user-disk 2010-08-16 16:17:18 -07:00
Brian Behlendorf 359a7bda2f Merge branch 'linux-have-mntent' into refs/top-bases/linux-zfs-branch
Conflicts:

	cmd/Makefile.am
2010-08-16 16:14:32 -07:00
Brian Behlendorf 7f939f28eb Add zpool_layout command
The zpool_layout command is designed to automatically scan the
udev /dev/disk/by-path directory and generate a /etc/zfs/zdev.conf
file.  It does this by enumerating the disks attached to the
specified buses/ports and sequentially mapping them to short
<channel><rank> names in /dev/disk/zpool/.  This tool should only
be run after all the available disks have been discovered.  And
the resulting config file does not need to be regenerated unless
your backend configuration changes.
2010-08-16 15:54:06 -07:00
Brian Behlendorf 586a629b1e Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-08-12 21:30:36 -07:00
Brian Behlendorf 954949bbc6 Merge commit 'refs/top-bases/linux-user-disk' into linux-user-disk 2010-08-12 21:28:45 -07:00
Brian Behlendorf f412e32773 Merge branch 'linux-have-mntent' into refs/top-bases/linux-zfs-branch 2010-08-12 21:28:04 -07:00
Brian Behlendorf 5bbc3e2a68 Merge commit 'refs/top-bases/zfs-branch' into zfs-branch 2010-08-12 21:28:01 -07:00
Brian Behlendorf 13eca9436e Merge branch 'gcc-branch' into refs/top-bases/zfs-branch 2010-08-12 21:28:00 -07:00
Brian Behlendorf a2a77e48ab Merge branch 'gcc-unused' into refs/top-bases/gcc-branch 2010-08-12 21:27:59 -07:00
Brian Behlendorf eed31a5029 Move unused function warning to gcc-unused topic branch
See commit 123b6b2f49.
2010-08-12 21:17:01 -07:00
Brian Behlendorf ca85771557 Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-08-12 21:13:18 -07:00
Brian Behlendorf eaae9055a7 Merge branch 'linux-user-disk' into refs/top-bases/linux-zfs-branch 2010-08-12 21:13:15 -07:00
Brian Behlendorf 123b6b2f49 Move unused function warning to gcc-unused topic branch
The ztest_pattern_match() function is only called from an ASSERT
and needs only to be defined when debugging is enabled.  This
change is to silence a gcc warning and belong with the other
gcc issues.  I'm moving it to the gcc-unused topic branch.
2010-08-12 21:05:24 -07:00
Brian Behlendorf e2f8f607ec Honor spa_config_path for ztest '-f' option
See commit d24fbedd01.
2010-08-12 21:04:29 -07:00
Brian Behlendorf 0bd251d71c Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-08-12 16:45:27 -07:00
Brian Behlendorf 087782198b Merge branch 'linux-ztest' into refs/top-bases/linux-zfs-branch 2010-08-12 16:45:24 -07:00
Brian Behlendorf d24fbedd01 Honor spa_config_path for ztest '-f' option
The new spa_config_path string was lost from ztest_run_zdb() during
the onnv_141 merge.  This commit puts it back in place so the '-f'
option is properly honored.

Additionally this function had been tweaked so ztest could be run
in-tree but that broke running it when installed as a package.  I've
updated that chunk to detect where it's running and try to do the
right thing in both cases.

Closes #49
2010-08-12 16:40:16 -07:00
Brian Behlendorf a4e35d46b7 Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-08-12 15:44:42 -07:00
Brian Behlendorf a41008fceb Merge commit 'refs/top-bases/linux-ztest' into linux-ztest 2010-08-12 15:43:26 -07:00
Brian Behlendorf 37ed92aa16 Merge commit 'refs/top-bases/linux-user-disk' into linux-user-disk 2010-08-12 15:42:54 -07:00
Brian Behlendorf 62e9e03ada Merge branch 'linux-have-mntent' into refs/top-bases/linux-zfs-branch 2010-08-12 15:42:15 -07:00
Brian Behlendorf 7ded72a08d Merge commit 'refs/top-bases/zfs-branch' into zfs-branch 2010-08-12 15:42:12 -07:00
Brian Behlendorf de99114352 Merge branch 'fix-branch' into refs/top-bases/zfs-branch 2010-08-12 15:42:11 -07:00
Brian Behlendorf a1c9fee0c9 Merge branch 'fix-commit-callback' into refs/top-bases/fix-branch
Conflicts:

	cmd/ztest/ztest.c
2010-08-12 15:37:51 -07:00
Ricardo M. Correia 8af0664652 Fix upstream commit callback
The upstream commit cb code had a few bugs:

1) The arguments of the list_move_tail() call in txg_dispatch_callbacks()
were reversed by mistake. This caused the commit callbacks to not be
called at all.

2) ztest had a bug in ztest_dmu_commit_callbacks() where "error" was not
initialized correctly. This seems to have caused the test to always take
the simulated error code path, which made ztest unable to detect whether
commit cbs were being called for transactions that successfuly complete.

3) ztest had another bug in ztest_dmu_commit_callbacks() where the commit
cb threshold was not being compared correctly.

4) The commit cb taskq was using 'max_ncpus * 2' as the maxalloc argument
of taskq_create(), which could have caused unnecessary delays in the txg
sync thread.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2010-08-12 15:34:29 -07:00
Brian Behlendorf 7b66ddcd84 Refresh autogen.sh products 2010-08-09 16:59:53 -07:00
Brian Behlendorf f5a6a98e5c Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-08-02 13:55:28 -07:00
Brian Behlendorf 640f5d9bdd Merge commit 'refs/top-bases/linux-ztest' into linux-ztest 2010-08-02 13:54:12 -07:00
Brian Behlendorf e34cd4b934 Merge commit 'refs/top-bases/linux-user-disk' into linux-user-disk 2010-08-02 13:53:39 -07:00
Brian Behlendorf ec04ed0fbb Merge branch 'linux-have-mntent' into refs/top-bases/linux-zfs-branch 2010-08-02 13:53:00 -07:00
Brian Behlendorf fd164fdb40 Merge commit 'refs/top-bases/zfs-branch' into zfs-branch 2010-08-02 13:52:57 -07:00
Brian Behlendorf 5d145c70f1 Merge branch 'fix-branch' into refs/top-bases/zfs-branch 2010-08-02 13:52:56 -07:00
Brian Behlendorf 8d443f35c4 Merge branch 'fix-stack-ztest' into refs/top-bases/fix-branch 2010-08-02 13:49:04 -07:00
Ned Bass bb20b03060 Move ztest_od_t structures to the heap
A number of ztest functions create one or more 312B ztest_od_t data
structures.  To conserve stack usage, this commit moves all of these data
structures to the heap.  However, I am still seeing ztest segfaults due
to heavy stack usage of the dbuf_findbp() -> dbuf_hold_impl() recursion.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2010-08-02 13:42:25 -07:00
Brian Behlendorf d825659880 Refresh autogen products 2010-07-28 09:49:38 -07:00
Brian Behlendorf 641f300534 Refresh autogen products 2010-07-23 11:50:26 -07:00
Brian Behlendorf 3992d0811c Refresh autogen products 2010-07-23 10:48:54 -07:00
Brian Behlendorf f202496925 Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-07-23 10:46:27 -07:00
Brian Behlendorf 31db1238c8 Merge commit 'refs/top-bases/linux-ztest' into linux-ztest 2010-07-23 10:45:09 -07:00
Brian Behlendorf f00f30038a Merge commit 'refs/top-bases/linux-user-disk' into linux-user-disk 2010-07-23 10:44:36 -07:00
Brian Behlendorf 9f24ae6b22 Merge branch 'linux-have-mntent' into refs/top-bases/linux-zfs-branch 2010-07-23 10:43:58 -07:00