[Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

James Cameron quozl at laptop.org
Tue Sep 11 21:44:03 EDT 2012


On Wed, Sep 12, 2012 at 01:07:29AM +0000, Manuel Kaufmann wrote:
> So, we should handle this exception inside the Journal Activity, when
> an object is created or updated. ...

For your interest, open_log_file in activityfactory.py in
sugar-toolkit.git contains a handling of ENOSPC.

(What it does in response to the exception is somewhat irrelevant to
your task ... it stops logging once a log file cannot be created
... though I don't see any handling of where writes to the log file
would fail.)

-- 
James Cameron
http://quozl.linux.org.au/


More information about the Sugar-devel mailing list