]> git.proxmox.com Git - mirror_zfs-debian.git/commit
Make commands load zfs module on demand
authorNed Bass <bass6@llnl.gov>
Thu, 7 Oct 2010 01:00:55 +0000 (18:00 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 11 Oct 2010 19:22:36 +0000 (12:22 -0700)
commit4b1abce9f5c20e298ddaa3368b3fb6a529c71459
tree339482333841bbbb106debffa9ff3373f186fe13
parent83c62c939938ca5915a61022208a31c4ab3faa1c
Make commands load zfs module on demand

This commit modifies libzfs_init() to attempt to load the zfs kernel module if
it is not already loaded.  This is done to simplify initialization by letting
users simply import their zpools without having to first load the module.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
lib/libzfs/libzfs_util.c