Message-ID: <3E21A51E.485C88ED@yahoo.com> Date: Sun, 12 Jan 2003 12:25:50 -0500 From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Re: fstat, fd_props and inventing inodes [PATCH] References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Richard Dawe wrote: > > Below is a revision of Andrew's patch to make fstat generate > the same inode for a file irrespective of which file name > was used to open the file or how many times fstat has been called. > (Calling fstat multiple times on file descriptor gives different > inode values each time on Windows '98 SE.) I am wondering why it is necessary to go to all this trouble. Doesn't the directory entry for any FAT system file include a pointer to the first cluster on that drive, and isn't this unique and independant of naming tricks? The addition of 5 bits for drive identification should make it unique over the file system. Am I missing something? -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net) Available for consulting/temporary embedded and systems. USE worldnet address!