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/autofs/auto_vfsops.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'usr/src/uts/common/fs/autofs/auto_vfsops.c') diff --git a/usr/src/uts/common/fs/autofs/auto_vfsops.c b/usr/src/uts/common/fs/autofs/auto_vfsops.c index 10b40850d8..4b5040bfc4 100644 --- a/usr/src/uts/common/fs/autofs/auto_vfsops.c +++ b/usr/src/uts/common/fs/autofs/auto_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. */ @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -250,11 +251,11 @@ int autofs_init(int fstype, char *name) { static const fs_operation_def_t auto_vfsops_template[] = { - VFSNAME_MOUNT, auto_mount, - VFSNAME_UNMOUNT, auto_unmount, - VFSNAME_ROOT, auto_root, - VFSNAME_STATVFS, auto_statvfs, - NULL, NULL + VFSNAME_MOUNT, { .vfs_mount = auto_mount }, + VFSNAME_UNMOUNT, { .vfs_unmount = auto_unmount }, + VFSNAME_ROOT, { .vfs_root = auto_root }, + VFSNAME_STATVFS, { .vfs_statvfs = auto_statvfs }, + NULL, NULL }; int error; -- cgit v1.2.3