delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/11/23/07:21:52

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 23 Nov 2012 13:21:26 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: NTFS inode ouput from ls -i
Message-ID: <20121123122126.GQ17347@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <1353618531 DOT 68014 DOT YahooMailNeo AT web5716 DOT biz DOT mail DOT ne1 DOT yahoo DOT com> <50AF21C9 DOT 9090706 AT lysator DOT liu DOT se>
MIME-Version: 1.0
In-Reply-To: <50AF21C9.9090706@lysator.liu.se>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Nov 23 08:12, Peter Rosin wrote:
> On 2012-11-22 22:08, Michael Lester wrote:
> > mike AT computer ~/test3
> > $ ls
> > file1
> > 
> > mike AT computer ~/test3
> > $ cat file1
> > Hello!
> > 123
> > 
> > mike AT computer ~/test3
> > $ ifind -n /cygwin/home/mike/test3/file1 '\\.\c:'
> > 195962
> > 
> > mike AT computer ~/test3
> > $ icat '\\.\c:' 195962
> > Hello!
> > 123
> > 
> > mike AT computer ~/test3
> > $ ls -i file1
> > 281474976906618 file1
> > 
> > mike AT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019