Project

General

Profile

Bug #24897

client: writes rejected by quota may truncate/zero parts of file

Added by yuanli zhu 8 days ago. Updated 4 days ago.

Status:
New
Priority:
Urgent
Assignee:
-
Category:
Correctness/Safety
Target version:
Start date:
07/13/2018
Due date:
% Done:

0%

Source:
Community (user)
Tags:
Backport:
mimic
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
fs
Component(FS):
Client
Labels (FS):
quotas, task(medium)

Description

I found a BUg as below:

First:setfattr -n ceph.quota.max_bytes -v 5 /nas/cephfs/abc
Second:echo "abc" > /nas/cephfs/abc/test.log
Third:cat /nas/cephfs/abc/test.log

[root@node1 abc]# cat test.log
abc

Next i run the command:echo "abcdefg" > /nas/cephfs/abc/test.log

[root@node1 abc]# echo "abcdefg" > test.log
-bash: echo: write error: Disk quota exceeded

then i found my file data is gone.

[root@node1 abc]# cat test.log

History

#1 Updated by Greg Farnum 4 days ago

  • Project changed from Ceph to fs

#2 Updated by Patrick Donnelly 4 days ago

  • Subject changed from ll_write in Client.cc drop data to client: writes rejected by quota may truncate/zero parts of file
  • Category set to Correctness/Safety
  • Priority changed from Normal to Urgent
  • Target version set to v14.0.0
  • Source set to Community (user)
  • Backport set to mimic
  • Severity changed from 3 - minor to 2 - major
  • Component(FS) Client added
  • Labels (FS) quotas, task(medium) added

Also available in: Atom PDF