From: Garry Zacheiss Date: Wed, 28 Aug 2002 04:37:27 +0000 (+0000) Subject: Don't return ELOOP when crossing a mountpoint boundary from a BK volume to X-Git-Tag: openafs-stable-1_2_7~28 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=0959dce0d3e07cc0f3c9e0ab4644427e98a7766c;p=packages%2Fo%2Fopenafs.git Don't return ELOOP when crossing a mountpoint boundary from a BK volume to a BK volume. find treats it as a fatal error, and it's annoying not to be able to naively use find to recurse through a volume with its backup volume mounted. Never noticed this before because we used to ignore this return value. Return ENODEV instead. (cherry picked from commit f6462eac361ba2bddf5b84cdb7861f7ca482caba) --- diff --git a/src/afs/VNOPS/afs_vnop_lookup.c b/src/afs/VNOPS/afs_vnop_lookup.c index 01c0ab6af..98f13a6a8 100644 --- a/src/afs/VNOPS/afs_vnop_lookup.c +++ b/src/afs/VNOPS/afs_vnop_lookup.c @@ -195,7 +195,7 @@ EvalMountPoint(avc, advc, avolpp, areq) /* Don't cross mountpoint from a BK to a BK volume */ if ((avc->states & CBackup) && (tvp->states & VBackup)) { afs_PutVolume(tvp, WRITE_LOCK); - return ELOOP; + return ENODEV; } /* If we want (prefetched) the RO and it exists, then drop the