cutsky 发表于 2005-7-24 20:18:09

请问:1block等于多少字节?

请问在rhel3下通常1block等于多少字节?
谢谢,我是新手。

权老实 发表于 2005-7-24 20:32:46

4096字节吧??

cutsky 发表于 2005-7-25 11:24:29

那么为什么我执行了
du -sb -B K /home/abc/
结果是307M
同时执行quota abc
在blocks这一栏里显示109476?
两者之间好像并非是4倍关系啊
谢谢

cobranail 发表于 2005-7-25 13:53:37

Freebsd
http://docs.freebsd.org/44doc/smm/03.fsck/paper-2.html

the minimum size of a file system block is 4096 bytes. The size of file system blocks can be any power of two greater than or equal to 4096. The block size of the file system is maintained in the super-block, so it is possible for file systems of different block sizes to be accessible simultaneously on the same system. The block size must be decided when newfs creates the file system; the block size cannot be subsequently changed without rebuilding the file system.


ext3

http://linux.com.hk/PenguinWeb/manpage.jsp?section=8&name=mkfs.ext3
页: [1]
查看完整版本: 请问:1block等于多少字节?