[LU-7727] open with FMODE_EXEC fails with ETXTBSY after a failed FMODE_WRITE open attempt on a read only client Created: 01/Feb/16  Updated: 04/Sep/17  Resolved: 14/Mar/16

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

Type: Bug Priority: Minor
Reporter: Li Dongyang (Inactive) Assignee: WC Triage
Resolution: Fixed Votes: 0
Labels: patch

Issue Links:
Duplicate
duplicates LU-8441 Text file busy error after overwritin... Resolved
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

How to reproduce:

we have a executable file on a read only mounted client:

[root@client mnt]# ls -l /mnt/
total 8
-rwxr-xr-x 1 root root 6439 Feb  1 14:51 test
[root@client mnt]# ./test
Hello World!

Then we try to write to the file, which will fail with EROFS:

[root@client mnt]# echo foo >> ./test
-bash: ./test: Read-only file system

Then run the file again:

[root@client mnt]# ./test
-bash: ./test: Text file busy

Note the executable fails to run across the whole cluster from this point, even on the clients without read only mount option.



 Comments   
Comment by Gerrit Updater [ 01/Feb/16 ]

Li Dongyang (dongyang.li@anu.edu.au) uploaded a new patch: http://review.whamcloud.com/18242
Subject: LU-7727 mdt: fail FMODE_WRITE open if the client is read only
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 0cefc1495a808746c2063081e1ecaec05347fd42

Comment by Gerrit Updater [ 14/Mar/16 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/18242/
Subject: LU-7727 mdt: fail FMODE_WRITE open if the client is read only
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: eb37bd1269b0c4ac182398ea7017a758cc60e30f

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