Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Apr 2011 13:47:53 -0700
From:      Matthew Fleming <mdf356@gmail.com>
To:        Jonathan Stuart <jstuart@adaranet.com>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: Getting vnode + credentials of a file from a struct mount and UFS inode #
Message-ID:  <BANLkTi=hDuVxLSaC5Y4LTwV_Hqv8nT9JDw@mail.gmail.com>
In-Reply-To: <32AB5C9615CC494997D9ABB1DB12783C024E929F93@SJ-EXCH-1.adaranet.com>
References:  <32AB5C9615CC494997D9ABB1DB12783C024E929F93@SJ-EXCH-1.adaranet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 13, 2011 at 12:31 PM, Jonathan Stuart <jstuart@adaranet.com> wr=
ote:
> Hi,
>
> I'd like to pull the owner/group ownership from a file (the information I=
 have about the file is it's UFS inode # and it's struct mount *). =A0I'm s=
ure there's got to be a function that would return a vnode and I could VTOI=
() to get this information from the inode.. but I'm having a brainfreeze.
>

VFS_VGET(mp, ino, flags, &vp) is probably what you want.

Cheers,
matthew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTi=hDuVxLSaC5Y4LTwV_Hqv8nT9JDw>