Project

General

Profile

Actions

Bug #11517

closed

Libcephfs: Doesn't check file's open mode when do read/write

Added by Haomai Wang almost 9 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
Target version:
-
% Done:

0%

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

Description

Something like this:

fd = cephfs_open(path, O_WRONLY|O_CREAT, 0)
cephfs.read(fd, buf, 0, 10) // ok, but actually we need to return error

Actions #1

Updated by Greg Farnum almost 9 years ago

  • Priority changed from Normal to High
Actions #2

Updated by Sage Weil almost 9 years ago

  • Project changed from Ceph to CephFS
  • Category deleted (24)
  • Regression set to No
Actions #3

Updated by Sage Weil over 8 years ago

  • Category set to 44
Actions #4

Updated by Greg Farnum over 8 years ago

  • Assignee set to Zheng Yan
Actions #5

Updated by Greg Farnum over 8 years ago

This is done, need to find PR and close!

Actions #6

Updated by Greg Farnum over 8 years ago

Oh, this might not be done for read-only fds. Need to check.

Actions #7

Updated by Zheng Yan over 8 years ago

  • Status changed from New to Fix Under Review
Actions #8

Updated by Greg Farnum over 8 years ago

  • Status changed from Fix Under Review to Resolved
Actions #9

Updated by Greg Farnum almost 8 years ago

  • Component(FS) libcephfs added
Actions

Also available in: Atom PDF