Actions
Bug #10737
closedceph-fuse permits layout changes to files with data
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
other
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
With two data pools having IDs 3 and 4:
touch file1 ; setfattr -n ceph.file.layout.pool -v 3 file1 ; echo WRITE_ONE >> file1 ; hexdump -C file1 ; setfattr -n ceph.file.layout.pool -v 4 file1 ; echo WRITE_TWO >> file1 ; hexdump -C file1 00000000 57 52 49 54 45 5f 4f 4e 45 0a |WRITE_ONE.| 0000000a 00000000 00 00 00 00 00 00 00 00 00 00 57 52 49 54 45 5f |..........WRITE_| 00000010 54 57 4f 0a |TWO.| 00000014
The second setfattr should fail. Instead, it succeeds, and subsequently reading the file after doing another write shows zeros where WRITE_ONE should be (in rados there are now two data objects for offset 0 in the file, one in each pool).
Actions