RFC: improve IOError: [Errno 28] No space left on device

Jari Aalto jari.aalto at cante.net
Thu Mar 22 18:45:12 GMT 2007


Recently I got this (0.15rc2):

    $ bzr ci ... php.ini
    modified php.ini Committed revision 3. Traceback (most recent call
    last):
       File "/tmp/python.572/usr/lib/python2.4/logging/__init__.py", line
    712, in emit
    IOError: [Errno 28] No space left on device
    Traceback (most recent call last):  File "/bin/bzr", line 95, in ?
         exit_val = bzrlib.commands.main(sys.argv)
       File "/usr/lib/python2.4/commands.py", line 644, in main

       File "/usr/lib/python2.4/trace.py", line 122, in mutter
         return self._ignore[modulename]
    IOError: [Errno 28] No space left on device
    jaalto at TB3AALTOJ /cygdrive/p/unix/installed/

The problem was that my HOME directory, as used by Cygwin, was
disconnected from network in a Windows anvironment. The HOME drive was
provided by a samba server, which obviously died somewhere along the
line.

Now, I don't think

    IOError: [Errno 28] No space left on device

quite cuts it, don't you think? Perhaps the program should test the
existence of a file or directory before trying to write the log and
repond accordingly on error.

Jari




More information about the bazaar mailing list