Whamcloud - gitweb
LU-2059 llog: MGC to use OSD API for backup logs 49/5049/19
authorMikhail Pershin <mike.pershin@intel.com>
Sun, 3 Mar 2013 20:06:41 +0000 (00:06 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 23 Jul 2013 05:01:38 +0000 (05:01 +0000)
commit3e38436dc09097429e1ca1fbfa3ef4981e124715
tree70bb6df260cebd1764f20d5687ae2f125e07db1d
parent93a6346f8b73f68cb5bc02a3c826ac0e5b4c236e
LU-2059 llog: MGC to use OSD API for backup logs

MGC uses lvfs API to access local llogs blocking removal of old code

- MGS is converted to use OSD API for local llogs
- llog_is_empty() and llog_backup() are introduced
- initial OSD start initialize run ctxt so llog can use it too
- shrink dcache after initial scrub in osd-ldiskfs to avoid holding
  data of unlinked objects until umount.

Signed-off-by: Mikhail Pershin <mike.pershin@intel.com>
Change-Id: I137e38abb0e93c12406c6610c0922f4294e67290
Reviewed-on: http://review.whamcloud.com/5049
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
13 files changed:
lustre/include/dt_object.h
lustre/include/lustre_log.h
lustre/include/obd.h
lustre/mgc/libmgc.c
lustre/mgc/mgc_request.c
lustre/mgs/mgs_llog.c
lustre/obdclass/llog.c
lustre/obdclass/local_storage.c
lustre/obdclass/local_storage.h
lustre/obdclass/lu_object.c
lustre/obdclass/obd_mount.c
lustre/obdclass/obd_mount_server.c
lustre/osd-ldiskfs/osd_scrub.c