mirror_zfs/scripts
Ned Bass fa417e57a6 Call udevadm trigger more safely
Some udev hooks are not designed to be idempotent, so calling udevadm
trigger outside of the distribution's initialization scripts can have
unexpected (and potentially dangerous) side effects.  For example, the
system time may change or devices may appear multiple times.  See Ubuntu
launchpad bug 320200 and this mailing list post for more details:

https://lists.ubuntu.com/archives/ubuntu-devel/2009-January/027260.html

To avoid these problems we call udevadm trigger with --action=change
--subsystem-match=block.  The first argument tells udev just to refresh
devices, and make sure everything's as it should be.  The second
argument limits the scope to block devices, so devices belonging to
other subsystems cannot be affected.

This doesn't fix the problem on older udev implementations that don't
provide udevadm but instead have udevtrigger as a standalone program.
In this case the above options aren't available so there's no way to
call call udevtrigger safely.  But we can live with that since this
issue only exists in optional test and helper scripts, and most
zfs-on-linux users are running newer systems anyways.
2011-04-05 13:00:51 -07:00
..
zpios-profile Linux 2.6.28 compat, insert_inode_locked() 2011-03-22 12:15:54 -07:00
zpios-test Linux 2.6.28 compat, insert_inode_locked() 2011-03-22 12:15:54 -07:00
zpool-config Linux 2.6.28 compat, insert_inode_locked() 2011-03-22 12:15:54 -07:00
zpool-layout Linux 2.6.28 compat, insert_inode_locked() 2011-03-22 12:15:54 -07:00
common.sh.in Call udevadm trigger more safely 2011-04-05 13:00:51 -07:00
Makefile.am Remove spl/zfs modules as part of cleanup 2010-11-11 11:40:06 -08:00
Makefile.in Linux 2.6.28 compat, insert_inode_locked() 2011-03-22 12:15:54 -07:00
zconfig.sh Add '-ts' options to zconfig.sh/zfault.sh usage 2010-11-11 11:40:06 -08:00
zfault.sh Remove partition from vdev name in zfault.sh 2010-11-29 10:53:53 -08:00
zfs.sh Update 'zfs.sh -u' to umount all zfs filesystems 2011-02-16 11:10:31 -08:00
zpios-sanity.sh Add linux zpios support 2010-08-31 13:42:01 -07:00
zpios-survey.sh Add linux zpios support 2010-08-31 13:42:01 -07:00
zpios.sh Add linux zpios support 2010-08-31 13:42:01 -07:00
zpool-create.sh Add build system 2010-08-31 13:41:27 -07:00