]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
init-rbdmap: Rewrite to use logger + clean-up 6528/head
authorBoris Ranto <branto@redhat.com>
Fri, 23 Oct 2015 13:31:27 +0000 (15:31 +0200)
committerAbhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Tue, 10 Nov 2015 17:36:21 +0000 (23:06 +0530)
commit2052187929e059a25f6a3baf67329f7ce0bf6d8a
treef1211358739cc38915eeb32a20e3a11a25ec7887
parentf972f38445bc7a6efe122a5f9fc2ba7658625e26
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>
(cherry picked from commit c567341e98fffbe39177f951511a7698f88abf5f)
src/init-rbdmap