zfs_start()
{
if [ -x /sbin/zfs ]; then
# Get ZFS module loaded (and thereby, zvols created).
/sbin/zfs list > /dev/null 2>&1
if [ $? -ne 0 ]; then
warn "zfs module may not have loaded, may not be present in the kernel, or /dev/zfs may be missing"
return 1;
fi
fi
}
zfs_stop()
{
if [ -x /sbin/zfs ]; then
modunload zfs
fi
return 0;
}