lstat on FAT - Was: Problem with find on FAT drives

Volker Quetschke quetschke@scytek.de
Tue Mar 23 21:08:00 GMT 2004


> Hi!
> 
> I just found a strange problem when using find on a FAT drive.
> I got: "find: .\tmp changed during execution of find"

OK, I analyzed the problem a bit and found that lstat can
give different inode numbers on fat, see the attached testcase.

To test this you have to have a directory called tmp in your
current working directory.

On a FAT drive you get:
$ /tmp/lstat_test.exe
Checking pathname: .\tmp
cur_stat_buf.st_ino: -1375632239
stat_buf.st_ino: 802199907
Error Inode numbers are different!

Bug or feature?

Volker

-- 
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: lstat_test.c
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040323/75204824/attachment.c>
-------------- next part --------------
--
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/


More information about the Cygwin mailing list