This is the mail archive of the
mailing list for the Cygwin project.
RE: Cygwin df -l option has wrong sense?
- From: "Hughes, Bill" <Bill dot Hughes at cox dot co dot uk>
- To: "Hughes, Bill" <Bill dot Hughes at cox dot co dot uk>, cygwin at cygwin dot com
- Date: Fri, 1 Oct 2004 11:39:31 +0100
- Subject: RE: Cygwin df -l option has wrong sense?
Hughes, Bill wrote:
> email@example.com wrote:
>> Certainly ":" is reserved in Windows for use only with drive letters.
> Not strictly true - the colon is also used in NTFS for streams
> (or data forks).
I realise this is not directly applicable to whether a drive is local but
it's the sort of thing that can bite when hacking this sort of code. Streams
can also mess up your free space calculations too, which is more to the
point. IIRC GetDiskFreeSpace doesn't allow for the space taken by streams.
> I would have thought it should really be looking at the filesystem type,
> not the syntax of the mount point. And I hereby confess that I don't
> actually know the system call used to determine the filesystem type.
That would be GetDriveType in kernel32 I expect.
I've had a quick look at the code and I obviously need to brush up on my C,
I can't follow what's going on, I thought this would be a good place to
start working with the source and gcc. I presume I only need the source for
>>> P.S. The mount type fix is still on my TODO list :-(
> They certainly are, that's why I have so many. :-)
Err, I snipped the wrong bit sorry. it should have been:
> Aren't TODO lists wonderful? :-)
They certainly are....
Isn't attempted humour really sad when it goes wrong and was marginal in the
oo // \\ "De Chelonian Mobile"
(_,\/ \_/ \ TortoiseSVN
\ \_/_\_/> The coolest Interface to (Sub)Version Control
/_/ \_\ http://tortoisesvn.tigris.org
This e-mail transmission is strictly confidential and intended solely
for the person or organisation to whom it is addressed. It may contain
privileged and confidential information and if you are not the intended
recipient, you must not copy, distribute or take any action in reliance
on it. If you have received this email in error, please reply to the
sender as soon as possible and delete the message. Please note that we
are able to, and reserve the right to, monitor e-mail communications
passing through our network.
The views expressed in this email are not that of the company unless
specified within the message.
The inclusion of this footnote indicates that the mail message and any
attachments have been checked for the presence of known viruses.
If you have any comments regarding our policy please direct them to
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html