Suppose I have в file/foo/bar. stat /foo/bar
хан шоу the inode information of it - something like this:
Size: 9511068 Blocks: 18584 IO Block: 4096 regular file
Device: ca01h/51713d Inode: 793183 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2015-01-29 13:58:23.000000000 +0000
Modify: 2015-01-24 11:48:47.000000000 +0000
Change: 2015-01-29 14:01:09.177162834 +0000
But it doesn't шоу the addresses of each block of contents. How хан I read the specific, say, the third block of the file/foo/bar? Is there any such command?
Вы можете использовать команду debugfs
. Используя open
файловую систему, которую вы хотите проверить, и есть команда blocks
, которая показывает вам все адреса блоков, используемые файлом. Я не уверен, работает ли он с файловыми системами, отличными от ext.