mountd: don't require mountpoint in crossmnt case
authorJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 22 Dec 2009 18:02:08 +0000 (13:02 -0500)
committerSteve Dickson <steved@redhat.com>
Wed, 13 Jan 2010 20:39:14 +0000 (15:39 -0500)
commit0fe42a6e2cd7252c5c12a5f4edb4c27789b0c043
tree4de0806dad523b0ced68c894da5123c416ae7cb4
parent9ec1b2c771ad0e16e0f031b017832d957c4bde56
mountd: don't require mountpoint in crossmnt case

Currently,

mount --bind /path /path

where /path is a subdirectory of a crossmnt export, can cause client
hangs, since the kernel detects that as a mountpoint, but nfs-util's
is_mountpoint() function does not.

I don't see any sure-fire way to detect such mountpoints.  But that's
OK: it's harmless to allow this upcall to succeed even when the
directory is not a mountpoint, so let's just remove this check.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
utils/mountd/cache.c