John Polstra writes:
> 1. I have a pointer to a vnode and I want to get the corresponding
> dev_t and inode number. Is there a non-sleazy way to do that other
> than calling vn_stat?
I think you just want to call VOP_GETATTR(vp, vap, cred, proc) and
then look at vap->va_fsid and vap->va_fileid.
John Polstra <[EMAIL PROTECTED]> writes:
> 1. I have a pointer to a vnode and I want to get the corresponding
> dev_t and inode number. Is there a non-sleazy way to do that other
> than calling vn_stat?
I think you just want to call VOP_GETATTR(vp, vap, cred, proc) and
then look at vap->va_fsid
Alfred Perlstein wrote:
> On Sun, 15 Aug 1999, John Polstra wrote:
>>
>> 1. I have a pointer to a vnode and I want to get the corresponding
>> dev_t and inode number. Is there a non-sleazy way to do that other
>> than calling vn_stat?
>
> use vn_todev from "vfs_subr.c" ~line 2970 of 2976 if you
On Sun, 15 Aug 1999, John Polstra wrote:
> I have two VFS-related questions which are probably pretty basic.
>
> 1. I have a pointer to a vnode and I want to get the corresponding
> dev_t and inode number. Is there a non-sleazy way to do that other
> than calling vn_stat?
use vn_todev from "vfs
I have two VFS-related questions which are probably pretty basic.
1. I have a pointer to a vnode and I want to get the corresponding
dev_t and inode number. Is there a non-sleazy way to do that other
than calling vn_stat?
2. The first action of vn_stat is to call VOP_GETATTR. VOP_GETATTR(9)
say
Alfred Perlstein wrote:
> On Sun, 15 Aug 1999, John Polstra wrote:
>>
>> 1. I have a pointer to a vnode and I want to get the corresponding
>> dev_t and inode number. Is there a non-sleazy way to do that other
>> than calling vn_stat?
>
> use vn_todev from "vfs_subr.c" ~line 2970 of 2976 if you
On Sun, 15 Aug 1999, John Polstra wrote:
> I have two VFS-related questions which are probably pretty basic.
>
> 1. I have a pointer to a vnode and I want to get the corresponding
> dev_t and inode number. Is there a non-sleazy way to do that other
> than calling vn_stat?
use vn_todev from "vf
I have two VFS-related questions which are probably pretty basic.
1. I have a pointer to a vnode and I want to get the corresponding
dev_t and inode number. Is there a non-sleazy way to do that other
than calling vn_stat?
2. The first action of vn_stat is to call VOP_GETATTR. VOP_GETATTR(9)
sa
8 matches
Mail list logo