Re: [PATCH] Get normalized paths for comparing NFS export paths

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

 



Myklebust, Trond [Trond.Myklebust@xxxxxxxxxx] wrote:
> On Sun, 2012-03-04 at 19:03 -0500, Steve Dickson wrote:
> > 
> > On 03/04/2012 06:26 PM, Myklebust, Trond wrote:
> > > On Sun, 2012-03-04 at 17:58 -0500, Steve Dickson wrote:
> > >> So to restate... this normalizing of the path names (aka striping 
> > >> multiple slashes or added the leading slash) only need to occur on 
> > >> (successful) v4 mounts... Although the former would not be an 
> > >> problem with v2/v3 mounts but its not needed....
> > > 
> > > Normalising for v4 only is OK as far as I'm concerned, but as an
> > > alternative: is there any reason why you can't just grab the path from
> > > '/proc/mounts'?

I don't know where it grabs the path (mtab vs proc file), but it
probably doesn't matter. Either one should work for umount. AFAIR, it is
only the matching entries issue as the umount needs to delete the
correct entry from matb.  In other words, nfs umount bails out without
calling umount when there is no matching entry.

Thanks, Malahal.

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux