Mailinglist Archive: opensuse (3666 mails)

< Previous Next >
Re: [SLE] find (and locate)
  • From: Martin Deppe <Martin.Deppe@xxxxxx>
  • Date: Sun, 06 Mar 2005 14:34:10 +0100
  • Message-id: <422B06D2.7060900@xxxxxx>
Anders Johansson wrote:

The problem is with subfs. When you run 'find' with the -follow parameter it will follow symbolic links, and one of those symbolic links is to your CD drive, which is mounted using subfs. When find enters this directory, subfs tries to mount the CD, which changes the contents of the directory, which find doesn't like so it aborts the search.

The 'solution', short of an actual fix to the find utility, is to unmount the CD completely, or to use some flag to find such as -xdev or '! -fstype subfs'

Beside the fact (as you write) that it isn't a real solution and not
applicable in case of a search over more than one filesystem, indeed, that:

find . -xdev -follow -name TJ1961_02.pdf -ls

DOES find what it is supposed to, in this case.

Thanks a lot!! :-D

Best wishes
Martin Deppe
Bramfelder Chaussee 30 c
D-22177 Hamburg
Tel: +49-(0)40-69 21 38 99
Handy: +49-(0)171-94 778 59
Fax: +49-(0)40-2549 1651
eMail: Martin.Deppe@xxxxxxxxxx

< Previous Next >
Follow Ups