|
Nicolas Martignoni made changes - 25/Apr/07 07:48 PM
Does anyone have a better set of arguments to pass to du ?
I'm not sure of any better arguments for *nix systems, and changing the arguments may cause problems for admins/users as they may suddenly see a change in the file sizes as reported by the get_directory_size function.
In any case, the GNU Win32 version of du does not have the --apparent-size option, so it's a GNUism only for Linux systems. For Windows systems, this is the only version of du available and the --apparent-size option breaks get_directory_size. Whatever the reason was for the inclusion of this option, I've attached a diff to check for Windows OS so that du works. I've moved this up to major as it's a biggie for Windows users who are struggling with directories full of gigabytes of course materials
Ken Wilson made changes - 23/Aug/07 04:40 PM
Ken Wilson made changes - 23/Aug/07 04:41 PM
Ken Wilson made changes - 23/Aug/07 04:42 PM
See also this old discussion: http://moodle.org/mod/forum/discuss.php?d=30287
If this cannot be directly solved, suggesting the display of a warning.
Nicolas Martignoni made changes - 31/Dec/07 08:27 PM
Petr Skoda made changes - 03/Jan/08 08:04 PM
Hi. Just weighing in with a "me too"
Running this thing ('thing" being Moodle Not sure of a solution except to suggest that such system-specific code is not portable, but you all know that already. Thanks! Oops, duh. The enviornment "Solaris" is already listed as part of the bug. Sorry! Still, would be nice to have this cleaned up.
Another me too. Turned up on a pile of our sites using Solaris.
Martin Dougiamas made changes - 18/Jul/08 02:35 PM
moodler committed 1 file to 'Moodle CVS' on branch 'MOODLE_16_STABLE' - 18/Jul/08 02:36 PM
moodler committed 1 file to 'Moodle CVS' on branch 'MOODLE_17_STABLE' - 18/Jul/08 02:38 PM
moodler committed 1 file to 'Moodle CVS' on branch 'MOODLE_18_STABLE' - 18/Jul/08 02:40 PM
moodler committed 1 file to 'Moodle CVS' on branch 'MOODLE_19_STABLE' - 18/Jul/08 02:41 PM
moodler committed 1 file to 'Moodle CVS' - 18/Jul/08 02:42 PM
OK, I've removed --apparent-size from everywhere. In some limited tests I did I could see no benefit in using it anyway!
Martin Dougiamas made changes - 18/Jul/08 02:49 PM
Nicolas Martignoni made changes - 19/Jul/08 12:23 AM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
IMHO, we shouldn't rely on specialities of Un*x variants.