Re: Query related to mount point identification.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 7, 2010 at 4:27 AM, Tayade, Nilesh
<Nilesh.Tayade@xxxxxxxxxxxx> 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-coreutils@xxxxxxx/msg20630.html


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

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



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux