Date: Sat, 21 Jun 2008 12:55:23 +0800 From: Eugene Grosbein <eugen@kuzbass.ru> To: Ivan Voras <ivoras@freebsd.org> Cc: freebsd-stable@freebsd.org Subject: Re: Incorrect file size? Message-ID: <20080621045523.GA71068@svzserv.kemerovo.su> In-Reply-To: <g3gek1$22j$1@ger.gmane.org> References: <485BA3D2.3090108@bulinfo.net> <20080620132833.GB83165@rink.nu> <g3gcqe$qfv$1@ger.gmane.org> <20080620140623.GC83165@rink.nu> <g3gek1$22j$1@ger.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 20, 2008 at 04:25:05PM +0200, Ivan Voras wrote: > > When I was investigating why the file could be so large it, it turned > > out the file was only a few hunderd 'real' MB's, so that is why I assume > > this person is having the same issue as we do. The file is a Berkeley DB > > file, by the way, so there's nothing textfile about it ;-) > I learn something every day :) > Didn't know BDB was smart enough to create sparse files. Even base system uses such files :-) $ ls -lsk /etc/pwd.db 140 -rw-r--r-- 1 root wheel 159744 21 ÉÀÎ 12:26 /etc/pwd.db $ file /etc/pwd.db /etc/pwd.db: Berkeley DB 1.85 (Hash, version 2, native byte-order) File occupies 140K = 143360 bytes and its length is 159744 bytes, so it has to be sparse. FreeBSD 4.11-STABLE. Eugene
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080621045523.GA71068>