mirror_zfs/lib/libzfs
Brian Behlendorf 5e7affae52 Skip /dev/hpet during 'zpool import'
If libblkid does not contain ZFS support, then 'zpool import' will scan
all block devices in /dev/ to determine which ones are components of a
ZFS filesystem.  It does this by opening all the devices and stat'ing
them to determine which ones are block devices.  If the device turns
out not to be a block device it is skipped.

Usually, this whole process is pretty harmless (although slow).  But
there are certain devices in /dev/ which must be handled in a very
specific way or your system may crash.  For example, if /dev/watchdog
is simply opened the watchdog timer will be started and your system
will panic when the timer expires.

It turns out the /dev/hpet causes similiar problems although only when
accessed under a virtual machine.  For some reason accessing /dev/hpet
causes qemu to crash.  To address this issue this commit adds /dev/hpet
to the device blacklist, it will be skipped solely based on its name.
2010-11-12 09:33:17 -08:00
..
libzfs_changelist.c Add linux user disk support 2010-08-31 13:42:00 -07:00
libzfs_config.c Fix gcc missing braces warnings 2010-08-27 15:34:03 -07:00
libzfs_dataset.c Add linux user disk support 2010-08-31 13:42:00 -07:00
libzfs_diff.c Add linux compatibility 2010-08-31 13:41:59 -07:00
libzfs_fru.c Add linux topology support 2010-08-31 13:42:00 -07:00
libzfs_graph.c Fix gcc missing braces warnings 2010-08-27 15:34:03 -07:00
libzfs_import.c Skip /dev/hpet during 'zpool import' 2010-11-12 09:33:17 -08:00
libzfs_mount.c Add linux user disk support 2010-08-31 13:42:00 -07:00
libzfs_pool.c Support shorthand names with zpool remove 2010-10-22 12:25:46 -07:00
libzfs_sendrecv.c Add linux user util support 2010-08-31 13:42:01 -07:00
libzfs_status.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
libzfs_util.c Call modprobe with absolute path 2010-10-22 12:39:57 -07:00
Makefile.am Support custom build directories and move includes 2010-09-08 12:38:56 -07:00
Makefile.in Add FAILFAST support 2010-10-12 14:55:02 -07:00