Directly handles file without offset.

This commit is contained in:
Andrea Mazzoleni 2013-09-28 15:56:40 +02:00
parent 6deecb26de
commit 9a597690d7

View file

@ -1132,8 +1132,10 @@ int filephy(const char* file, struct stat* st, uint64_t* physical)
/* and then it doesn't have a physical address */
/* In such case we report a specific fake address, to report this special condition */
/* that it's different from the 0 offset reported by the underline file system */
rpb->ExtentCount = 1;
rpb->Extents[0].Lcn.QuadPart = FILEPHY_WITHOUT_OFFSET;
*physical = FILEPHY_WITHOUT_OFFSET;
CloseHandle(h);
return 0;
} else {
windows_errno(error);
CloseHandle(h);