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/devfs/devfs_vfsops.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'usr/src/uts/common/fs/devfs/devfs_vfsops.c') diff --git a/usr/src/uts/common/fs/devfs/devfs_vfsops.c b/usr/src/uts/common/fs/devfs/devfs_vfsops.c index a0a69bb77d..2e83ba30cd 100644 --- a/usr/src/uts/common/fs/devfs/devfs_vfsops.c +++ b/usr/src/uts/common/fs/devfs/devfs_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. */ @@ -42,6 +42,7 @@ #include #include #include +#include #include #include #include @@ -129,13 +130,13 @@ static int devfsinit(int fstype, char *name) { static const fs_operation_def_t devfs_vfsops_template[] = { - VFSNAME_MOUNT, devfs_mount, - VFSNAME_UNMOUNT, devfs_unmount, - VFSNAME_ROOT, devfs_root, - VFSNAME_STATVFS, devfs_statvfs, - VFSNAME_SYNC, (fs_generic_func_p) fs_sync, - VFSNAME_MOUNTROOT, devfs_mountroot, - NULL, NULL + VFSNAME_MOUNT, { .vfs_mount = devfs_mount }, + VFSNAME_UNMOUNT, { .vfs_unmount = devfs_unmount }, + VFSNAME_ROOT, { .vfs_root = devfs_root }, + VFSNAME_STATVFS, { .vfs_statvfs = devfs_statvfs }, + VFSNAME_SYNC, { .vfs_sync = fs_sync }, + VFSNAME_MOUNTROOT, { .vfs_mountroot = devfs_mountroot }, + NULL, NULL }; int error; int dev; -- cgit v1.2.3