X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave.korn@artimi.com>
To: <cygwin@cygwin.com>
Subject: RE: Using du.exe to calculate disk usage on a Microsoft cluster server
Date: Fri, 7 Jul 2006 17:32:41 +0100
Message-ID: <00f301c6a1e2$f752d700$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <44AE85B7.CB21F832@dessent.net>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 07 July 2006 17:03, Brian Dessent wrote:

> Dave Korn wrote:
> 
>> filenames.  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.
> 
> As far as I recall the PATH_MAX of 260 applies to the ANSI versions of
> the file APIs, but if you use the Unicode version you can create names
> up to 32K UTF-16 characters in length.  So it is entirely possible to
> create a file with a name that is too long to access via normal programs
> that aren't using the Unicode variants of the API functions (which
> includes Cygwin.)

  Ah, then one workaround would be to translate the paths into the
\\.\S:\blablabla native form, perhaps?

dk@rainbow /artimi/software/firmware> ls -la //./C:/
ls: //./C:/: No such host or network path
dk@rainbow /artimi/software/firmware> ls -la //./c:/
ls: //./c:/: No such host or network path
dk@rainbow /artimi/software/firmware> ls -la '\\.\c:\'
ls: \\.\c:\: No such file or directory
dk@rainbow /artimi/software/firmware> ls -la '\\.\c:\.'
ls: \\.\c:\.: No such file or directory
dk@rainbow /artimi/software/firmware> ls -la \\\\.\\c:\\
ls: \\.\c:\: No such file or directory
dk@rainbow /artimi/software/firmware> ls -la \\\\.\\C:\\
ls: \\.\C:\: No such file or directory
dk@rainbow /artimi/software/firmware>

  Hmm, perhaps it wouldn't be.  I can't seem to make it work any more.  Doh.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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

