[PATCH] rbd: fix bug in rbd_dev_id_put()

2012-10-11 Thread Alex Elder
In rbd_dev_id_put(), there's a loop that's intended to determine the maximum device id in use. But it isn't doing that at all, the effect of how it's written is to simply use the just-put id number, which ignores whole purpose of this function. Fix the bug. Signed-off-by: Alex Elder

[PATCH 0/2] rbd: separating mapping info from rbd_device

2012-10-11 Thread Alex Elder
The rbd device structure has up to now contained information about the rbd image (and possibly snapshot id) that backs it as well as the device interface it represents in Linux when it is mapped. In order to add layering support we're going to want to separate the mapping information from the

[PATCH 2/2] rbd: move more stuff into mapping

2012-10-11 Thread Alex Elder
This moves a bunch of other fields out of the rbd device structure and into the mapping structure. Signed-off-by: Alex Elder el...@inktank.com --- drivers/block/rbd.c | 57 +++ 1 file changed, 30 insertions(+), 27 deletions(-) diff --git

osd crash in ReplicatedPG::add_object_context_to_pg_stat(ReplicatedPG::ObjectContext*, pg_stat_t*)

2012-10-11 Thread Yann Dupont
Hello everybody. I'm currently having problem with 1 of my OSD, crashing with this trace : ceph version 0.52 (commit:e48859474c4944d4ff201ddc9f5fd400e8898173) 1: /usr/bin/ceph-osd() [0x737879] 2: (()+0xf030) [0x7f43f0af0030] 3:

Re: error: could not read lock status

2012-10-11 Thread Pradeep S
hi, thanks for the reply. As per your suggestion i have modified the yaml by including,check-locks: false and also added as per suggestion in the ceph-commit thread. queue_host:pradeep(host) queue_port:4000(as mentioned during the configuration of webui) thanks that the lock status error is