[LU-11033] truncate to DoM-file results in two RPCs Created: 18/May/18 Updated: 26/Nov/21 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.16.0 |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Alex Zhuravlev | Assignee: | Mikhail Pershin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | DoM2 | ||
| Issue Links: |
|
||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Comments |
| Comment by Alex Zhuravlev [ 18/May/18 ] |
|
this is not good on its own - two sync RPCs instead of one. but also breaks optimisation in osd_punch() as we can't skip truncate to existing i_size. |
| Comment by Mikhail Pershin [ 24/May/18 ] |
|
if truncate size is in DoM range then SETATTR is not needed because there will be truncate. I think it is safe to check that on client and decide to send setattr or not |
| Comment by Joseph Gmitter (Inactive) [ 07/Aug/19 ] |
|
This ticket remains open to improve the truncation already implemented. |