Whamcloud - gitweb
LU-1302 llog: introduce llog_open
authorMikhail Pershin <tappro@whamcloud.com>
Tue, 21 Aug 2012 17:44:55 +0000 (21:44 +0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 10 Sep 2012 02:48:03 +0000 (22:48 -0400)
commit801469af8c31afad1bd8aaa23b01bfc42abe45eb
tree5f53ff981b02fb2f8f6182240c6ec958c37b6320
parentf52ece3201af131a7bb8a7b2766d3f0a98c00fca
LU-1302 llog: introduce llog_open

- llog_open is pair to llog_close. Llog handle is allocated inside
  llog_open while llog_free_handle is part of llog_close. Each llog
  even non-existent should be opened and closed.
- llog_exist() is added to API to check if llog file exists
- llog_cat_put is renamed to llog_cat_close with cleaning up empty
  llogs like llog_obd_origin_cleanup did.

Signed-off-by: Mikhail Pershin <tappro@whamcloud.com>
Change-Id: I6360b4c089ec1dde50289563447eefd3dfa4365a
Reviewed-on: http://review.whamcloud.com/3740
Tested-by: Hudson
Reviewed-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
18 files changed:
lustre/include/lustre_log.h
lustre/include/lustre_net.h
lustre/ldlm/ldlm_lockd.c
lustre/mdc/mdc_request.c
lustre/mdt/mdt_handler.c
lustre/mgc/mgc_request.c
lustre/mgs/mgs_handler.c
lustre/mgs/mgs_llog.c
lustre/obdclass/llog.c
lustre/obdclass/llog_cat.c
lustre/obdclass/llog_ioctl.c
lustre/obdclass/llog_lvfs.c
lustre/obdclass/llog_obd.c
lustre/obdclass/llog_test.c
lustre/obdclass/obd_config.c
lustre/ptlrpc/llog_client.c
lustre/ptlrpc/llog_server.c
lustre/ptlrpc/sec_config.c