QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2088|回复: 3

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

[复制链接]
发表于 2005-7-24 20:18:09 | 显示全部楼层 |阅读模式
请问在rhel3下通常1block等于多少字节?
谢谢,我是新手。
发表于 2005-7-24 20:32:46 | 显示全部楼层
4096字节吧??
回复

使用道具 举报

 楼主| 发表于 2005-7-25 11:24:29 | 显示全部楼层
那么为什么我执行了
[code:1]du -sb -B K /home/abc/[/code:1]
结果是307M
同时执行[code:1]quota abc[/code:1]
在blocks这一栏里显示109476?
两者之间好像并非是4倍关系啊
谢谢
回复

使用道具 举报

发表于 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
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-12-5 04:28 , Processed in 0.034582 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表