[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disk usage question



guy keren <choo@actcom.co.il> writes:

> what what? are you joking? block size is a singular value per file system,
> not something you can modify with an environment variable, but rather with
> a re-formatting of the file system. i don't assume that UFS works
> differently, does it ?

No, it doesn't. The du command reports the number of 1024-byte blocks
on Berkeley-like systems, of 512-byte blocks on SVR4 systems. 

I think that the 30% difference is accounted for by holes on one of
the systems. Use "ls -l" to check that. For normal files "wc -c" and
"cat file > file.copy" would clarify the situation as well. For a
directory tree some tweaking, left as exercise to the inquisitive, is
needed to shed light on the mystery.

-- 
Oleg Goldshmidt | ogoldshmidt@NOSPAM.computer.org 
"I'd rather write programs to write programs than write programs."

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il