[LU-10337] Open by handle does not work with unlinked files from multiple nodes Created: 06/Dec/17  Updated: 14/Dec/18  Resolved: 29/Oct/18

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

Type: Bug Priority: Minor
Reporter: Patrick Farrell (Inactive) Assignee: Patrick Farrell (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-11777 interop: sanityn test 102 fails with ... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

When doing open by handle, a requirement is that it be possible to open already open unlinked files. This is important for the sort of userspace NFS server/ i/o forwarder (DVS) uses that file handles are intended for.

This works from one node in Lustre, but not across multiple nodes. This looks fixable - It's possible to open an orphaned file, it seems to be as simple as using the code from mdd_close in mdd_open, particularly rewriting the "EEXIST check" (mdd_is_dead_obj) to check if the object is an orphan and then open it anyway.

Patch forthcoming.



 Comments   
Comment by Gerrit Updater [ 06/Dec/17 ]

Patrick Farrell (paf@cray.com) uploaded a new patch: https://review.whamcloud.com/30404
Subject: LU-10337: Allow open of open orphans
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: dc9defed32fd321b08b96c9a5956001371928b21

Comment by Gerrit Updater [ 06/Dec/17 ]

Patrick Farrell (paf@cray.com) uploaded a new patch: https://review.whamcloud.com/30405
Subject: LU-10337: Allow open of open orphans
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 2966421d86ea8442b38fee892607d3cfb606b262

Comment by Gerrit Updater [ 29/Oct/18 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/30405/
Subject: LU-10337 mdt: Allow open of open orphans
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 27c51b5623123ba3208569ecdef343f61646c7e4

Comment by Peter Jones [ 29/Oct/18 ]

Landed for 2.12

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