This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pconnell
Recipients pconnell, vinay.sajip
Date 2012-11-10.14:36:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352558170.33.0.527628732316.issue16449@psf.upfronthosting.co.za>
In-reply-to
Content
logging.handlers.RotatingFileHandler.doRollover fails on QNX /dev/shmem filesystems (seen on a 6.4.0-based system).

QNX RAM filesystems don't support rename() (see http://www.qnx.com/developers/docs/6.4.0/neutrino/sys_arch/fsys.html#DEVSHMEM - it's a 'big filesystem' feature).

So for example, rename("/dev/shmem/foo", "/dev/shmem/bar") fails with EXDEV.


This is easily fixed by using shutils.move rather than os.rename where appropriate, falling back to copying if a rename() fails. It's not sufficient to set the rotator attribute, since there are other os.rename calls in in doRollover.
History
Date User Action Args
2012-11-10 14:36:10pconnellsetrecipients: + pconnell, vinay.sajip
2012-11-10 14:36:10pconnellsetmessageid: <1352558170.33.0.527628732316.issue16449@psf.upfronthosting.co.za>
2012-11-10 14:36:10pconnelllinkissue16449 messages
2012-11-10 14:36:10pconnellcreate