[New-bugs-announce] [issue10016] shutil.copyfile -- allow sparse copying
report at bugs.python.org
Sat Oct 2 16:16:55 CEST 2010
New submission from Tom Potts <karaken12 at gmail.com>:
Copying a sparse file under Linux using shutil.copyfile will not result in a sparse file at the end of the process. I'm submitting a patch that will remedy this.
Note that I am only concerned with Linux at the moment -- as far as I know this patch will not mess things up on other platforms, but this will need to be tested. It depends on the behaviour of os.truncate() when the pointer is past the end of the file, which according to the docs is platform dependant.
P.S. This is my first time submitting an issue -- if there's anything I need to do and haven't, please let me know.
components: Library (Lib)
title: shutil.copyfile -- allow sparse copying
type: feature request
versions: Python 2.6, Python 2.7, Python 3.2
Added file: http://bugs.python.org/file19107/shutil-2.6.patch
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce