From: Chuck Lever Date: Fri, 19 Oct 2012 14:29:28 +0000 (-0400) Subject: mountd: Add lookup_export_parent() X-Git-Tag: debian/1%1.2.8-1~11^2^2~83 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=88f0f36abfa9abd6d4a9994fef19ee95c89c5c2f;hp=88f0f36abfa9abd6d4a9994fef19ee95c89c5c2f mountd: Add lookup_export_parent() In a moment I will be adding some logic that needs to know an junction's parent export. Here's a function that can discover an export's parent. It takes the target export's pathname, chops off the rightmost component, and tries a lookup_export(). If that succeeds, we have our answer. If not, it chops off the next rightmost component and tries again, until the root is reached. At the same time, infrastructure is added to pass the parent export down into the functions that convert locations into a new junction export entry. For now the parent export remains unused. Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson ---