Alex Elder 30d60ba2f2 rbd: simplify rbd_dev_v1_probe()
An rbd_dev structure's fields are all zero-filled for an initial
probe, so there's no need to explicitly zero the parent_spec
and parent_overlap fields in rbd_dev_v1_probe().  Removing these
assignments makes rbd_dev_v1_probe() *almost* trivial.

Move the dout() message that announces discovery of an image into
rbd_dev_image_probe(), generalize to support images in either format
and only show it if an image is fully discovered.

This highlights that are some unnecessary cleanups in the error
path for rbd_dev_v1_probe(), so they can be removed.

Now rbd_dev_v1_probe() *is* a trivial wrapper function.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-05-08 17:00:41 -05:00
..
2013-04-05 19:29:36 -07:00
2013-04-09 18:03:25 +01:00
2013-05-08 17:00:41 -05:00
2013-02-21 15:27:22 -08:00
2013-04-05 21:02:17 +08:00
2013-02-27 19:10:15 -08:00
2013-02-27 19:10:15 -08:00
2013-03-01 13:39:00 -08:00
2013-03-27 09:25:11 -07:00
2013-04-19 17:57:48 -04:00
2013-02-27 19:10:18 -08:00
2013-02-26 09:34:29 -08:00
2013-04-07 15:11:27 +03:00
2013-02-27 19:10:18 -08:00
2013-04-05 10:04:41 -07:00
2013-04-26 07:59:23 -07:00
2013-02-27 19:10:19 -08:00
2013-04-10 15:57:33 -07:00
2013-02-22 23:31:31 -05:00
2013-02-21 13:57:13 -08:00