Detects the case of physical offsets not reported beucase the file doesn't have one.

This commit is contained in:
Andrea Mazzoleni 2013-09-28 15:33:56 +02:00
parent cffbba8aee
commit 6deecb26de
6 changed files with 36 additions and 10 deletions

View file

@ -187,6 +187,22 @@ static inline int hardlink(const char* a, const char* b)
*/
int devuuid(uint64_t device, char* uuid, size_t size);
/**
* Special value returned when the file doesn't have a real offset.
* For example, because it's stored in the NTFS MFT.
*/
#define FILEPHY_WITHOUT_OFFSET 0
/**
* Special value returned when the filesystem doesn't report any offset for unknown reason.
*/
#define FILEPHY_UNREPORTED_OFFSET 1
/**
* Value indicating real offsets. All offsets greater or equal at this one are real.
*/
#define FILEPHY_REAL_OFFSET 2
/**
* Get the physcal address of the specified file.
* This is expected to be just a hint and not necessarely correct or unique.