Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Nov 2018 13:41:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 233161] bsd find finds only 32756 directories with '-type d' switch
Message-ID:  <bug-233161-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233161

            Bug ID: 233161
           Summary: bsd find finds only 32756 directories with '-type d'
                    switch
           Product: Base System
           Version: 11.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: emz@norma.perm.ru

I have a file storage with up to 5 milions objects on 1st level (this is
running on zfs):

# ls -ld /usr/local/public/profiles
drwxr-xr-x+ 32767 root  wheel  5097384 Nov 12 16:24 /usr/local/public/profi=
les

'find /usr/local/public/profiles -depth 1' is able to find these objects, a=
nd
they seem all to be directories (I've checked randomly, plus my colleagues =
that
wrote a software that works with this storage told me there should be no fi=
les
there).

but find /usr/local/public/profiles -type d -depth 1 is able to find only 3=
2765
directories. I suspect this could be the MAXDIRS constant from ufs.h.

So I made two output files, one produced with 'find /usr/local/public/profi=
les
-depth 1' and one produced with 'find /usr/local/public/profiles -depth 1 -=
type
d', first file contains 5 millions of objects and second contains only 32756
objects, and pretty much all of the missing objects from the bigger file are
directories (though I didn't check all the 5 millions for obvious reasons).

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-233161-227>