• Stas Sergeev's avatar
    selftests: add OFD lock tests · bfe2e8f5
    Stas Sergeev authored
    Test the basic locking stuff on 2 fds: multiple read locks,
    conflicts between read and write locks, use of len==0 for queries.
    Also tests for F_UNLCK F_OFD_GETLK extension.
    
    [ jlayton: fix unlink() pathname in selftest ]
    
    Cc: Jeff Layton <jlayton@kernel.org>
    Cc: Chuck Lever <chuck.lever@oracle.com>
    Cc: Alexander Viro <viro@zeniv.linux.org.uk>
    Cc: Christian Brauner <brauner@kernel.org>
    Cc: linux-fsdevel@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Cc: Shuah Khan <shuah@kernel.org>
    Cc: linux-kselftest@vger.kernel.org
    Cc: linux-api@vger.kernel.org
    Signed-off-by: default avatarStas Sergeev <stsp2@yandex.ru>
    Signed-off-by: default avatarJeff Layton <jlayton@kernel.org>
    bfe2e8f5
ofdlocks.c 3 KB