Subject: | RFE: "emulate" inodes on windows |
From TODO:
Inodes on Windows:
Need equivalent dev+inode semantics on Win32 in order to have the
race condition code work correctly when rmtree'ing a UNC path
(//server/dir/subdir). (stat $file)[1] always seems to return 0
cdarke @ perlmonks, CLIVE on CPAN wrote:
BOOL Win_CompareInodes (const char *szName)
{
BY_HANDLE_FILE_INFORMATION Info = {0};
GetFileInformationByHandle(Win32open (szName, O_RDONLY), &Info);
if (Info.dwVolumeSerialNumber == g_Inode.Info.dwVolumeSerialNumber &&
Info.nFileIndexHigh == g_Inode.Info.nFileIndexHigh &&
Info.nFileIndexLow == g_Inode.Info.nFileIndexLow )
return TRUE;
else
return FALSE;
} /* Win_CompareInodes */