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

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

 



Steve Dickson [SteveD@xxxxxxxxxx] wrote:
> So what my patch does is "normalizes" the device name early
> on in main, so the correct name used used through the mount
> and when its written the mtab. Plus, for better or worses, 
> since the new device name will always be shorter, I just 
> reuse/rewrite the memory allocated for the argv vector.. 
> Meaning there is no allocation... 

My problem is a bit different.

"mount -t nfs4 server:export /mnt" works but umount fails.

Notice that there is no '/' in the path!

Normalizing or just stripping leading '/'s early won't help with the
above problem and since there is already a hack to strip the
__trailing__ '/' that kernel adds to /proc/mounts file, I just made the
existing hack it a bit better by normalizing.

Regards, 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