NTFS inode ouput from ls -i

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Nov 23 12:21:00 GMT 2012


On Nov 23 08:12, Peter Rosin wrote:
> On 2012-11-22 22:08, Michael Lester wrote:
> > mike@computer ~/test3
> > $ ls
> > file1
> > 
> > mike@computer ~/test3
> > $ cat file1
> > Hello!
> > 123
> > 
> > mike@computer ~/test3
> > $ ifind -n /cygwin/home/mike/test3/file1 '\\.\c:'
> > 195962
> > 
> > mike@computer ~/test3
> > $ icat '\\.\c:' 195962
> > Hello!
> > 123
> > 
> > mike@computer ~/test3
> > $ ls -i file1
> > 281474976906618 file1
> > 
> > mike@computer ~/test3
> > $
> 
> I'm obviously not Corinna, but I did make a quick observation:
> 
> 195962 == 0x2FD7A
> 281474976906618 = 0x100000002FD7A
> 
> I don't know if that always holds, but it certainly looks promising.

It is.  Cygwin uses the FileID value.  Note that the FileID type is
ULONGLONG == 64 bit.  Stripping off the upper 32 bit, as apparently the
ifind and icat tools do, seems wrong to me.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list