Get block size of XFS filesystem.
by ddenial from LinuxQuestions.org on (#4W6DR)
Hello
I want to know the block size of my XFS partition. Two different commands give two different values.
Code:$ sudo blockdev --getbsz /dev/vgh/root
512
$ sudo xfs_info /dev/vgh/root
meta-data=/dev/mapper/vgh-root isize=512 agcount=4, agsize=13107200 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0 spinodes=0
data = bsize=4096 blocks=52428800, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal bsize=4096 blocks=25600, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0One says its 512 bytes and another says 4096 bytes. Which one is true?
Thanks


I want to know the block size of my XFS partition. Two different commands give two different values.
Code:$ sudo blockdev --getbsz /dev/vgh/root
512
$ sudo xfs_info /dev/vgh/root
meta-data=/dev/mapper/vgh-root isize=512 agcount=4, agsize=13107200 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0 spinodes=0
data = bsize=4096 blocks=52428800, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal bsize=4096 blocks=25600, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0One says its 512 bytes and another says 4096 bytes. Which one is true?
Thanks