Whamcloud - gitweb
LU-3531 mdt: delete striped directory 45/7445/42
authorwang di <di.wang@intel.com>
Fri, 23 May 2014 08:44:33 +0000 (01:44 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 25 Feb 2014 00:18:07 +0000 (00:18 +0000)
commit370de927fc58fd3910fc527a00b5ff96da4a4278
tree40e56a9d36e9b44f25bb10156dad72c8ecd64fbb
parente1a87d94e89c175ac8a432be5d6eec138e8915fc
LU-3531 mdt: delete striped directory

Add delete striped directory, it includes

1. enable sync log between MDTs, so slave objects will
be delete by unlink log, which is similar as deleting ost
object.

2. retrieve layout information of striped directory on MDT,
then lock all of the slave objects before unlink.

3. remove a few unnecessary cfs_size_round, because update_size
and update_buf_size already do size_around inside.

4. add sanity 300 for striped dir test

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: Ib461156bbff9e416ac9d2500a0b9491427542340
Reviewed-on: http://review.whamcloud.com/7445
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
25 files changed:
lustre/include/dt_object.h
lustre/include/lustre_dlm.h
lustre/include/lustre_fid.h
lustre/include/lustre_log.h
lustre/include/md_object.h
lustre/llite/dir.c
lustre/lmv/lmv_intent.c
lustre/lmv/lmv_obd.c
lustre/lod/lod_object.c
lustre/mdd/mdd_object.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_reint.c
lustre/obdclass/llog_ioctl.c
lustre/obdclass/llog_osd.c
lustre/osd-ldiskfs/osd_scrub.c
lustre/osp/osp_dev.c
lustre/osp/osp_md_object.c
lustre/osp/osp_sync.c
lustre/target/out_handler.c
lustre/target/out_lib.c
lustre/tests/racer/dir_remote.sh
lustre/tests/sanity.sh
lustre/tests/sanityn.sh
lustre/tests/test-framework.sh