Whamcloud - gitweb
LU-2430 mdd: add lfs mv to migrate inode. 62/6662/46
authorwang di <di.wang@intel.com>
Sun, 10 Aug 2014 09:58:24 +0000 (02:58 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 28 Feb 2014 04:02:37 +0000 (04:02 +0000)
commit0209add4a5099817111c8576afe930d1e2daef03
treef2e8b30b59b7072af71217452a38c907b7fea057
parent8abb5a19e4375f194f3f7d304ad46ec7120e733f
LU-2430 mdd: add lfs mv to migrate inode.

Add lfs mv to migrate the individual inode from one MDT to
another MDT, and this function will only migrate inode layout
on MDT but not touch data object on OST.

lfs mv -M 1 /mnt/lustre/test1 #move test1 to MDT1.

The directory will be migrated from top to the bottom, i.e.
migrating parent first, then migrating the child.

Add migrate into sanity 17n to check on-disk format.

Add sanity 230(c,d,e,f) sanityn 80 to for migration.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: Ib4456a1db8909bd96260c67fff48922081948dcd
Reviewed-on: http://review.whamcloud.com/6662
Tested-by: Jenkins
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
75 files changed:
lustre/fid/fid_store.c
lustre/include/dt_object.h
lustre/include/lclient.h
lustre/include/liblustre.h
lustre/include/linux/lustre_intent.h
lustre/include/lu_object.h
lustre/include/lustre/lustre_idl.h
lustre/include/lustre/lustre_user.h
lustre/include/lustre/lustreapi.h
lustre/include/lustre_fid.h
lustre/include/lustre_linkea.h
lustre/include/lustre_lmv.h
lustre/include/lustre_mdc.h
lustre/include/md_object.h
lustre/include/obd.h
lustre/include/obd_support.h
lustre/lfsck/lfsck_bookmark.c
lustre/lfsck/lfsck_layout.c
lustre/lfsck/lfsck_lib.c
lustre/liblustre/file.c
lustre/llite/dir.c
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/namei.c
lustre/llite/rw.c
lustre/llite/statahead.c
lustre/lmv/lmv_intent.c
lustre/lmv/lmv_internal.h
lustre/lmv/lmv_obd.c
lustre/lod/lod_lov.c
lustre/lod/lod_object.c
lustre/mdc/mdc_lib.c
lustre/mdc/mdc_locks.c
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_object.c
lustre/mdt/mdt_capa.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_lib.c
lustre/mdt/mdt_open.c
lustre/mdt/mdt_reint.c
lustre/mgs/mgs_nids.c
lustre/obdclass/linkea.c
lustre/obdclass/llog_osd.c
lustre/obdclass/local_storage.c
lustre/ofd/ofd_fs.c
lustre/ofd/ofd_obd.c
lustre/ofd/ofd_objects.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_io.c
lustre/osd-ldiskfs/osd_quota.c
lustre/osd-zfs/osd_io.c
lustre/osp/osp_dev.c
lustre/osp/osp_internal.h
lustre/osp/osp_md_object.c
lustre/osp/osp_object.c
lustre/osp/osp_precreate.c
lustre/osp/osp_trans.c
lustre/ptlrpc/wiretest.c
lustre/target/out_handler.c
lustre/target/tgt_internal.h
lustre/target/tgt_lastrcvd.c
lustre/tests/Makefile.am
lustre/tests/racer/dir_migrate.sh [new file with mode: 0755]
lustre/tests/racer/dir_remote.sh
lustre/tests/racer/racer.sh
lustre/tests/recovery-small.sh
lustre/tests/sanity.sh
lustre/tests/sanityn.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi.c
lustre/utils/wirecheck.c
lustre/utils/wiretest.c