This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Windows 7: stat /cygdrive/D/nosuchfile yields garbage


I'm using Cygwin (version 1.7.9-1 of cygwin1.dll) on Windows 7
on a Dell laptop.  Cygwin is installed in C:\cygwin.

I should mention that I have a second Cygwin installation on
the same laptop; it's in C:\apps\cygwin, and has version 1.7.5-1
of cygwin1.dll.  I understand that having more than one Cygwin
installation on a Windows box is not supported, and if that's likely
to be the cause of this problem I won't complain.  But if anyone
else has seen similar behavior with a supported configuration,
it should probably be looked into further.

C: is my hard drive.  D: is my CD/DVD drive, which currently has no
disk in it.

When I stat a nonexistent file under /cygdrive/D, I get nonsensical
results (huge sizes, strange timestamps) rather than an error
message.  I don't have this problem with /cygdrive/C, or with files
that actually exist.  I haven't tried stat'ing an existing file on
a CD or DVD.

To (try to) reproduce the problem, run "stat /cygdrive/D/nosuchfile",
where D is the drive letter of a CD/DVD drive with no disk.

$ stat /cygdrive/C
  File: `/cygdrive/C'
  Size: 0               Blocks: 8          IO Block: 65536  directory
Device: 8eacaecch/2393681612d   Inode: 1407374883553285  Links: 1
Access: (0000/d---------)  Uid: (4294967295/????????)   Gid: (4294967295/????????)
Access: 2011-05-17 19:45:43.031255600 -0700
Modify: 2011-05-17 19:45:43.031255600 -0700
Change: 2011-05-17 19:45:43.031255600 -0700
 Birth: 2010-08-04 04:31:46.000000000 -0700
$ stat /cygdrive/C/nosuchfile
stat: cannot stat `/cygdrive/C/nosuchfile': No such file or directory
$ stat /cygdrive/D
  File: `/cygdrive/D'
  Size: 0               Blocks: 39733916869668 IO Block: 65536  directory
Device: f7h/247d        Inode: 15880182543701391270  Links: 1
Access: (0755/drwxr-xr-x)  Uid: (1327634/keithomp)   Gid: (10513/Domain Users)
Access: 1904-03-30 18:03:12.-225685200 
Modify: 2002-02-22 02:59:30.-723071800 
Change: 2002-02-21 05:02:23.-173928600 
 Birth: -
$ stat /cygdrive/D/nosuchfile
  File: `/cygdrive/D/nosuchfile'
  Size: 6998845471659838504     Blocks: 44681719195812 IO Block: 65536  regular file
Device: f7h/247d        Inode: 13112919551903554218  Links: 1
Access: (0644/-rw-r--r--)  Uid: (1327634/keithomp)   Gid: (10513/Domain Users)
Access: 1904-03-30 18:03:12.-225685200 
Modify: 2018-03-14 05:28:48.-643891000 
Change: 2018-03-13 07:31:42.-976783000 
 Birth: -
$ 

-- 
Keith Thompson (The_Other_Keith) kst@mib.org  <http://www.ghoti.net/~kst>
Nokia
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]