summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2012-08-02 18:29:46 +0200
committerAlex Elder <elder@inktank.com>2012-10-01 21:30:49 +0200
commit4156d998409be065aa8141b6bd2c6f18be1b21e9 (patch)
treea7ba73b249097f4e836b7582bf0785a477dc162a /fs/ceph
parentrbd: expand rbd_dev_ondisk_valid() checks (diff)
downloadlinux-4156d998409be065aa8141b6bd2c6f18be1b21e9.tar.xz
linux-4156d998409be065aa8141b6bd2c6f18be1b21e9.zip
rbd: separate reading header from decoding it
Right now rbd_read_header() both reads the header object for an rbd image and decodes its contents. It does this repeatedly if needed, in order to ensure a complete and intact header is obtained. Separate this process into two steps--reading of the raw header data (in new function, rbd_dev_v1_header_read()) and separately decoding its contents (in rbd_header_from_disk()). As a result, the latter function no longer requires its allocated_snaps argument. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'fs/ceph')
0 files changed, 0 insertions, 0 deletions