Whamcloud - gitweb
LU-2017 mdc: add layout swap between 2 objects
authorJinshan Xiong <jinshan.xiong@intel.com>
Fri, 1 Feb 2013 18:33:09 +0000 (10:33 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 6 Feb 2013 21:11:16 +0000 (16:11 -0500)
commit4af3ab1945fd1ac6cc9870d72734c37a000a0999
tree64b51f87c4630f754724c127767de2b18e966e15
parentc34e6323a3804477dca7441901e1bf75de4b8c3a
LU-2017 mdc: add layout swap between 2 objects

This patch adds the client and MDT code to swap layouts
between 2 files:
- a lfs command
- a llapi call, based on a new ioctl
- the mdc/mdt codes for the ioctl (with layout locking)

Signed-off-by: JC Lafoucriere <jacques-charles.lafoucriere@cea.fr>
Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I7e710a1ab3ca38e8b26582e49d08e9943aa445cd
Reviewed-on: http://review.whamcloud.com/4507
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
37 files changed:
lustre/contrib/wireshark/packet-lustre.c
lustre/doc/lfs.1
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_lib.h
lustre/include/lustre_req_layout.h
lustre/include/obd_support.h
lustre/llite/dir.c
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/lproc_llite.c
lustre/llite/vvp_io.c
lustre/llite/vvp_object.c
lustre/lov/lov_object.c
lustre/mdc/mdc_internal.h
lustre/mdc/mdc_lib.c
lustre/mdc/mdc_reint.c
lustre/mdc/mdc_request.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_mds.c
lustre/obdclass/cl_io.c
lustre/obdclass/lu_object.c
lustre/ptlrpc/layout.c
lustre/ptlrpc/lproc_ptlrpc.c
lustre/ptlrpc/pack_generic.c
lustre/ptlrpc/wiretest.c
lustre/tests/racer/file_swap.sh [new file with mode: 0755]
lustre/tests/sanity.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi.c
lustre/utils/req-layout.c
lustre/utils/wirecheck.c
lustre/utils/wiretest.c