delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/07/23:35:28

X-Spam-Check-By: sourceware.org
Message-ID: <ba40711f0607072035g6c0aef5am505b020724e9e501@mail.gmail.com>
Date: Fri, 7 Jul 2006 23:35:17 -0400
From: "Lev Bishop" <lev DOT bishop AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Using du.exe to calculate disk usage on a Microsoft cluster server
In-Reply-To: <00ec01c6a1dd$ab40c1b0$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
References: <44AE71C5 DOT 4020609 AT bethel-crc DOT ca> <00ec01c6a1dd$ab40c1b0$a501a8c0 AT CAM DOT ARTIMI DOT COM>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On 7/7/06, Dave Korn wrote:

> I *still* don't understand how it is possible for your users to
> create files with names that are longer than the maximum filename length that
> windows permits - this is a limitation of the windows OS and filing system,
> not one that cygwin imposes.

Dave:
Probably the problem that will is experiencing (hard to say for sure
since he won't give any of the relevant information) is due to the
fact that cygwin enforces the MAX_PATH/CYG_MAX_PATH on both the
windows path and on the posix form of that path. So there can be paths
which are valid to windows, but if the posix prefix is longer than the
windows prefix, they can be considered too long by cygwin.

Your suggestion to use a mountpoint:
> You
> might try using a mountpoint to shorten some of the prefix of the overly long
> filenames.

Will work, so long as the posix path of the mountpoint is shorter than
the windows path of the mountpoint....

In this case, '/cygdrive/s/' is longer than 's:\' .

's:\' is 3 chars long, the posix mountpoint must start and end with
'/', so we have one spare character. Therefore, my shot-in-the-dark
prediction is that

$ mount -s -b -f "S:" "/s"
$ du -sh /s/*

Will work. Barring problems with quoting, etc.

Lev

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

- Raw text -


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