>> sub wanted { (($dev,$ino,$mode,$nlink,$uid,$gid) = lstat($_)) && -d _ &&
>> system( "/usr/afsws/bin/fs lsmount -dir $name" ); }
juan_leon> sub wanted { (($dev,$ino,$mode,$nlink,$uid,$gid) = lstat($_)) &&
juan_leon> $nlink >= 2 && system("/usr/afsws/bin/fs lsmount -dir $name"); }
juan_leon> With this you will avoid going through symbolic links... and avoid
juan_leon> possible endless loops.
juan_leon> "-d $_" will return '1' for a symbolic linked directory.
Then you need both; "-d $_ && $nlink >= 2".
Not everything with more than one link is a directory!
Re: Volume to mount point conversion
IBM Austin Site I/T, 512-838-8026 Mon, 23 Jan 1995 17:31:34 -0500
- Volume to mount point conversion Angela Fisher
- Re: Volume to mount point conversio... Iancu Igal
- Re: Volume to mount point conversio... Sarr Blumson
- Re: Volume to mount point conversio... Joe Ramus
- Re: Volume to mount point conve... Juan Leon
- Volume to mount point conve... IBM Austin Site I/T, 512-838-8026
- Volume to mount point conversion Angela Fisher
- Re: Volume to mount point conversio... Tom Orban
- Re: Volume to mount point conve... Dan_Bloch
