[LU-5878] lfs migrate sends file to stdout Created: 06/Nov/14  Updated: 04/Dec/14  Resolved: 04/Dec/14

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.7.0
Fix Version/s: Lustre 2.7.0

Type: Bug Priority: Critical
Reporter: Frank Zago (Inactive) Assignee: Jian Yu
Resolution: Fixed Votes: 0
Labels: MB, patch

Issue Links:
Related
is related to LU-4665 utils: lfs setstripe to specify OSTs Resolved
Severity: 3
Rank (Obsolete): 16439

 Description   

The following test will not migrate the files, but sends them to stdout (eg. the display).

./llmount.sh
cd /mnt/lustre
cp /bin/ls .
 ~/lustre-cleanup/lustre/utils/lfs migrate -o 0 ls

The problem is in llapi_file_open_param(), where rc is set to 1 by llapi_search_ost(), and then never reset.

Patch will follow.

(I can't believe that didn't break any test!)



 Comments   
Comment by Frank Zago (Inactive) [ 06/Nov/14 ]

http://review.whamcloud.com/12601

Comment by Andreas Dilger [ 06/Nov/14 ]

The llapi_file_open_param() function was added in patch http://review.whamcloud.com/9383

Comment by Jodi Levi (Inactive) [ 06/Nov/14 ]

Yu Jian,
Would you be able to keep an eye on this patch?
Thank you!

Comment by Gerrit Updater [ 04/Dec/14 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12601/
Subject: LU-5878 lfs: migrate file to its proper destination
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 01bc529ccffdb21d33ab6a36ed64fe96ef9ac55b

Comment by Jian Yu [ 04/Dec/14 ]

Patch was landed on master branch.

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