delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/19/23:15:14

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_SORBS_WEB,RCVD_NUMERIC_HELO,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Rolf Campbell <rcampbell-cygwin AT dragonwaveinc DOT com>
Subject: cygwin 1.7.6: df shows wrong (different?) drive information
Date: Thu, 19 Aug 2010 23:14:48 -0400
Lines: 26
Message-ID: <i4krv8$m1g$1@dough.gmane.org>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

When I run "df -h <dir>" where dir is part of a 
native-NTFS-mounted-drive, then df prints details about the root drive 
(not the mounted drive).

This acts differently if the drive is *also* mounted as a separate 
top-level drive.  In that case, if you specify the mount point itself, 
it prints information about the root drive, but if you specify any 
subdir, then it prints the correct drive information.

For example (not actual output):

Drive 0, 100G: mounted as "C:\"
Drive 1, 200G: mounted as "C:\1"
Drive 2, 300G: mounted as "C:\2" and "D:\"

df -h /cygdrive/c => "100G"
df -h /cygdrive/c/1" => "100G"
df -h /cygdrive/c/1/subdir" => "100G"
df -h /cygdrive/c/2" => "100G"
df -h /cygdrive/c/2/subdir" => "300G"

In cygwin 1.7.5, the output was "100G", "200G", "200G", "300G", and 
"300G" respectively.

I should point out that I'm still using that special snapshot Corinna 
made for me, not the stock 1.7.6.


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019