Project

General

Profile

Actions

Feature #9957

closed

librados: add fadvise op

Added by Sage Weil over 9 years ago. Updated over 9 years ago.

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

0%

Source:
Community (dev)
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Add an fadvise operation to ObjectOperation. Mirror posix_fadvise(2).

Add it right around here: https://github.com/ceph/ceph/blob/master/src/include/rados/librados.hpp#L338

Probably use these hints:

  DONTNEED   don't cache
  RANDOM     don't do readahead
  SEQUENTIAL will read/write more
  WILLNEED   positive indication that we should cache something

but not

? NOREUSE?   this is sort of the same as DONTNEED?

Actions

Also available in: Atom PDF