]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: add image access/last modified timestamps
authorJulien Collet <julien.collet@cern.ch>
Tue, 20 Feb 2018 09:14:00 +0000 (10:14 +0100)
committerJason Dillaman <dillaman@redhat.com>
Tue, 21 Aug 2018 20:17:17 +0000 (16:17 -0400)
commit809c5430c2929ea1b33d3d1ab7c0023fbb2ce7a5
tree7d11af46ef75621e0674697c479e31f4b7f15888
parent9cfc3a7fc0cae1eb8a77921a91a63f4791fc723c
librbd: add image access/last modified timestamps

Add access and modify timestamps and associated tests
to RBD images.

Access (resp. modify) timestamps are updated on
read (resp. write) operations. A configurable throttling
mechanism is implemented (default to 60s).

Signed-off-by: Julien Collet <julien.collet@cern.ch>
21 files changed:
src/cls/rbd/cls_rbd.cc
src/cls/rbd/cls_rbd_client.cc
src/cls/rbd/cls_rbd_client.h
src/common/options.cc
src/include/rbd/librbd.h
src/include/rbd/librbd.hpp
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/librbd/image/OpenRequest.cc
src/librbd/image/OpenRequest.h
src/librbd/io/ImageRequest.cc
src/librbd/librbd.cc
src/pybind/rbd/rbd.pyx
src/test/cli-integration/rbd/formatted-output.t
src/test/cls_rbd/test_cls_rbd.cc
src/test/librbd/io/test_mock_ImageRequest.cc
src/test/librbd/mock/MockImageCtx.h
src/test/librbd/test_librbd.cc
src/test/pybind/test_rbd.py
src/tools/rbd/action/Info.cc
src/tracing/librbd.tp