Excerpts from dl.info-afs: 2-Nov-94 Preventing find's across /a..
Stephen Heilbronner@info (700*)
> Is there a possibility of configuring AFS (on SunOS 4.1.2) in order to
> have it pretend to be NFS file systems? This would prevent crontab
> commands like
> find / -name core -atime +7 -exec rm -f {} \; -o -fstype nfs -prune
> from running all across the /afs tree.
I think you have the tail wagging the dog. The find command is what
needs to be modified to keep it from descending into AFS space; not AFS.
Anyway, the best solution (IMHO) is something very close to what Joseph
and others offered:
find / \! -fstype 4.2 -prune -o -name core -atime +7 -exec rm -f {} \;
This has the advantage that its behavior on non-AFS systems should be
identical to the behavior of the crontab entry shipped with SunOS.
James