[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.21 and 1.22

version 1.21, 1994/05/17 04:10:29 version 1.22, 1994/05/17 06:59:17
Line 385  kernfs_getattr(vp, vap, cred, p)
Line 385  kernfs_getattr(vp, vap, cred, p)
         vap->va_uid = 0;          vap->va_uid = 0;
         vap->va_gid = 0;          vap->va_gid = 0;
         vap->va_fsid = vp->v_mount->mnt_stat.f_fsid.val[0];          vap->va_fsid = vp->v_mount->mnt_stat.f_fsid.val[0];
         vap->va_size = 0;  
         vap->va_blocksize = DEV_BSIZE;          vap->va_blocksize = DEV_BSIZE;
         microtime(&vap->va_atime);          microtime(&vap->va_atime);
         vap->va_mtime = vap->va_atime;          vap->va_mtime = vap->va_atime;
Line 405  kernfs_getattr(vp, vap, cred, p)
Line 404  kernfs_getattr(vp, vap, cred, p)
                 vap->va_fileid = 2;                  vap->va_fileid = 2;
                 vap->va_size = DEV_BSIZE;                  vap->va_size = DEV_BSIZE;
         } else {          } else {
                   int nbytes;
 #ifdef KERNFS_DIAGNOSTIC  #ifdef KERNFS_DIAGNOSTIC
                 printf("kernfs_getattr: stat target %s\n", kt->kt_name);                  printf("kernfs_getattr: stat target %s\n", kt->kt_name);
 #endif  #endif
Line 412  kernfs_getattr(vp, vap, cred, p)
Line 412  kernfs_getattr(vp, vap, cred, p)
                 vap->va_mode = (kt->kt_rw ? KTM_RW_MODE : KTM_RO_MODE);                  vap->va_mode = (kt->kt_rw ? KTM_RW_MODE : KTM_RO_MODE);
                 vap->va_nlink = 1;                  vap->va_nlink = 1;
                 vap->va_fileid = 3 + (kt - kern_targets) / sizeof(*kt);                  vap->va_fileid = 3 + (kt - kern_targets) / sizeof(*kt);
                 error = kernfs_xread(kt, strbuf, sizeof(strbuf), &vap->va_size);                  error = kernfs_xread(kt, strbuf, sizeof(strbuf), &nbytes);
                   vap->va_size = nbytes;
         }          }
   
         vp->v_type = vap->va_type;          vp->v_type = vap->va_type;

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

CVSweb <webmaster@jp.NetBSD.org>