use of automount breaks -fstype option on find
Mario Wolczko
mario at ux.cs.man.ac.uk
Tue Aug 15 07:35:44 AEST 1989
Summary
If you use automount to access remote file systems, then using
the -fstype option on find causes find to abort prematurely
with the error message
Couldn't find mount point for xxx
where xxx is the name of the directory used by automount.
Repeat-by
Use automount to mount a file system.
Then use find to scan all your local file systems:
find / -fstype nfs -prune
This will abort with the abovementioned error.
Work-around:
If you need to scan all local filesystems, this loop will do
the jobs nearly as well as the ( -fstype nfs -prune )
combination:
for fs in / /usr /home ...all other local filesystems
do
find $fs -xdev ...other options
done
Possible problems:
The default crontab includes a find command with the -fstype
option to remove .nfs files:
find / -name .nfs\* -mtime +7 -exec rm -f {} \; -o -fstype nfs -prune
This will stop working as soon as you start using automount.
Replace it with a shell script containing a loop as above.
Mario Wolczko
Dept. of Computer Science Internet: mario at ux.cs.man.ac.uk
The University USENET: mcvax!ukc!man.cs.ux!mario
Manchester M13 9PL JANET: mario at uk.ac.man.cs.ux
U.K. Tel: +44-61-275 6146 (FAX: 6280)
More information about the Comp.sys.sun
mailing list