Reading Superblock

I know that on Unix (Mac OS X in particular) the superblock stores information about the composition of data on the disk, including the addresses of the disks from which inodes begin and end. I want to scan the list of inodes in my program to search for deleted files. How to find the address of the drive where inodes begin? I looked at the statfs command but does not provide this information.

+5
source share
2 answers

Since you mention Mac OS X, let's say you want to do this only for HFS +. The Wikipedia page contains some information about possible launch paths, for example, it talks about this on a layout on disk:

0 1 HFS. HFS. HFS.

2 , HFS. , , , , , , . .

, , . Bitmap HFS, . , , , . HFS , , . .

. , B * trees.

Mac OS, , , , , ?

+2

, , , .

FAT ( UDF), "", dir .

HFS - B- , (, , ).

, , .

+1

All Articles