]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Don't return ELOOP when crossing a mountpoint boundary from a BK volume to
authorGarry Zacheiss <zacheiss@mit.edu>
Wed, 28 Aug 2002 04:37:27 +0000 (04:37 +0000)
committerGarry Zacheiss <zacheiss@mit.edu>
Wed, 28 Aug 2002 04:37:27 +0000 (04:37 +0000)
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)

src/afs/VNOPS/afs_vnop_lookup.c

index 01c0ab6aff5b79352a674e4f6fe6d8248b7327bb..98f13a6a8c23dec66f1baa602959e7d00532733e 100644 (file)
@@ -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