Whamcloud - gitweb
EX-8257 lipe: Lamigo: set nocompr flag when replicate
authorAlexandre Ioffe <aioffe@ddn.com>
Tue, 16 Apr 2024 07:54:22 +0000 (00:54 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 19 Jun 2024 05:37:34 +0000 (05:37 +0000)
commit186d064acdceeca498b9d52d3bfbf1f68aa2bdcb
tree6172e128f9575dd61d4e05c8ba06000afbd19077
parentb1b98785a0d4cc636bff5fac431e96b7f292842e
EX-8257 lipe: Lamigo: set nocompr flag when replicate

- use nocompr flag in lfs mirror extend when a sourced replicated
  file has this flag set
- collect nocompr and prefer flags in a single bit mask.
  This bit mask is set in striping_is_in_sync_*(). Then this bit
  mask is used to generate specific lfs command
- fixed EX-9565: turn on/off ALR accounting only for
  lfs mirror/resync commands
- for better coding replace amigo_resync_type by
  lfs_cmd_type to address wider range of lfs commands:
  extend/resync/setflag/check agent
- move check agent code into callback function
- add hot-pools tests to verify nocompr and prefer flags are set
  when lamigo mirrors or makes initial rescan

Test-Parameters: trivial testlist=hot-pools
Signed-off-by: Alexandre Ioffe <aioffe@ddn.com>
Change-Id: I8e0cec04f5263761ddd201c7c03ec390e050eef4
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/54813
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lipe/src/lamigo.c
lustre/tests/hot-pools.sh
lustre/tests/test-framework.sh