diff options
author | Ilya Dryomov <ilya.dryomov@inktank.com> | 2014-01-27 16:40:18 +0100 |
---|---|---|
committer | Ilya Dryomov <ilya.dryomov@inktank.com> | 2014-01-27 22:57:28 +0100 |
commit | 4295f2217a5aa8ef2738e3a368db3c1ceab41212 (patch) | |
tree | 557b4efd8558bfa71bae87413d0f4d6f0ba0511a /net/ceph/debugfs.c | |
parent | libceph: rename MAX_OBJ_NAME_SIZE to CEPH_MAX_OID_NAME_LEN (diff) | |
download | linux-4295f2217a5aa8ef2738e3a368db3c1ceab41212.tar.xz linux-4295f2217a5aa8ef2738e3a368db3c1ceab41212.zip |
libceph: introduce and start using oid abstraction
In preparation for tiering support, which would require having two
(base and target) object names for each osd request and also copying
those names around, introduce struct ceph_object_id (oid) and a couple
helpers to facilitate those copies and encapsulate the fact that object
name is not necessarily a NUL-terminated string.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'net/ceph/debugfs.c')
-rw-r--r-- | net/ceph/debugfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ceph/debugfs.c b/net/ceph/debugfs.c index 83661cdc0766..1f8562706393 100644 --- a/net/ceph/debugfs.c +++ b/net/ceph/debugfs.c @@ -132,7 +132,8 @@ static int osdc_show(struct seq_file *s, void *pp) req->r_osd ? req->r_osd->o_osd : -1, req->r_pgid.pool, req->r_pgid.seed); - seq_printf(s, "%.*s", req->r_oid_len, req->r_oid); + seq_printf(s, "%.*s", req->r_oid.name_len, + req->r_oid.name); if (req->r_reassert_version.epoch) seq_printf(s, "\t%u'%llu", |