6194 zfs_info, /* info */
6195 nulldev, /* identify */
6196 nulldev, /* probe */
6197 zfs_attach, /* attach */
6198 zfs_detach, /* detach */
6199 nodev, /* reset */
6200 &zfs_cb_ops, /* driver operations */
6201 NULL, /* no bus operations */
6202 NULL, /* power */
6203 ddi_quiesce_not_needed, /* quiesce */
6204 };
6205
6206 static struct modldrv zfs_modldrv = {
6207 &mod_driverops,
6208 "ZFS storage pool",
6209 &zfs_dev_ops
6210 };
6211
6212 static struct modlinkage modlinkage = {
6213 MODREV_1,
6214 (void *)&zfs_modlfs,
6215 (void *)&zfs_modldrv,
6216 NULL
6217 };
6218
6219 static void
6220 zfs_allow_log_destroy(void *arg)
6221 {
6222 char *poolname = arg;
6223 strfree(poolname);
6224 }
6225
6226 int
6227 _init(void)
6228 {
6229 int error;
6230
6231 spa_init(FREAD | FWRITE);
6232 zfs_init();
6233 zvol_init();
6234 zfs_ioctl_init();
6235
6236 if ((error = mod_install(&modlinkage)) != 0) {
|
6194 zfs_info, /* info */
6195 nulldev, /* identify */
6196 nulldev, /* probe */
6197 zfs_attach, /* attach */
6198 zfs_detach, /* detach */
6199 nodev, /* reset */
6200 &zfs_cb_ops, /* driver operations */
6201 NULL, /* no bus operations */
6202 NULL, /* power */
6203 ddi_quiesce_not_needed, /* quiesce */
6204 };
6205
6206 static struct modldrv zfs_modldrv = {
6207 &mod_driverops,
6208 "ZFS storage pool",
6209 &zfs_dev_ops
6210 };
6211
6212 static struct modlinkage modlinkage = {
6213 MODREV_1,
6214 { (void *)&zfs_modlfs,
6215 (void *)&zfs_modldrv,
6216 NULL
6217 }
6218 };
6219
6220 static void
6221 zfs_allow_log_destroy(void *arg)
6222 {
6223 char *poolname = arg;
6224 strfree(poolname);
6225 }
6226
6227 int
6228 _init(void)
6229 {
6230 int error;
6231
6232 spa_init(FREAD | FWRITE);
6233 zfs_init();
6234 zvol_init();
6235 zfs_ioctl_init();
6236
6237 if ((error = mod_install(&modlinkage)) != 0) {
|