0

How can we print all disk blocks occupied by a file by adding a system call?

My Linux version is 4.2.6 and my File system is ext4.

Which Linux C library could be helpful?

Flexo
  • 87,323
  • 22
  • 191
  • 272
BINISM
  • 9
  • 1
  • 1
    dublicate: http://stackoverflow.com/questions/2894824/linux-how-do-i-know-the-block-map-of-the-given-file-and-or-the-free-space-map – Vladimir Kunschikov Dec 22 '15 at 07:02
  • How do you know a file occupies any disk blocks? – Andrew Henle Dec 22 '15 at 10:12
  • Possible duplicate of [Linux - How do i know the block map of the given file and/or the free space map of the partition](https://stackoverflow.com/questions/2894824/linux-how-do-i-know-the-block-map-of-the-given-file-and-or-the-free-space-map) – Armali Jan 15 '18 at 10:17

0 Answers0