les@chinet.UUCP (Leslie Mikesell) (06/10/88)
In article <482@uniq.UUCP> rjnoe@uniq.UUCP (Roger J. Noe) writes: >> Doesn't release 3.1's "find" have a -local parameter to keep it from >> walking into remote filesystems (useful when the other machine is > >It is there in the code for find(1) but not on the manual page. It's entirely Both -find and -mount are documented in the current 3B2 manual and in the 386 SVr3.1 manual. I've generally avoided them after being surprised with the results of some early attempts (not unusual for my attempts to use find, and I've forgotten the circumstances). Perhaps I was trying to avoid crossing a mount point on a remote filesystem.. Les Mikesell
scott@grlab.UUCP (Scott Blachowicz) (05/11/89)
I'm working with the rh program posted to the net recently (it is a find(1) "replacement" that deals with C-style expressions). It doesn't handle some of the stuff that find(1) does on our HP9000/300 Series system, so I'm wondering how find does it or how I could do it... 1) find has a -mountstop(or something like that)==>it recognizes mount points. It would be nice to able to tell my program to not cross mount points without having to tell it to explicitly "prune" all of the mount point directories. 2) find recognizes file system types. 3) HP-UX has "Context Dependent Files"(CDFs) that are really hidden directories containing the file that is really referred to. The file system decides which file to get based on the "context" of the requesting CPU. This allows the discless workstations to share the same file system without duplicating lots of stuff. Physically it looks like this: /etc: Hrwsr-xr-x 2 root other 1024 May 2 14:27 inittab+ /etc/inittab+: -r--r--r-- 1 root other 1163 May 2 14:26 server_node -r--r--r-- 1 root other 735 May 4 12:07 discless_node1 -r--r--r-- 1 root other 735 May 4 12:07 discless_node2 At any rate, the readdir routines read the contents of /etc as including the regular file "inittab" instead of the hidden directory "inittab+", but find(1) is able to display the hidden directories with a "-hidden" switch or "-type H". I want to do this, too. Thanx for your help, Scott Blachowicz USPS: Graphicus UUCP: ...!hpubvwa!grlab!scott 150 Lake Str S, #206 VoicePh: 206/828-4691 Kirkland, WA 98033 FAX: 206/828-4236