Author kr-g
Recipients kr-g
Date 2021-06-15.05:52:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
by copy a large file e.g.

-rwxrwxr-x 1 1002 1001 5359338160 Feb  9  2019 xxx_file_xxx.mdx

copy2 / sendfile / fastcopy fails with:

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/usr/lib/python3.8/multiprocessing/", line 48, in mapstar
    return list(map(*args))
  File "/usr/local/lib/python3.8/dist-packages/pybcpy/", line 212, in _init_copy_single
    shutil.copy2(f, dest_path)
  File "/usr/lib/python3.8/", line 432, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.8/", line 272, in copyfile
    _fastcopy_sendfile(fsrc, fdst)
  File "/usr/lib/python3.8/", line 169, in _fastcopy_sendfile
    raise err
  File "/usr/lib/python3.8/", line 149, in _fastcopy_sendfile
    sent = os.sendfile(outfd, infd, offset, blocksize)
OSError: [Errno 75] Value too large for defined data type: 'xxx_file_xxx.mdx' -> 'dest/xxx_file_xxx.mdx'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.8/", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.8/dist-packages/pybcpy/", line 433, in <module>
  File "/usr/local/lib/python3.8/dist-packages/pybcpy/", line 425, in main_func
  File "/usr/local/lib/python3.8/dist-packages/pybcpy/", line 75, in cmd_init
    ) = dbak.init_backup_repo(tarmode=args.tar)
  File "/usr/local/lib/python3.8/dist-packages/pybcpy/", line 231, in init_backup_repo
    files =, ifiles)
  File "/usr/lib/python3.8/multiprocessing/", line 364, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
  File "/usr/lib/python3.8/multiprocessing/", line 771, in get
    raise self._value
OSError: [Errno 75] Value too large for defined data type: 'xxx_file_xxx.mdx' -> 'dest/xxx_file_xxx.mdx'

reference to code:
Date User Action Args
2021-06-15 05:52:25kr-gsetrecipients: + kr-g
2021-06-15 05:52:25kr-gsetmessageid: <>
2021-06-15 05:52:25kr-glinkissue44423 messages
2021-06-15 05:52:25kr-gcreate