- 论坛徽章:
- 0
|
本帖最后由 513964839 于 2014-08-22 19:17 编辑
# mkfs.xfs -f -b size=16384 -L /data /dev/sda8
meta-data=/dev/sda8 isize=256 agcount=4, agsize=13180848 blks
= sectsz=512 attr=2, projid32bit=0
data = bsize=16384 blocks=52723392, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=16384 ascii-ci=0
log =internal log bsize=16384 blocks=25743, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=16384 blocks=0, rtextents=0
# mount /dev/sda8 /data
mount: Function not implemented
# man mkfs.xfs
OPTIONS
-b block_size_options
This option specifies the fundamental block size of the filesystem. The valid block_size_options are: log=value or size=value
and only one can be supplied. The block size is specified either as a base two logarithm value with log=, or in bytes with
size=. The default value is 4096 bytes (4 KiB), the minimum is 512, and the maximum is 65536 (64 KiB). XFS on Linux currently
only supports pagesize or smaller blocks.
xfs文件系统默认块大小是4096bytes,现在想测试一下block size 16KB的情况,但是在挂载的时候挂载不上
补充:
又试了下ext4文件系统,提示:
# mkfs.ext4 -b 16384 -L /data /dev/sda8
Warning: blocksize 16384 not usable on most systems.
mke2fs 1.41.12 (17-May-2010)
mkfs.ext4: 16384-byte blocks too big for system (max 4096)
Proceed anyway? (y,n) y
Warning: 16384-byte blocks too big for system (max 4096), forced to continue
。。。。
虽然提示 允许的最大是4096,但是 16K还是可以的呢
情况如上,问题如下:
1) mkfs.xfs的时候是可以指定 block size的,但是却挂载不上,是为什么
2) block size对 xfs和ext4文件系统有什么影响
Ps: 第二个问题有些基础哈,我先去 查查
谢谢 |
|