[BACK]Return to portal_vfsops.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / miscfs / portal

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/miscfs/portal/Attic/portal_vfsops.c between version 1.26.2.3 and 1.27

version 1.26.2.3, 2002/10/10 18:43:33 version 1.27, 2001/09/15 16:12:59
Line 43 
Line 43 
  * Portal Filesystem   * Portal Filesystem
  */   */
   
 #include <sys/cdefs.h>  
 __KERNEL_RCSID(0, "$NetBSD$");  
   
 #if defined(_KERNEL_OPT)  #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"  #include "opt_compat_netbsd.h"
 #endif  #endif
Line 53  __KERNEL_RCSID(0, "$NetBSD$");
Line 50  __KERNEL_RCSID(0, "$NetBSD$");
 #include <sys/param.h>  #include <sys/param.h>
 #include <sys/systm.h>  #include <sys/systm.h>
 #include <sys/time.h>  #include <sys/time.h>
   #include <sys/types.h>
 #include <sys/proc.h>  #include <sys/proc.h>
 #include <sys/filedesc.h>  #include <sys/filedesc.h>
 #include <sys/file.h>  #include <sys/file.h>
Line 116  portal_mount(mp, path, data, ndp, p)
Line 114  portal_mount(mp, path, data, ndp, p)
         size_t size;          size_t size;
         int error;          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           * Update is a no-op
          */           */
Line 159  portal_mount(mp, path, data, ndp, p)
Line 149  portal_mount(mp, path, data, ndp, p)
         fmp->pm_server = fp; fp->f_count++;          fmp->pm_server = fp; fp->f_count++;
   
         mp->mnt_flag |= MNT_LOCAL;          mp->mnt_flag |= MNT_LOCAL;
         mp->mnt_data = fmp;          mp->mnt_data = (qaddr_t)fmp;
         vfs_getnewfsid(mp);          vfs_getnewfsid(mp);
   
         (void) copyinstr(path, mp->mnt_stat.f_mntonname, MNAMELEN - 1, &size);          (void) copyinstr(path, mp->mnt_stat.f_mntonname, MNAMELEN - 1, &size);

Legend:
Removed from v.1.26.2.3  
changed lines
  Added in v.1.27

CVSweb <webmaster@jp.NetBSD.org>