[cs631apue] why used blocks are always even in ls?

hao wu hwu9 at stevens.edu
Mon Oct 7 15:21:32 EDT 2013


I found out the reason, it because that my system physical block size
actually  is 4096.

12987/4096 = 3.17  ==> 4

and BLOCKSIZE not have to set as the same value as the physical block size





On Mon, Oct 7, 2013 at 3:09 PM, hao wu <hwu9 at stevens.edu> wrote:

> suppose I have a file abc, its  size is 12987,
>
> the environment BLOCKSIZE now is 2048.
>
> 12987/2048  = 6.34
>
> I think the blocks used should be 7.
>
> but in ls ,it shows 8
>
> I found that the blocks used are always even in ls, any ideas?
>
> Thanks,
> Hao
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20131007/19e3282b/attachment.html>


More information about the cs631apue mailing list