Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9.5, 2.0
-
Component/s: Authentication
-
Labels:None
-
Difficulty:Easy
-
Affected Branches:MOODLE_19_STABLE, MOODLE_20_STABLE
-
Fixed Branches:MOODLE_19_STABLE, MOODLE_20_STABLE
Description
When using the legacy file sessions on a partition which is full, logging in is impossible (you get returned to the homepage unauthenticated) but there are no errors message reported anywhere.
The attach patch (against HEAD) adds a new check when initialising the session directory and prints out a helpful message.
This patch breaks on large filesystems. Or at least, on our large (>6TB) filesystem.
Example (the important part is the PHP warning):
/clients/mr195preview/sessions<br>1.<br>PHP Warning: disk_free_space(): Value too large for defined data type in /mroomstech/df.php on line 10
I would have thought that 6TB is okay for a var type "double" so I'm not sure why this fails, but, alas, it does. We hate to have to patch this locally, so if someone could take a closer look, that would be great.
I'll report back if I have more detail.
Thanks!