Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/miscfs/procfs Pull up revision 1.36 (requested by f...



details:   https://anonhg.NetBSD.org/src/rev/67eec3439ea8
branches:  netbsd-1-5
changeset: 491012:67eec3439ea8
user:      he <he%NetBSD.org@localhost>
date:      Fri Mar 30 21:49:49 2001 +0000

description:
Pull up revision 1.36 (requested by fvdl):
  Add some required Linux emulation bits to support the Linux
  version of VMware.

diffstat:

 sys/miscfs/procfs/procfs_vfsops.c |  15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diffs (43 lines):

diff -r fd51219954dd -r 67eec3439ea8 sys/miscfs/procfs/procfs_vfsops.c
--- a/sys/miscfs/procfs/procfs_vfsops.c Fri Mar 30 21:49:23 2001 +0000
+++ b/sys/miscfs/procfs/procfs_vfsops.c Fri Mar 30 21:49:49 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: procfs_vfsops.c,v 1.34 2000/06/10 18:27:03 assar Exp $ */
+/*     $NetBSD: procfs_vfsops.c,v 1.34.2.1 2001/03/30 21:49:49 he Exp $        */
 
 /*
  * Copyright (c) 1993 Jan-Simon Pendry
@@ -94,6 +94,8 @@
 {
        size_t size;
        struct procfsmount *pmnt;
+       struct procfs_args args;
+       int error;
 
        if (UIO_MX & (UIO_MX-1)) {
                log(LOG_ERR, "procfs: invalid directory entry size");
@@ -103,6 +105,16 @@
        if (mp->mnt_flag & MNT_UPDATE)
                return (EOPNOTSUPP);
 
+       if (data != NULL) {
+               error = copyin(data, &args, sizeof args);
+               if (error != 0)
+                       return error;
+
+               if (args.version != PROCFS_ARGSVERSION)
+                       return EINVAL;
+       } else
+               args.flags = 0;
+
        mp->mnt_flag |= MNT_LOCAL;
        pmnt = (struct procfsmount *) malloc(sizeof(struct procfsmount),
            M_UFSMNT, M_WAITOK);   /* XXX need new malloc type */
@@ -117,6 +129,7 @@
 
        pmnt->pmnt_exechook = exechook_establish(procfs_revoke_vnodes, mp);
        pmnt->pmnt_mp = mp;
+       pmnt->pmnt_flags = args.flags;
 
        return (0);
 }



Home | Main Index | Thread Index | Old Index