From aa59c4cb15a6ac5d4e585dadf7a055b580abf579 Mon Sep 17 00:00:00 2001 From: rsb Date: Mon, 26 Mar 2007 17:41:06 -0700 Subject: PSARC/2007/124 Strong Type-Checking for VFS Operation Registration Mechanism 6505923 Need better type checking for vnodeops 6531594 lxpr_readlink() is missing the "cred_t *cr" arg 6532559 vfs_strayops does not use the vnode/vfs operation registration mechanism --- usr/src/uts/common/fs/udfs/udf_vfsops.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'usr/src/uts/common/fs/udfs/udf_vfsops.c') diff --git a/usr/src/uts/common/fs/udfs/udf_vfsops.c b/usr/src/uts/common/fs/udfs/udf_vfsops.c index 0ff009d6f3..79e76d2715 100644 --- a/usr/src/uts/common/fs/udfs/udf_vfsops.c +++ b/usr/src/uts/common/fs/udfs/udf_vfsops.c @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include @@ -1897,14 +1898,14 @@ static int udfinit(int fstype, char *name) { static const fs_operation_def_t udf_vfsops_template[] = { - VFSNAME_MOUNT, udf_mount, - VFSNAME_UNMOUNT, udf_unmount, - VFSNAME_ROOT, udf_root, - VFSNAME_STATVFS, udf_statvfs, - VFSNAME_SYNC, (fs_generic_func_p) udf_sync, - VFSNAME_VGET, udf_vget, - VFSNAME_MOUNTROOT, udf_mountroot, - NULL, NULL + VFSNAME_MOUNT, { .vfs_mount = udf_mount }, + VFSNAME_UNMOUNT, { .vfs_unmount = udf_unmount }, + VFSNAME_ROOT, { .vfs_root = udf_root }, + VFSNAME_STATVFS, { .vfs_statvfs = udf_statvfs }, + VFSNAME_SYNC, { .vfs_sync = udf_sync }, + VFSNAME_VGET, { .vfs_vget = udf_vget }, + VFSNAME_MOUNTROOT, { .vfs_mountroot = udf_mountroot }, + NULL, NULL }; extern struct vnodeops *udf_vnodeops; extern const fs_operation_def_t udf_vnodeops_template[]; -- cgit v1.2.3