Project

General

Profile

Actions

Bug #63510

open

ceph fs (meta) data inconsistent with python shutil.copy()

Added by Xiubo Li 6 months ago. Updated 6 months ago.

Status:
Need More Info
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

This was reported by Frank via the ceph-users mail list: https://lists.ceph.io/hyperkitty/list/ceph-users@ceph.io/thread/SYKMCUJOFZVIQ2OZGTFN7KOI4CEXKRSC/

"The problem occurs in newer python versions when using the 
shutil.copy function. There is also a function shutil.copy2 for 
which the problem does not show up. Copy2 behaves a bit like "cp -
p" while copy is like "cp". The only code difference (linux)
between these 2 functions is that copy calls copyfile+copymode
while copy2 calls copyfile+copystat. For now we asked our users to
use copy2 to avoid the issue." 

Files

strace.Python_2.7.5 (70.4 KB) strace.Python_2.7.5 Frank Schilder, 12/01/2023 01:05 PM
strace.Python_3.8.2 (120 KB) strace.Python_3.8.2 Frank Schilder, 12/01/2023 01:05 PM
Actions

Also available in: Atom PDF