From: Garry Zacheiss Date: Mon, 19 Aug 2002 19:53:34 +0000 (+0000) Subject: Don't return ELOOP when crossing a mountpoint boundary from a BK volume to X-Git-Tag: openafs-devel_1_3_3~5 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=f6462eac361ba2bddf5b84cdb7861f7ca482caba 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. --- diff --git a/src/afs/VNOPS/afs_vnop_lookup.c b/src/afs/VNOPS/afs_vnop_lookup.c index 91184d0..c13e4aa 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