Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/miscfs/portal/Attic/portal_vfsops.c,v retrieving revision 1.26.2.1 retrieving revision 1.26.2.3 diff -u -p -r1.26.2.1 -r1.26.2.3 --- src/sys/miscfs/portal/Attic/portal_vfsops.c 2002/01/10 20:01:40 1.26.2.1 +++ src/sys/miscfs/portal/Attic/portal_vfsops.c 2002/10/10 18:43:33 1.26.2.3 @@ -1,4 +1,4 @@ -/* $NetBSD: portal_vfsops.c,v 1.26.2.1 2002/01/10 20:01:40 thorpej Exp $ */ +/* $NetBSD: portal_vfsops.c,v 1.26.2.3 2002/10/10 18:43:33 jdolecek Exp $ */ /* * Copyright (c) 1992, 1993, 1995 @@ -44,7 +44,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: portal_vfsops.c,v 1.26.2.1 2002/01/10 20:01:40 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: portal_vfsops.c,v 1.26.2.3 2002/10/10 18:43:33 jdolecek Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_netbsd.h" @@ -116,6 +116,14 @@ portal_mount(mp, path, data, ndp, p) size_t size; int error; + if (mp->mnt_flag & MNT_GETARGS) { + fmp = VFSTOPORTAL(mp); + if (fmp == NULL) + return EIO; + args.pa_config = NULL; + args.pa_socket = 0; /* XXX */ + return copyout(&args, data, sizeof(args)); + } /* * Update is a no-op */ @@ -151,7 +159,7 @@ portal_mount(mp, path, data, ndp, p) fmp->pm_server = fp; fp->f_count++; mp->mnt_flag |= MNT_LOCAL; - mp->mnt_data = (qaddr_t)fmp; + mp->mnt_data = fmp; vfs_getnewfsid(mp); (void) copyinstr(path, mp->mnt_stat.f_mntonname, MNAMELEN - 1, &size);