[Win32utils-devel] Fwd: FileStat#ino for Windows

Heesob Park phasis at gmail.com
Mon Nov 11 14:46:09 UTC 2013

Resend due to mailing list issues.

---------- Forwarded message ----------
From: Heesob Park <phasis at gmail.com>
Date: 2013/11/7
Subject: Re: [Win32utils-devel] FileStat#ino for Windows
To: Development and ideas for win32utils projects
<win32utils-devel at rubyforge.org>


2013/11/6 Heesob Park <phasis at gmail.com>:
> Hi,
> 2013/11/6 Daniel Berger <djberg96 at gmail.com>:
>> Would it make sense to implement the .ino method for Windows?
> I think it is meaningful if ino is a unique file identifier.
>> I was thinking GetFileInformationByHandleEx + FileIdInfo could work, using
>> the FileId member of the FILE_ID_INFO struct.
> The GetFileInformationByHandleEx + FileIdInfo requires Windows Server 2012.
> ZwQueryInformationFile + FileInternalInformation could work using the
> file member of FILE_INTERNAL_INFORMATION structure.
I noticed you added .ino method like this:
 @ino = data[:nFileIndexHigh] | data[:nFileIndexLow]

I think it should be
 @ino = (data[:nFileIndexHigh]<<32) | data[:nFileIndexLow]

Park Heesob

More information about the win32utils-devel mailing list