Date: Thu, 30 Oct 2008 16:39:37 GMT From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 152220 for review Message-ID: <200810301639.m9UGdbqV059427@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=152220 Change 152220 by peter@peter_overcee on 2008/10/30 16:39:00 So, it turns out the va_rdev wasn't what I wanted at all. use va_fsid. Affected files ... .. //depot/projects/hammer/sys/kern/kern_proc.c#75 edit .. //depot/projects/hammer/sys/sys/user.h#32 edit Differences ... ==== //depot/projects/hammer/sys/kern/kern_proc.c#75 (text+ko) ==== @@ -1403,7 +1403,7 @@ } kve->kve_fileid = 0; - kve->kve_rdev = 0; + kve->kve_fsid = 0; freepath = NULL; fullpath = ""; if (lobj) { @@ -1447,7 +1447,7 @@ cred = curthread->td_ucred; if (VOP_GETATTR(vp, &va, cred) == 0) { kve->kve_fileid = va.va_fileid; - kve->kve_rdev = va.va_rdev; + kve->kve_fsid = va.va_fsid; } vput(vp); VFS_UNLOCK_GIANT(vfslocked); ==== //depot/projects/hammer/sys/sys/user.h#32 (text+ko) ==== @@ -328,7 +328,7 @@ void *_kve_pspare[8]; /* Space for more stuff. */ off_t kve_offset; /* Mapping offset in object */ uint64_t kve_fileid; /* inode number of vnode */ - dev_t kve_rdev; /* dev_t of vnode location */ + dev_t kve_fsid; /* dev_t of vnode location */ int _kve_ispare[3]; /* Space for more stuff. */ };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810301639.m9UGdbqV059427>