[LU-10986]  make lfs project tolerant errors Created: 02/May/18  Updated: 02/Mar/19  Resolved: 18/Jul/18

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

Type: Bug Priority: Minor
Reporter: Wang Shilong (Inactive) Assignee: Wang Shilong (Inactive)
Resolution: Fixed Votes: 0
Labels: patch

Issue Links:
Related
is related to LU-11689 lfs project should proceed all dirs i... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

1. If a pipe file exist in a directory, lfs project command stops there.

Create a pipe file.  
[root@s17 lustre]# mkfifo tmp/pipe
Set project ID.  
[root@s17 lustre]# lfs project -srp 500 tmp
<This command does not return...>

2.If a symbolic link with missing target exists, lfs project command returns error and does not process remaining entries.

Create a symbolic file and remove target.  
[root@s17 tmp]# ls -l
total 0
-rw-r--r-- 1 root root  0 Apr 26 13:47 aaa
-rw-r--r-- 1 root root  0 Apr 26 13:47 bbb
lrwxrwxrwx 1 root root 18 Apr 26 13:50 ccc -> ../test1/4MB_file1
-rw-r--r-- 1 root root  0 Apr 26 13:52 ddd
[root@s17 tmp]# rm -f ../test1/4MB_file1
[root@s17 tmp]# cd ..
[root@s17 lustre]# lfs project -r tmp/
  500 P tmp//ddd
  500 P tmp//bbb
lfs: failed to open 'tmp//ccc': No such file or directory
lfs: failed to handle dir 'tmp/': No such file or directory
[root@s17 lustre]#
Information about "aaa" is not displayed.  


 Comments   
Comment by Gerrit Updater [ 02/May/18 ]

Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/32243
Subject: LU-10986 lfs: make lfs project tolerant errors
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 8aba9b3e2657f1669fd12529c4f752e511b7ce86

Comment by Gerrit Updater [ 18/Jul/18 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32243/
Subject: LU-10986 lfs: make lfs project tolerant errors
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: d189024bd3065c69c51ba90f6228c3ea28419dd0

Comment by Peter Jones [ 18/Jul/18 ]

Landed for 2.12

Comment by Gerrit Updater [ 24/Jan/19 ]

Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/34100
Subject: LU-10986 lfs: make lfs project tolerant errors
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: 312becf8afa3d709f38f8e7ae8836b57622fac23

Comment by Gerrit Updater [ 24/Jan/19 ]

Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/34102
Subject: LU-10986 lfs: make lfs project tolerant errors
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: db6c606005337ed71c033e4b04ebe731e93b850c

Comment by Gerrit Updater [ 02/Mar/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34102/
Subject: LU-10986 lfs: make lfs project tolerant errors
Project: fs/lustre-release
Branch: b2_10
Current Patch Set:
Commit: ffa453b2aa1ad7659b186bd8f729035f7060f075

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