]> git.decadent.org.uk Git - nfs-utils.git/commit
umount.nfs: fix nfs4 check
authorIan Kent <ikent@redhat.com>
Mon, 29 Aug 2011 16:29:36 +0000 (12:29 -0400)
committerLuk Claes <luk@debian.org>
Sun, 2 Oct 2011 14:16:46 +0000 (16:16 +0200)
commit938636c5545c8c42add2a0cf07b7d133dff1816f
treef2c7fb4d303a979b56f73b34efa8fe1f28f4e7de
parent8c23a003185082d4a0df5a230d96940159048600
umount.nfs: fix nfs4 check

From: Ian Kent <ikent@redhat.com>

nfs_umount_is_vers4() doesn't take acount of the escaping of characters
seen in /proc/mounts and /etc/mtab as the functions in fstab.c do. This
leads to an inability to umount a mount containing any of these escaped
characters (like spaces).

This patch changes nfs_umount_is_vers4() to use functions in fstab.c and
adds a function to fstab.c to read /proc/mounts specifically, as it was
used  for the check in nfs_umount_is_vers4() previously.

Signed-off-by: Ian Kent <ikent@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/fstab.c
utils/mount/fstab.h
utils/mount/nfsumount.c