]> git.apps.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>
Fri, 23 Oct 2015 13:32:01 +0000 (15:32 +0200)
commitc567341e98fffbe39177f951511a7698f88abf5f
treeb8dedd403f48baf2c1f833d13353ece9caba5f38
parentcfc970f7c6a9a2cb8ad2922d05ac0984e879c425
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