]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
init-rbdmap: Rewrite to use logger + clean-up
authorBoris Ranto <branto@redhat.com>
Fri, 23 Oct 2015 13:31:27 +0000 (15:31 +0200)
committerBoris Ranto <branto@redhat.com>
Mon, 2 Nov 2015 16:04:28 +0000 (17:04 +0100)
commite382c677f394c0a0d3d7426edff1db7ca4c09b08
tree663e75adf3c2d34f7c97ea052a3b60b72759a026
parent2d567283df3fcad5ae6c59205ec92ca2a7633efb
init-rbdmap: Rewrite to use logger + clean-up

This patch rewrites the init-rbdmap init script so that it uses logger
instead of the log_* functions. The patch also fixes various smaller
bugs like:
* MAP_RV was undefined if mapping already existed
* UMNT_RV and UMAP_RV were almost always empty (if they succeeded) ->
  removed them
* use of continue instead RET_OP in various places (RET_OP was not being
  checked after the switch to logger messages)
* removed use of DESC (used only twice and only one occurrence actually
  made sense)

Signed-off-by: Boris Ranto <branto@redhat.com>
src/init-rbdmap