Whamcloud - gitweb
LU-10337 mdt: Allow open of open orphans 05/30405/23
authorPatrick Farrell <paf@cray.com>
Thu, 8 Mar 2018 11:47:56 +0000 (05:47 -0600)
committerOleg Drokin <green@whamcloud.com>
Mon, 29 Oct 2018 16:00:36 +0000 (16:00 +0000)
commit27c51b5623123ba3208569ecdef343f61646c7e4
treed468fcf3566198ec89f8abcd424a5befd01a3252
parent3c8a48644f04a6cdb81c602a1d199320e9f68aa7
LU-10337 mdt: Allow open of open orphans

Standard open by handle behavior allows opening of open
unlinked files files.  This currently only works in Lustre
if the file is already open on the same node, which is
insufficient.

When an open file is unlinked, we make it an orphan.
These files can be recognized by checking their open count
(mod_count).  It's enough to just make opening these files
possible, because the client cannot look them up to do an
open except when using a file handle.

Cray-bug-id: LUS-2626
Change-Id: Idd7898cefcf60b28c682e578774411e476216c9e
Signed-off-by: Patrick Farrell <paf@cray.com>
Reviewed-on: https://review.whamcloud.com/30405
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alexey Lyashkov <c17817@cray.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Andrew Perepechko <c17827@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_object.c
lustre/tests/check_fhandle_syscalls.c
lustre/tests/sanity.sh
lustre/tests/sanityn.sh