Whamcloud - gitweb
LU-2886 mdd: create local files using local_storage lib
authorMikhail Pershin <tappro@whamcloud.com>
Tue, 27 Nov 2012 14:00:01 +0000 (18:00 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 13 Apr 2013 03:51:48 +0000 (23:51 -0400)
commit29adfde10ff2575264fb83f620d194a0bc43fba7
tree03332d6e52380180cec7c37c5927bf7a584c1437
parent00243fccc1977e4dee8041f4c0f9854373598dc2
LU-2886 mdd: create local files using local_storage lib

Switch MDD to use local_storage library to create local objects with
generated or pre-defined FIDs. That unifies the way how local objects
are created on both OST/MDT and avoid layering violation with calling
MDD from OSD like md_local_object library does.

two other fixes are included:
- remove DECLARE_LLOG_WRITE/REWRITE and mdd_declare_llog_record()
  which was a temporary solution to declare llog changes and was
  fixed with llog-over-osd implementation
- add .lustre seq range into FLD in fld_insert_special_entries() as
  all other special ranges.

Signed-off-by: Mikhail Pershin <mike.pershin@intel.com>
Change-Id: I7f8452e0a6d9abbe6cd1960a8ea71cbae4abe753
Reviewed-on: http://review.whamcloud.com/4682
Tested-by: Hudson
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
14 files changed:
lustre/include/dt_object.h
lustre/include/lustre_fid.h
lustre/include/md_object.h
lustre/mdd/mdd_device.c
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_lfsck.c
lustre/mdd/mdd_orphans.c
lustre/obdclass/dt_object.c
lustre/obdclass/local_storage.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_io.c
lustre/osd-ldiskfs/osd_scrub.c
lustre/osd-zfs/osd_oi.c