- 論壇徽章:
- 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文件系統(tǒng)默認(rèn)塊大小是4096bytes,現(xiàn)在想測試一下block size 16KB的情況,但是在掛載的時(shí)候掛載不上
補(bǔ)充:
又試了下ext4文件系統(tǒng),提示:
# 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的時(shí)候是可以指定 block size的,但是卻掛載不上,是為什么
2) block size對 xfs和ext4文件系統(tǒng)有什么影響
Ps: 第二個(gè)問題有些基礎(chǔ)哈,我先去 查查
謝謝 |
|