0

I am writing a block device driver and I have mounted ext4 file system on it. When i run fio verify on a file from ext4 , I get a verify error.

How does one convert the file,offset in ext4 to a block device number?

1 Answer 1

0

This is answered over on https://serverfault.com/questions/309641/how-can-i-find-out-where-a-file-is-physically-located-on-the-disk-block-numbers which says debugfs can be used for this purpose. For example:

debugfs -R "stat ~/myfile" /dev/sda1

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .