Update load/unload message, mknod /dev/zfs when udev is unavailable
This commit is contained in:
parent
7001fd57fa
commit
e22bfeab4e
|
@ -560,6 +560,12 @@ libzfs_init(void)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(HAVE_SPL) && !defined(HAVE_GPL_ONLY_SYMBOLS)
|
||||||
|
/* If we don't have access to GPL-only symbols then we may not
|
||||||
|
* use the udev APIs, therefore we must mknod the device ourselves. */
|
||||||
|
(void)mknod(ZFS_DEV, S_IFCHR | 0600, makedev(ZFS_MAJOR, 0));
|
||||||
|
#endif
|
||||||
|
|
||||||
if ((hdl->libzfs_fd = open(ZFS_DEV, O_RDWR)) < 0) {
|
if ((hdl->libzfs_fd = open(ZFS_DEV, O_RDWR)) < 0) {
|
||||||
free(hdl);
|
free(hdl);
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
|
Loading…
Reference in New Issue