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

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

Diff for /src/sys/miscfs/kernfs/kernfs_vnops.c between version 1.106 and 1.106.6.1

version 1.106, 2004/10/27 06:55:53 version 1.106.6.1, 2005/03/19 08:36:30
Line 835  kernfs_getattr(v)
Line 835  kernfs_getattr(v)
          * Make all times be current TOD, except for the "boottime" node.           * Make all times be current TOD, except for the "boottime" node.
          * Avoid microtime(9), it's slow.           * Avoid microtime(9), it's slow.
          * We don't guard the read from time(9) with splclock(9) since we           * We don't guard the read from time(9) with splclock(9) since we
          * don't actually need to be THAT sure the access is atomic.           * don't actually need to be THAT sure the access is atomic.
          */           */
         if (kfs->kfs_kt && kfs->kfs_kt->kt_namlen == 8 &&          if (kfs->kfs_kt && kfs->kfs_kt->kt_namlen == 8 &&
             !memcmp(kfs->kfs_kt->kt_name, "boottime", 8)) {              !memcmp(kfs->kfs_kt->kt_name, "boottime", 8)) {
                 TIMEVAL_TO_TIMESPEC(&boottime, &vap->va_ctime);                  TIMEVAL_TO_TIMESPEC(&boottime, &vap->va_ctime);
         } else {          } else {
Line 1507  kernfs_print(v)
Line 1507  kernfs_print(v)
 }  }
   
 int  int
 kernfs_link(v)  kernfs_link(v)
         void *v;          void *v;
 {  {
         struct vop_link_args /* {          struct vop_link_args /* {
                 struct vnode *a_dvp;                  struct vnode *a_dvp;
                 struct vnode *a_vp;                  struct vnode *a_vp;
                 struct componentname *a_cnp;                  struct componentname *a_cnp;
         } */ *ap = v;          } */ *ap = v;
   
         VOP_ABORTOP(ap->a_dvp, ap->a_cnp);          VOP_ABORTOP(ap->a_dvp, ap->a_cnp);
         vput(ap->a_dvp);          vput(ap->a_dvp);
         return (EROFS);          return (EROFS);
Line 1532  kernfs_symlink(v)
Line 1532  kernfs_symlink(v)
                 struct vattr *a_vap;                  struct vattr *a_vap;
                 char *a_target;                  char *a_target;
         } */ *ap = v;          } */ *ap = v;
   
         VOP_ABORTOP(ap->a_dvp, ap->a_cnp);          VOP_ABORTOP(ap->a_dvp, ap->a_cnp);
         vput(ap->a_dvp);          vput(ap->a_dvp);
         return (EROFS);          return (EROFS);

Legend:
Removed from v.1.106  
changed lines
  Added in v.1.106.6.1

CVSweb <webmaster@jp.NetBSD.org>