From owner-freebsd-questions@FreeBSD.ORG Sat Jan 14 09:13:03 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B5D6106566C for ; Sat, 14 Jan 2012 09:13:03 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) by mx1.freebsd.org (Postfix) with ESMTP id BF1EE8FC18 for ; Sat, 14 Jan 2012 09:13:02 +0000 (UTC) Received: from kw.news4all.se (c80-217-64-49.bredband.comhem.se [80.217.64.49]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id q0E9Cwm1061029; Sat, 14 Jan 2012 10:12:59 +0100 (CET) (envelope-from bah@bananmonarki.se) Message-ID: <4F114710.8030509@bananmonarki.se> Date: Sat, 14 Jan 2012 10:12:48 +0100 From: Bernt Hansson User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:9.0) Gecko/20111229 Thunderbird/9.0 MIME-Version: 1.0 To: Polytropon References: <4F113290.1060706@bananmonarki.se> <20120114092236.0c139ccd.freebsd@edvax.de> In-Reply-To: <20120114092236.0c139ccd.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List Subject: Re: disk problem(s) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jan 2012 09:13:03 -0000 2012-01-14 09:22, Polytropon skrev: > How many subdirectories are there? ls | wc -l 32765 > > Could you, for example, try removing one and then > creating a new one (assumption: success), followed > by another try to create one (assumption: fail)? That is a nono I'll have to pop in another disk. > > > Detail: > > The mkdir() function can be found (for UFS2) in the > file /usr/src/sys/gnu/fs/ext2fs/ext2_vnops.c at > line 1111 (sources of 8.2-STABLE i386 here). If > you examine what mkdir() does, you'll see that > the "too many links" is true when LINK_MAX is > exceeded. Per /usr/src/sys/gnu/fs/ext2fs/ext2_fs.h > we can determine that > > #define EXT2_LINK_MAX 32000 > > is defined. Can you check if 32000 is the amount > of directories created?