From owner-freebsd-fs Fri May 3 11: 9:53 2002 Delivered-To: freebsd-fs@freebsd.org Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id 2259637B41C for ; Fri, 3 May 2002 11:09:43 -0700 (PDT) Received: from pool0248.cvx40-bradley.dialup.earthlink.net ([216.244.42.248] helo=mindspring.com) by swan.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 173hUz-0006Gr-00; Fri, 03 May 2002 11:09:42 -0700 Message-ID: <3CD2D249.405D9EB4@mindspring.com> Date: Fri, 03 May 2002 11:09:13 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Scott Hess Cc: fs@freebsd.org Subject: Re: Filesystem References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Scott Hess wrote: > Hmm. And I just noticed an interesting effect from softupdates (I think). > If I follow my perl script with 'ls | xargs rmdir', and then immediately > run the perl script again, I get the 'Too many links' error with fewer > directories created. So: [ ... ] > The number of directories created by the second pass varies from run to > run. Sometimes it's even all 32765 directories... The commit of the unlink operations are pending, so the real number of links, relative to the effective number of links, is much larger. Probably you should beat up Poul and Kirk, since they are supposedly currently working on a DARPA funded "UFS2" that's supposed to overcome field size limitations; it's just possible (but unlikely) that they have missed this one. Since they aren't changing the directory structure to a btree or anything (I don't know if they are reserving space or a type field so someone else can do that later without redoing the FS), you are still doing a bad thing when you put a lot of files or directories into a single directory. PS: If you want a flat FS with a single namespace, you should use inodes and manipulate them with NFS handles, instead. Then it can be as flat as you want. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message