RE: Query related to mount point identification.
> -Original Message- > From: Manish Katiyar [mailto:mkati...@gmail.com] > Sent: Tuesday, September 07, 2010 10:51 PM > To: Tayade, Nilesh > Cc: kernelnewbies@nl.linux.org > Subject: Re: Query related to mount point identification. > > On Tue, Sep 7, 2010 at 4:27 AM, Tayade, Nilesh > 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, it looks useful. The changes are recent, though. > > > -- > Thanks - > Manish > == > [$\*.^ -- I miss being one of them > == -- Thanks, Nilesh -- 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
Re: Query related to mount point identification.
On Tue, Sep 7, 2010 at 4:27 AM, Tayade, Nilesh 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
Query related to mount point identification.
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. Any pointers will be highly appreciated. -- Thanks, Nilesh -- 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