Actions
Bug #19890
closedsrc/test/pybind/test_cephfs.py fails
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
kraken
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
src/pybind/cephfs/cephfs.pyx
def open(self, path, flags, mode=0): self.require_state("mounted") path = cstr(path, 'path') if not isinstance(mode, int): raise TypeError('mode must be an int') if isinstance(flags, str): cephfs_flags = 0 if flags == '': cephfs_flags = os.O_RDONLY else: for c in flags: if c == 'r': cephfs_flags |= os.O_RDONLY elif c == 'w': cephfs_flags |= os.O_WRONLY | os.O_TRUNC | os.O_CREAT elif c == '+': cephfs_flags |= os.O_RDWR else: raise OperationNotSupported( "open flags doesn't support %s" % c)
(O_RDWR | O_WRONLY) is not a vaild open flag
Updated by Zheng Yan almost 7 years ago
- Status changed from New to Fix Under Review
Updated by Patrick Donnelly almost 7 years ago
- Has duplicate Bug #19896: client: test failure for O_RDWR file open added
Updated by John Spray almost 7 years ago
- Status changed from Fix Under Review to Resolved
Updated by Nathan Cutler almost 7 years ago
- Status changed from Resolved to Pending Backport
- Backport set to kraken
Updated by Nathan Cutler almost 7 years ago
- Copied to Backport #20500: kraken: src/test/pybind/test_cephfs.py fails added
Updated by Nathan Cutler almost 7 years ago
- Status changed from Pending Backport to Resolved
Actions