Incorrect file size?
Eugene Grosbein
eugen at kuzbass.ru
Sat Jun 21 04:55:27 UTC 2008
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
More information about the freebsd-stable
mailing list