X-Spam-Check-By: sourceware.org Message-ID: Date: Fri, 7 Jul 2006 23:35:17 -0400 From: "Lev Bishop" 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 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/