On Tue, Sep 7, 2010 at 4:27 AM, Tayade, Nilesh
<nilesh.tay...@netscout.com> wrote:
> Hi,
>
> I am currently working on parsing the packets for NFS protocol. I want
> to know, in case of a file operation, how can we identify the mount
> point where the file is mounted?
>
> E.g. scenario is-
> Client has mounted the node already. You apply the NFS parser and start
> reading/writing to the file. Here, parser did not know if the node is
> mounted or not (as we enabled the parser after mounting the node. And I
> want to identify that at the arrival of first packet). So is there any
> way to identify that based on the file name (or inode may be)? I am
> looking at the fstat() system call, but unable to find anything useful.

Looks like given the filename you want to find the mountpoint. May be
this will help.
http://www.mail-archive.com/bug-coreut...@gnu.org/msg20630.html


-- 
Thanks -
Manish
==================================
[$\*.^ -- I miss being one of them
==================================

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to