This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Using du.exe to calculate disk usage on a Microsoft cluster server
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/