[1350] in NetBSD-Development

home help back first fref pref prev next nref lref last post

block count seems to be off

daemon@ATHENA.MIT.EDU (Yonah Schmeidler)
Fri Jul 26 17:31:02 1996

To: netbsd-afs@MIT.EDU
Cc: yonah@MIT.EDU
Date: Fri, 26 Jul 1996 17:30:20 EDT
From: Yonah Schmeidler <yonah@MIT.EDU>

I ran into a discrepancy in the output of "du -sk ~" and "fs lq ~", and
while trying to figure it out, found this:

lola-granola:~ [140] ls -ls test/foo
0 -rw-r--r--  1 yonah  mit  4 Jul 26 17:12 test/foo

Note the number of blocks (first column) and the size of the file (6th
column).  Under Solaris, this gives more reasonable results:

portnoy:~ [91] ls -ls test/foo
   2 -rw-r--r--   1 yonah    101            4 Jul 26 17:12 test/foo

I would guess that this is why du was reporting considerably less space
used when run under NetBSD as opposed to under Solaris (where it agrees
with fs lq).

-yonah

home help back first fref pref prev next nref lref last post