[Nottingham] find and recursive home mounts

Eben Till ctrl.alt.nerd at googlemail.com
Mon Dec 5 17:46:04 UTC 2011


Also try -xdev. Thought about it just after I hit send. Derp

~Eben
On Dec 5, 2011 5:44 PM, "Eben Till" <ctrl.alt.nerd at googlemail.com> wrote:

> Have you tried the -maxdepth flag? My hopes aren't high but it's worth a
> shot
>
> ~Eben
> On Dec 5, 2011 5:35 PM, "Mike Martin" <mike at redtux.org.uk> wrote:
>
>> Hi hoping someone knows a solution this scenario
>>
>> I have two boxen which have each others home directories mounted on home
>> ie:
>>
>> box1 has home directory of box2 mounted on ~/box2
>> box2 has home directory of box1 mounted on ~/box1
>>
>> both using sshfs, though I would expect same issue with NFA/CIFS
>>
>> however when I use find eg;
>>
>> find <dir>  -iname  'VIDEO_TS' -type d
>>
>> it loops recursively forever, descending into the two links recursively
>> dir/DVD/VIDEO_TS
>> dir/box2/box1/DVD/VIDEO_TS
>> dir/box2/box1/box2/box1/DVD/VIDEO_TS
>>
>> anyone knows of any way to avoid this?
>>
>> _______________________________________________
>> Nottingham mailing list
>> Nottingham at mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/nottingham
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/nottingham/attachments/20111205/93a7772f/attachment.htm>


More information about the Nottingham mailing list