From owner-freebsd-hackers Sat Sep 16 12: 6:14 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from merc95.us.sas.com (merc95.us.sas.com [149.173.6.5]) by hub.freebsd.org (Postfix) with ESMTP id A133F37B43C for ; Sat, 16 Sep 2000 12:06:09 -0700 (PDT) Received: from merc95.us.sas.com ([127.0.0.1]) by merc95.us.sas.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2651.58) id TA8FL3AW; Sat, 16 Sep 2000 15:06:08 -0400 Received: from 10.28.149.26 by merc95.us.sas.com (InterScan E-Mail VirusWall NT); Sat, 16 Sep 2000 15:06:08 -0400 (Eastern Daylight Time) Received: from bb01f39.unx.sas.com (bb01f39.unx.sas.com [10.16.2.246]) by mozart.unx.sas.com (8.9.3 (PHNE_18979)/8.9.3) with ESMTP id PAA02810 for ; Sat, 16 Sep 2000 15:06:06 -0400 (EDT) Received: (from jwd@localhost) by bb01f39.unx.sas.com (8.9.3/8.9.1) id PAA77922 for freebsd-hackers@FreeBSD.org; Sat, 16 Sep 2000 15:06:06 -0400 (EDT) (envelope-from jwd) Date: Sat, 16 Sep 2000 15:06:06 -0400 From: John DeBoskey To: freebsd-hackers@FreeBSD.org Subject: > 32k directories in a directory Message-ID: <20000916150606.A77687@unx.sas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Ok, no laughing folks. I've run up against an application (which I do not have control over) that wants to create more than 32k directories in a directory. in syslimits.h I find: #define LINK_MAX 32767 /* max file link count */ which I think is what I'm running up against. This is referenced in sys/ufs/ufs/ufs_vnops.c at which point EMLINK is returned. Yes, this is being done against a ufs filesystem. I also note some int32_t variables in the dir structures which worries me. Has anyone built a system which can support > 32k dirs in a dir, or have any ideas what is involved? The FAQ and handbook don't appear to address this anywhere. Thanks! John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message