![HDD、外轨与内轨性能基准?](https://linux22.com/image/89687/HDD%E3%80%81%E5%A4%96%E8%BD%A8%E4%B8%8E%E5%86%85%E8%BD%A8%E6%80%A7%E8%83%BD%E5%9F%BA%E5%87%86%EF%BC%9F.png)
答案1
要查找文件的块地址,使用命令要方便得多filefrag -v
,该命令适用于当今常用的 Linux 文件系统(ext4、XFS、Btrfs、f2fs 等)
$ filefrag -v /boot/initramfs-3.10.0-327.13.1.el7_lustre.x86_64
Filesystem type is: ef53
File size of /boot/initramfs-3.10.0-327.13.1.el7_lustre.x86_64 is 21375560 (20875 blocks of 1024 bytes)
ext: logical_offset: physical_offset: length: expected: flags:
0: 0.. 10239: 30721.. 40960: 10240:
1: 10240.. 16383: 43009.. 49152: 6144: 40961:
2: 16384.. 20479: 198657.. 202752: 4096: 49153:
3: 20480.. 20874: 196712.. 197106: 395: 202753: last,eof
/boot/initramfs-3.10.0-327.13.1.el7_lustre.x86_64: 4 extents found