• Namjae Jeon's avatar
    ksmbd: add support for durable handles v1/v2 · c8efcc78
    Namjae Jeon authored
    Durable file handles allow reopening a file preserved on a short
    network outage and transparent client reconnection within a timeout.
    i.e. Durable handles aren't necessarily cleaned up when the opening
    process terminates.
    
    This patch add support for durable handle version 1 and 2.
    
    To prove durable handles work on ksmbd, I have tested this patch with
    the following smbtorture tests:
    
    smb2.durable-open.open-oplock
    smb2.durable-open.open-lease
    smb2.durable-open.reopen1
    smb2.durable-open.reopen1a
    smb2.durable-open.reopen1a-lease
    smb2.durable-open.reopen2
    smb2.durable-open.reopen2a
    smb2.durable-open.reopen2-lease
    smb2.durable-open.reopen2-lease-v2
    smb2.durable-open.reopen3
    smb2.durable-open.reopen4
    smb2.durable-open.delete_on_close2
    smb2.durable-open.file-position
    smb2.durable-open.lease
    smb2.durable-open.alloc-size
    smb2.durable-open.read-only
    smb2.durable-v2-open.create-blob
    smb2.durable-v2-open.open-oplock
    smb2.durable-v2-open.open-lease
    smb2.durable-v2-open.reopen1
    smb2.durable-v2-open.reopen1a
    smb2.durable-v2-open.reopen1a-lease
    smb2.durable-v2-open.reopen2
    smb2.durable-v2-open.reopen2b
    Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
    Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
    c8efcc78
vfs_cache.h 4.8 KB