Actions
Feature #54280
closedsupport truncation sequences in sparse reads
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Tags:
backport_processed
Backport:
quincy
Reviewed:
Description
I've been working on sparse read support in the kclient, and got something working today, only to notice that after truncating a file, I would often get back -EINVAL when trying to read it. The problem seems to be this in PrimaryLogPG::do_sparse_read() :
if (op.extent.truncate_seq) { dout(0) << "sparse_read does not support truncation sequence " << dendl; return -EINVAL; }
Would it be possible to support sparse reads against objects that have a non-zero truncate_seq?
Updated by Jeff Layton about 2 years ago
Neha mentioned taking a look at the history, so I did a bit of git archeology today. The limitation dates back to the original merge of sparse_read support:
commit 6f38165dc5df8a2f29e021ad1b16facf55120a9b Author: Yehuda Sadeh <yehuda@inktank.com> Date: Thu Aug 5 15:58:55 2010 -0700 osd: implement sparse_read
Yehuda, do you happen to remember why this is a problem for sparse reads, and (possibly) how to fix it?
Updated by Neha Ojha about 2 years ago
- Status changed from New to Pending Backport
- Backport set to quincy
- Pull request ID set to 45103
As discussed with Greg on IRC.
Updated by Backport Bot about 2 years ago
- Copied to Backport #54614: quincy: support truncation sequences in sparse reads added
Updated by Radoslaw Zarzynski about 1 year ago
- Status changed from Pending Backport to Resolved
Actions