[LU-10801] argument parsing in lfs_migrate is broken Created: 10/Mar/18  Updated: 29/Oct/18  Resolved: 29/Oct/18

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.11.0
Fix Version/s: Lustre 2.12.0

Type: Bug Priority: Major
Reporter: Andreas Dilger Assignee: Emoly Liu
Resolution: Fixed Votes: 0
Labels: None

Attachments: Text File LU10801_fix_lfs_migrate_argument_parsing.patch    
Issue Links:
Related
is related to LU-11510 preserve PFL/FLR/DoM layout with lfs_... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Since the landing of patch https://review.whamcloud.com/20621 "LU-8235 scripts: pass unrecognized options to lfs migrate" any short options with adjacent arguments, such as -S1M or -E-1 are treated as separate options, like -S -1 -M or -E -1.



 Comments   
Comment by Peter Jones [ 08/Aug/18 ]

Emoly

Is this something that you could help with?

Peter

Comment by Andreas Dilger [ 08/Aug/18 ]

Attached is a prototype patch to fix this issue. It is a bit outdated, and I didn't quite have time to get it working, but I think it is a reasonable approach.

Comment by Emoly Liu [ 09/Aug/18 ]

Andreas, thanks for your patch. I will look into this issue.

Comment by Gerrit Updater [ 10/Aug/18 ]

Emoly Liu (emoly@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/32977
Subject: LU-10801 utils: fix lfs_migrate argument parsing
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: a4c1a6a18013ceafd7fa7d2107eb82e5555069bf

Comment by Gerrit Updater [ 29/Oct/18 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32977/
Subject: LU-10801 utils: fix lfs_migrate argument parsing
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: f4cf8114ac2330a1a22bb37e3789f1635db15f7e

Comment by Peter Jones [ 29/Oct/18 ]

Landed for 2.12

Generated at Sat Feb 10 02:38:18 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.