谁能告诉我如何确定 XFS 文件系统的屏障选项是否打开? XFS 文档说它从内核 2.6 开始默认处于打开状态,但我想确定它是否处于打开状态。
我正在运行 Fedora 23。
uname -a
Linux localhost.localdomain 4.4.8-300.fc23.x86_64 #1 SMP Wed Apr 20 16:59:27 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[sri@localhost ~]$ xfs_info /
meta-data=/dev/mapper/fedora-root isize=512 agcount=4, agsize=2424576 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=1 spinodes=0
data = bsize=4096 blocks=9698304, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal bsize=4096 blocks=4735, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
是不是挂载输出确认中没有barrier=0选项?
[sri@localhost ~]$ mount | grep xfs
/dev/mapper/fedora-root on / type xfs (rw,relatime,attr2,inode64,noquota)
/dev/mapper/fedora-home on /home type xfs (rw,relatime,attr2,inode64,noquota)