Add zvol_inhibit_dev module option.
authorDarik Horn <dajhorn@vanadac.com>
Sat, 2 Jun 2012 01:49:10 +0000 (20:49 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 14 Jun 2012 00:05:16 +0000 (17:05 -0700)
commit74497b7ab6af69434453e03c755d3f6e6e655aee
tree69c6d2068536df39f2a45e58de7deb427f0db2af
parentbc98d6c80944dcd920d1147e6bff2192e886a2f5
Add zvol_inhibit_dev module option.

ZoL can create more zvols at runtime than can be configured during
system start, which hangs the init stack at reboot.

When a slow system has more than a few hundred zvols, udev will
fork bomb during system start and spend too much time in device
detection routines, so upstart kills it.

The zfs_inhibit_dev option allows an affected system to be rescued
by skipping /dev/zd* creation and thereby avoiding the udev
overload. All zvols are made inaccessible if this option is set, but
the `zfs destroy` and `zfs send` commands still work, and ZFS
filesystems can be mounted.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
module/zfs/zvol.c