Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sun, 11 May 2003 14:20:17 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: NTFS inode numbers (was Re: cygipc (and PostgreSQL) XP problem resolved!) Message-ID: <20030511122017.GX19367@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <3EBC8ED0 DOT 4040906 AT ece DOT gatech DOT edu> <20030510072239 DOT GA19367 AT cygbert DOT vinschen DOT de> <1052554219 DOT 1824 DOT 14 DOT camel AT localhost> <20030510082949 DOT GD19367 AT cygbert DOT vinschen DOT de> <3EBD3179 DOT 6070004 AT ece DOT gatech DOT edu> <20030510171629 DOT GB11448 AT redhat DOT com> <3EBD3896 DOT 8000202 AT ece DOT gatech DOT edu> <20030510174455 DOT GB12325 AT redhat DOT com> <20030510175116 DOT GS19367 AT cygbert DOT vinschen DOT de> <3EBD44FE DOT 9030801 AT ece DOT gatech DOT edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EBD44FE.9030801@ece.gatech.edu> User-Agent: Mutt/1.4.1i On Sat, May 10, 2003 at 02:29:18PM -0400, Charles Wilson wrote: > Corinna Vinschen wrote: > >On Sat, May 10, 2003 at 01:44:55PM -0400, Christopher Faylor wrote: > >>I assume that, in most cases, the high order byte is probably > >>zero but I don't know for sure. > > > >It's not 0. I recall examining the inode number on NTFS years ago > >and the high word used different non-0 values, strangly not very > >much of them. It looked like a pattern which I just didn't understand. > >That was on NT4, AFAIR. > > Actually, that sounds promising. Mebbe I'll whip up a simple mingw prog > to scan an entire drive and dump out inodes: > > Hi32 \t Lo32 \n > > And snarf that into MatLab and look for patterns. Unless somebody > already has code to do that? I've just written a small Ruby script to check the inode numbers on NTFS I've tested > 110000 files and it turned out that for some reason only the upper word of the FileIndexHigh value is used. I've got only 546 different values between 0x00010000 and 0xffff0000. The low word was 0x0000 in all cases. So the inode value as a whole is apparently a 48 bit value. FileIndexLow is also interesting. I got 103812 different values but none of these values was bigger than 0x0003ffff. So it *looks* as if the upper 14 bits aren't used in FileIndexLow. This would result in FileIndex being a 34 bit value. Naaah, that sounds too weird. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/