Whamcloud - gitweb
LU-10177 lfs: support DOM-to-OST migration 79/32979/8
authorMikhail Pershin <mpershin@whamcloud.com>
Fri, 10 Aug 2018 16:20:52 +0000 (19:20 +0300)
committerOleg Drokin <green@whamcloud.com>
Fri, 5 Oct 2018 22:25:51 +0000 (22:25 +0000)
commitf651470c13f83bc11237e12f6fdce9cdbf96561b
treed002e7f5279b06bf263839888674e883b51affee
parent93d20d171c20491a96e5e85d7442a002f300619d
LU-10177 lfs: support DOM-to-OST migration

Migraton of DoM file to an OST file is possible with
'lfs migrate' command in general but would cause space loss
on MDS, because DOM local inode blocks are not deleted.
Patch doesn the following:
- adds truncate for local MDS inode after migration.
- check and prevent migration from non-DOM to DOM file,
  that will be done later with mirroring.
- prohibit 'lfs swap_layouts' command if either file has
  DOM component, 'lfs migrate' should be used instead

Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: I1ce7b09eefab5e13f81af30c007475c927bd2874
Reviewed-on: https://review.whamcloud.com/32979
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdd/mdd_object.c
lustre/tests/sanity.sh