[LU-13023] PCC: The size of the PCC copy is not truncated to 0 when attach Created: 27/Nov/19 Updated: 04/Dec/19 Resolved: 03/Dec/19 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.13.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Qian Yingjin | Assignee: | Qian Yingjin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | PCC | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
In the Linux kernel, it seems that dentry_open() with O_TRUNC flag (i.e. Ext4) does not take effect to truncate the size of the PCC copy to zero. This may result in incorrect size for PCC copy in the following test cases:
This problem is solved by reset the file size of the PCC copy to 0 after open the PCC copy during attach. |
| Comments |
| Comment by Gerrit Updater [ 27/Nov/19 ] |
|
Yingjin Qian (qian@ddn.com) uploaded a new patch: https://review.whamcloud.com/36884 |
| Comment by Gerrit Updater [ 03/Dec/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36884/ |
| Comment by Peter Jones [ 03/Dec/19 ] |
|
Landed for 2.13 |