From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31607 invoked by alias); 23 Nov 2012 12:21:45 -0000 Received: (qmail 31582 invoked by uid 22791); 23 Nov 2012 12:21:33 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Fri, 23 Nov 2012 12:21:29 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id E3165E0EA3; Fri, 23 Nov 2012 13:21:26 +0100 (CET) Date: Fri, 23 Nov 2012 12:21:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: NTFS inode ouput from ls -i Message-ID: <20121123122126.GQ17347@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <1353618531.68014.YahooMailNeo@web5716.biz.mail.ne1.yahoo.com> <50AF21C9.9090706@lysator.liu.se> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <50AF21C9.9090706@lysator.liu.se> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-11/txt/msg00172.txt.bz2 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