[PATCH] libmount: match host:/path and host://path

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

 



We've encoutered issues with "user" mount option (which is userspace-stored)
and NFSv4 mounts. The problem is that with NFSv4, the mount path appearing in
/proc/mounts may begin with different count of slashes than the one for which
the client asked (e.g. which is in /etc/fstab), causing not-matching records in
/run/mount/utab, and later the "user" mounts not user-unmountable.

Though I'd be happier with a clean solution within the kernel, I've been told
that this is not possible at the moment. So my workaround is to fix libmount to
treat mount paths containing ':' differently, ignore the difference amongst
slashes count directly after the ':'.

Ales Novak (1):
  libmount: after colon, ignore double slashes in path start

 include/strutils.h |  1 +
 lib/strutils.c     | 36 ++++++++++++++++++++++++++++++++++++
 libmount/src/fs.c  |  2 +-
 3 files changed, 38 insertions(+), 1 deletion(-)

-- 
2.7.0

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



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux