[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Debian]: find ueber eine CD mit mehr als 8 Verzeichnisebenen



Dirk Luetjens <dirk@luedi.oche.de> writes:

> ich habe mir meinen privaten Debian-Abzug, der sich mit der Zeit 
> angesammelt hat auf eine CD gebrannt. Das Image habe ich einfach mit
> mkhybrid -r erzeugt. Wenn ich jetzt ein "find" ueber die CD laufen lasse,
> dann ist ab Verzeichnisebene 8 Schluss.

> Ich frage mich nur, warum
> ein "ls, cp, ..." die Dateien finden und "find" nicht? Ist die CD nun mal
> gemounted sollte das doch keine Unterschied mehr machen, oder?

Versuche mal die Option -noleaf.

$ man find
       -noleaf
              Do not optimize by assuming that  directories  con­
              tain  2  fewer  subdirectories than their hard link
              count.   This  option  is  needed  when   searching
              filesystems  that do not follow the Unix directory-
              link convention, such as CD-ROM or MS-DOS  filesys­
              tems or AFS volume mount points.  Each directory on
              a normal Unix filesystem has at least 2 hard links:
              its  name  and  its  `.'  entry.  Additionally, its
              subdirectories (if any) each  have  a  `..'   entry
              linked to that directory.  When find is examining a
              directory, after it has statted 2 fewer subdirecto­
              ries than the directory's link count, it knows that
              the rest of the entries in the directory  are  non-
              directories  (`leaf'  files in the directory tree).
              If only the files' names need to be examined, there
              is  no  need to stat them; this gives a significant
              increase in search speed.


	Sven
-- 
Sven Rudolph <sr1@inf.tu-dresden.de>
http://www.sax.de/~sr1/
------------------------------------------------
Um sich aus der Liste auszutragen schicken Sie
bitte eine E-Mail an majordomo@jfl.de die im Body
"unsubscribe debian-user-de <your_email_address>"
enthaelt.
Bei Problemen bitte eine Mail an: Jan.Otto@jfl.de
------------------------------------------------
Anzahl der eingetragenen Mitglieder:     379


Reply to: