VFS_TBLTHREADSAFE | VFS_TBLFSNODELOCK | VFS_TBLNOTYPENUM | VFS_TBL64BITREADY,
fsd_module_start(struct kmod_info *ki, void *data)
{
int desccount;
errno_t error = 0;
struct vfs_fsentry *vfe = &fsd_fsentry;
desccount = vfe->vfe_vopcnt;
IOLog("%s: %d, %p, %p, %d\n", __FUNCTION__, desccount,
vfe->vfe_vfsops, vfe->vfe_opvdescs, vfe->vfe_flags);
if ((desccount <=0) || ((desccount > 8)) ||
(vfe->vfe_vfsops == (struct vfsops *)NULL) ||
(vfe->vfe_opvdescs == (struct vnodeopv_desc **)NULL)) {
IOLog("%s: returning failure, %d\n", __FUNCTION__, __LINE__);
return KMOD_RETURN_FAILURE;
}
if ((vfe->vfe_flags & (VFS_TBLTHREADSAFE | VFS_TBLFSNODELOCK)) == 0) {
IOLog("%s: returning failure, %d\n", __FUNCTION__, __LINE__);
return KMOD_RETURN_FAILURE;
}
error = vfs_fsadd(vfe, &fsd_vfsconf);
IOLog("%s: returned %s, %d, %d\n", __FUNCTION__,
error ? "failure" : "success", __LINE__, error);
return error ? KMOD_RETURN_FAILURE : KMOD_RETURN_SUCCESS;
}
Any help is greatly appreciated. Thanks!