Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2012 08:44:55 +0000
From:      Matthew Seaman <>
Subject:   Re: "find" not traversing all directories on a single zfs file system
Message-ID:  <>
In-Reply-To: <>
References:  <> <> <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 28/02/2012 02:21, Robert Banfield wrote:
> I have some additional information that I didnt see before actually
> digging into the log file.  It is quite interesting.  There are 82,206
> subdirectories in one of the folders.  Like this:
> /zfs_mount/directoryA/token[1-82206]/various_tileset_files
> When looking at the output of find, here is what I see:
> Lines 1-9996943: The output of find, good as good can be
> Lines 9996944-10062479:  Subdirectory entries only, it traversed none o=
> them.
> Notice 10062479-9996944+1 =3D 65536 =3D 2^16
> So, of the 82206 subdirectories, the first 82206-2^16 were traversed,
> and the final 2^16 were not.  The plot thickens...

Now this is very interesting indeed.  80,000 subdirectories is quite a
lot..  As is a grand total of more than 10,000,000 files.

Hmmm... and you see the find problem just when searching within the
structure under directoryA?  I think you have found a bug, although
whether it is in find(1), the filesystem or elsewhere is not clear.
Given that 'ls -R' shows the same problem, the bug could be in fts(3).

Still, that's a testable hypothesis.  Let me see if I can reproduce the



Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP:     Ramsgate
JID:               Kent, CT11 9PW

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla -



Want to link to this message? Use this URL: <>