Whamcloud - gitweb
LU-15045 utils: fix lfs_migrate for files with spaces 73/45173/6
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 30 Sep 2021 02:51:51 +0000 (20:51 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 27 Oct 2021 00:38:06 +0000 (00:38 +0000)
commit0549031b991ec0bbf570a41c7d28b8a7fd4b41c3
tree5df8048a6ddd5f0ca76fc0fafb765197289df625
parentd67bd765f67082204094a20373b4e2c476ecfd81
LU-15045 utils: fix lfs_migrate for files with spaces

Fix the lfs_migrate script to properly quote "$OLDNAME" so that
it works for filenames with spaces and other characters in them.

Test-Parameters: trivial
Fixes: 8bedfa377fbd ("LU-11510 lfs: migrate a composite layout file correctly")
Fixes: 128137adfc53 ("LU-13090 utils: fix lfs_migrate -p for file with pool")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ic00f41f3a91ad9dfa491ff57768a3da0c6300c1e
Reviewed-on: https://review.whamcloud.com/45173
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Olaf Faaland-LLNL <faaland1@llnl.gov>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/scripts/lfs_migrate