Project

General

Profile

Actions

Bug #24897

closed

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

Added by yuanli zhu almost 6 years ago. Updated almost 6 years ago.

Status:
Rejected
Priority:
Urgent
Assignee:
-
Category:
Correctness/Safety
Target version:
% 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)
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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

Actions

Also available in: Atom PDF