Mail Archives: cygwin/2005/12/01/18:38:53
--Apple-Mail-8-554294149
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed
On Dec 1, 2005, at 1:38 PM, Corinna Vinschen wrote:
> On Dec 1 13:01, Peter Rehley wrote:
>> It only appears to be a problem
>> when I have a mac os x share mounted to a drive on windows. When I
>> try with a windows share or a linux share I don't seem to have the
>> problem.
>>
>> The problem that I'm seeing is that the inode value isn't unique when
>> listing a directory (or using any program that uses the inode value).
>
> Do I understand you right that this only happens for directories? The
> normal file inodes are looking ok?
No, it also happens for files too.
>
>> The inode that comes back from doing a ls -li is first much shorter
>> that a normal inode. I've included lists from my share when using
>> the 20051123 snapshot and then they 20051128 snapshot. The only
>> change that I've done between the two is update cygwin using the
>> cygwin-inst snapshot file.
>
> Yes, I have no Mac OS X handy. I have attached two hacked test
> applications, which you can simply build with `gcc -o foo foo.c'.
>
> The first one, GetVolInfo, should get a Cygwin path to any file on the
> Mac OS X share. It prints the volume information returned from the
> share.
>
> The second one, GetFileInfo, should be called on a few directories
> and a
> couple of files on the share.
>
> The output of both tests might be helpful.
Output is attached.
>
> And another thing to try. Could you please check (only with the
> latest
> snapshot) if the resulting inode numbers are the same when running
>
> $ cd /local/cygwin/dir && ls -i //MacOSX/share/dir
>
> and
>
> $ cd //MacOSX/share && ls -i dir
>
> ?
cd /tmp && ls -i //10.0.10.42/prehley/tmp
it returned
3776088840 GetFileInfo.c 3776088840 GetVolInfo.c 3776088848 inode_test
cd //10.0.10.42/prehley && ls -i tmp
it returned
3776088840 GetFileInfo.c 3776088840 GetVolInfo.c 3776088848 inode_test
--Apple-Mail-8-554294149
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="getinfo.out"
Content-Disposition: attachment;
filename=getinfo.out
+ ./GetVolInfo /cygdrive/z/
rootdir: z:\
Volume Name : <prehley>
Serial Number : 1319704160
Max Filenamelength : 255
Filesystemname : <NTFS>
Flags:
FILE_CASE_SENSITIVE_SEARCH : TRUE
FILE_CASE_PRESERVED_NAMES : TRUE
FILE_UNICODE_ON_DISK : FALSE
FILE_PERSISTENT_ACLS : TRUE
FILE_FILE_COMPRESSION : FALSE
FILE_VOLUME_QUOTAS : FALSE
FILE_SUPPORTS_SPARSE_FILES : FALSE
FILE_SUPPORTS_REPARSE_POINTS: FALSE
FILE_SUPPORTS_REMOTE_STORAGE: FALSE
FILE_VOLUME_IS_COMPRESSED : FALSE
FILE_SUPPORTS_OBJECT_IDS : FALSE
FILE_SUPPORTS_ENCRYPTION : FALSE
FILE_NAMED_STREAMS : FALSE
FILE_READ_ONLY_VOLUME : FALSE
+ ./GetFileInfo /cygdrive/z/tmp/GetFileInfo.c /cygdrive/z/tmp/GetVolInfo.c /cygdrive/z/tmp/inode_test
z:\tmp\GetFileInfo.c:
FileAttributes: 80
VolumeSerialNo: 1319704160 NumberOfLinks : 1
FileIndexHigh : 0 FileIndexLow : e120a458
z:\tmp\GetVolInfo.c:
FileAttributes: 80
VolumeSerialNo: 1319704160 NumberOfLinks : 1
FileIndexHigh : 0 FileIndexLow : e120a458
z:\tmp\inode_test:
FileAttributes: 10
VolumeSerialNo: 1319704160 NumberOfLinks : 14
FileIndexHigh : 0 FileIndexLow : e120a460
+ ./GetFileInfo /cygdrive/z/tmp/inode_test/t1 /cygdrive/z/tmp/inode_test/t2 /cygdrive/z/tmp/inode_test/t3 /cygdrive/z/tmp/inode_test/t4 /cygdrive/z/tmp/inode_test/t5 /cygdrive/z/tmp/inode_test/t6
z:\tmp\inode_test\t1:
FileAttributes: 10
VolumeSerialNo: 1319704160 NumberOfLinks : 2
FileIndexHigh : 0 FileIndexLow : e120a458
z:\tmp\inode_test\t2:
FileAttributes: 10
VolumeSerialNo: 1319704160 NumberOfLinks : 2
FileIndexHigh : 0 FileIndexLow : e120a458
z:\tmp\inode_test\t3:
FileAttributes: 10
VolumeSerialNo: 1319704160 NumberOfLinks : 2
FileIndexHigh : 0 FileIndexLow : e120a458
z:\tmp\inode_test\t4:
FileAttributes: 10
VolumeSerialNo: 1319704160 NumberOfLinks : 2
FileIndexHigh : 0 FileIndexLow : e120a458
z:\tmp\inode_test\t5:
FileAttributes: 10
VolumeSerialNo: 1319704160 NumberOfLinks : 2
FileIndexHigh : 0 FileIndexLow : e120a458
z:\tmp\inode_test\t6:
FileAttributes: 10
VolumeSerialNo: 1319704160 NumberOfLinks : 2
FileIndexHigh : 0 FileIndexLow : e120a458
--Apple-Mail-8-554294149
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed
>
>
> Thanks,
> Corinna
>
> --
> Corinna Vinschen Please, send mails regarding
> Cygwin to
> Cygwin Project Co-Leader cygwin AT cygwin DOT com
> Red Hat, Inc.
> <GetVolInfo.c>
> <GetFileInfo.c>
> --
> 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/
--Apple-Mail-8-554294149
Content-Type: text/plain; charset=us-ascii
--
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/
--Apple-Mail-8-554294149--
- Raw text -