From owner-freebsd-questions@FreeBSD.ORG Sun Nov 9 11:15:02 2008 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 479941065680 for ; Sun, 9 Nov 2008 11:15:02 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id F420F8FC16 for ; Sun, 9 Nov 2008 11:15:01 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-255-48-78.bredband.comhem.se ([83.255.48.78]:52068 helo=falcon.midgard.homeip.net) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1Kz8Fw-0001D6-64 for freebsd-questions@freebsd.org; Sun, 09 Nov 2008 12:15:01 +0100 Received: (qmail 42809 invoked from network); 9 Nov 2008 12:14:58 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 9 Nov 2008 12:14:58 +0100 Received: (qmail 73856 invoked by uid 1001); 9 Nov 2008 12:14:58 +0100 Date: Sun, 9 Nov 2008 12:14:58 +0100 From: Erik Trulsson To: Polytropon Message-ID: <20081109111458.GA73755@owl.midgard.homeip.net> References: <50261.1226194851@people.net.au> <20081109024046.GB27423@icarus.home.lan> <20081109093521.GA73108@owl.midgard.homeip.net> <20081109104711.e03722c4.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081109104711.e03722c4.freebsd@edvax.de> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-IP: 83.255.48.78 X-Scan-Result: No virus found in message 1Kz8Fw-0001D6-64. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1Kz8Fw-0001D6-64 0f43f4cbd0d2abca46fd8c060c54510f Cc: Jeremy Chadwick , freebsd-questions@freebsd.org, no-spam@people.net.au Subject: Re: UFS2 limits 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: Sun, 09 Nov 2008 11:15:02 -0000 On Sun, Nov 09, 2008 at 10:47:11AM +0100, Polytropon wrote: > On Sun, 9 Nov 2008 10:35:21 +0100, Erik Trulsson wrote: > > Note that this does not limit the number of files you can have in a single > > directory, since normal files do not contain hardlinks to the parent > > directory, but there are of course limits to the total number of files and > > directories you can have on a single filesystem based on how many inodes > > were created when the filesystem was first created. > > Maybe this sounds stupid, but... given that a file system > can hold n entries. What happens when a program tries to > create file number n + 1? > > I do ask this in order to explore if this could have been > the reason for my massive data loss and UFS file system > corruption. I haven't tested what actually happens, but what should happen is that the attempt to create file n+1 will simply fail with some appropriate error code (see open(2) or mkdir(2) for details.) It is certainly not supposed to cause any kind of files system corruption. -- Erik Trulsson ertr1013@student.uu.se