Project

General

Profile

Actions

Feature #54280

closed

support truncation sequences in sparse reads

Added by Jeff Layton about 2 years ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
backport_processed
Backport:
quincy
Reviewed:
Affected Versions:
Component(RADOS):
Pull request ID:

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?


Related issues 1 (0 open1 closed)

Copied to RADOS - Backport #54614: quincy: support truncation sequences in sparse readsResolvedJeff LaytonActions
Actions #1

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?

Actions #2

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.

Actions #3

Updated by Backport Bot about 2 years ago

  • Copied to Backport #54614: quincy: support truncation sequences in sparse reads added
Actions #4

Updated by Backport Bot over 1 year ago

  • Tags set to backport_processed
Actions #5

Updated by Radoslaw Zarzynski about 1 year ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF