From owner-freebsd-stable@FreeBSD.ORG Mon Jul 6 20:20:58 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77194106564A for ; Mon, 6 Jul 2009 20:20:58 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.freebsd.org (Postfix) with ESMTP id EAC818FC0A for ; Mon, 6 Jul 2009 20:20:53 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.3/8.14.3) with ESMTP id n66KKq2g006369; Tue, 7 Jul 2009 00:20:52 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Tue, 7 Jul 2009 00:20:52 +0400 (MSD) From: Dmitry Morozovsky To: Kostik Belousov In-Reply-To: <20090706200110.GX2884@deviant.kiev.zoral.com.ua> Message-ID: References: <4A50E947.9020608@ksu.ru> <4A523518.7050008@gmx.de> <4A523849.1070001@ksu.ru> <20090706193653.GU2884@deviant.kiev.zoral.com.ua> <20090706200110.GX2884@deviant.kiev.zoral.com.ua> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (woozle.rinet.ru [0.0.0.0]); Tue, 07 Jul 2009 00:20:53 +0400 (MSD) Cc: Ralf Folkerts , "Marat N.Afanasyev" , FreeBSD-STABLE Mailing List Subject: Re: bug in ufs? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jul 2009 20:20:58 -0000 On Mon, 6 Jul 2009, Kostik Belousov wrote: KB> > KB> My guess that it is due to fragmentation. KB> > KB> As an experiment, try to create 1-byte file. Does it work on the filesystem KB> > KB> in described state ? KB> > KB> > Doesn't UFS store one-byte (or several-bytes, like PID file) file entirely in KB> > the inode, not consuming any data blocks? KB> KB> No, 1-byte file is stored in fragment. Long write tries to allocate whole KB> block. This is why I wrote about fragmentation. KB> KB> Answering your question, it is short symlinks that are stored in inode KB> in the data block pointers. Ah yes, I somehow mixed these two cases, thank you for clarification. -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------