From f6462eac361ba2bddf5b84cdb7861f7ca482caba Mon Sep 17 00:00:00 2001 From: Garry Zacheiss Date: Mon, 19 Aug 2002 19:53:34 +0000 Subject: [PATCH] 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. --- src/afs/VNOPS/afs_vnop_lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/VNOPS/afs_vnop_lookup.c b/src/afs/VNOPS/afs_vnop_lookup.c index 91184d05b..c13e4aafd 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 -- 2.39.5