public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* too many links when creating 40 000 dirs
@ 2009-04-02  9:36 Rekrutacja119
  2009-04-02 16:10 ` Chris Mason
  0 siblings, 1 reply; 2+ messages in thread
From: Rekrutacja119 @ 2009-04-02  9:36 UTC (permalink / raw)
  To: linux-btrfs

i have problems creating more than 39 999 subdirectories in the same
directory in btrfs. i'm using version from kernel 2.6.29 and
mkfs.btrfs 0.18

linux:/t # mount|grep btrfs
/dev/mapper/sys-test on /t type btrfs (rw)
linux:/t # ls|wc -l
31999
linux:/t # mkdir test123
mkdir: cannot create directory `test123': Too many links
linux:/t #

any idea why?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: too many links when creating 40 000 dirs
  2009-04-02  9:36 too many links when creating 40 000 dirs Rekrutacja119
@ 2009-04-02 16:10 ` Chris Mason
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Mason @ 2009-04-02 16:10 UTC (permalink / raw)
  To: Rekrutacja119; +Cc: linux-btrfs

On Thu, 2009-04-02 at 11:36 +0200, Rekrutacja119 wrote:
> i have problems creating more than 39 999 subdirectories in the same
> directory in btrfs. i'm using version from kernel 2.6.29 and
> mkfs.btrfs 0.18
> 
> linux:/t # mount|grep btrfs
> /dev/mapper/sys-test on /t type btrfs (rw)
> linux:/t # ls|wc -l
> 31999
> linux:/t # mkdir test123
> mkdir: cannot create directory `test123': Too many links
> linux:/t #
> 
> any idea why?

Hmmm, I'm a little surprised, btrfs doesn't actually maintain a link
count for directories.  If you use the stat program on /t it should say
the link count is one.  (please try this).

The btrfs mkdir call doesn't check the link count either.  Could you
please triple check another FS wasn't mounted on top of /t?

-chris




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-02 16:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-02  9:36 too many links when creating 40 000 dirs Rekrutacja119
2009-04-02 16:10 ` Chris Mason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox