1
linux/fs/9p
M. Mohan Kumar 1d769cd192 9p: Implement TGETLOCK
Synopsis

    size[4] TGetlock tag[2] fid[4] getlock[n]
    size[4] RGetlock tag[2] getlock[n]

Description

TGetlock is used to test for the existence of byte range posix locks on a file
identified by given fid. The reply contains getlock structure. If the lock could
be placed it returns F_UNLCK in type field of getlock structure.  Otherwise it
returns the details of the conflicting locks in the getlock structure

    getlock structure:
      type[1] - Type of lock: F_RDLCK, F_WRLCK
      start[8] - Starting offset for lock
      length[8] - Number of bytes to check for the lock
             If length is 0, check for lock in all bytes starting at the location
            'start' through to the end of file
      pid[4] - PID of the process that wants to take lock/owns the task
               in case of reply
      client[4] - Client id of the system that owns the process which
                  has the conflicting lock

Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
2010-10-28 09:08:47 -05:00
..
acl.c fs/9p: Add access = client option to opt in acl evaluation. 2010-10-28 09:08:46 -05:00
acl.h fs/9p: Implement create time inheritance 2010-10-28 09:08:46 -05:00
cache.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
cache.h 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00
fid.c fs/9p: Add access = client option to opt in acl evaluation. 2010-10-28 09:08:46 -05:00
fid.h 9p: Documentation updates 2008-05-14 19:23:25 -05:00
Kconfig fs/9p: Implement POSIX ACL permission checking function 2010-10-28 09:08:46 -05:00
Makefile fs/9p: Implement POSIX ACL permission checking function 2010-10-28 09:08:46 -05:00
v9fs_vfs.h 9p: Implement TLOCK 2010-10-28 09:08:47 -05:00
v9fs.c fs/9p: Add access = client option to opt in acl evaluation. 2010-10-28 09:08:46 -05:00
v9fs.h fs/9p: Add access = client option to opt in acl evaluation. 2010-10-28 09:08:46 -05:00
vfs_addr.c 9p: Add a Direct IO support for non-cached operations. 2010-10-28 09:08:45 -05:00
vfs_dentry.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
vfs_dir.c 9p: Pass the correct end of buffer to p9dirent_read 2010-10-28 09:08:44 -05:00
vfs_file.c 9p: Implement TGETLOCK 2010-10-28 09:08:47 -05:00
vfs_inode.c fs/9p: Implement create time inheritance 2010-10-28 09:08:46 -05:00
vfs_super.c fs/9p: Add access = client option to opt in acl evaluation. 2010-10-28 09:08:46 -05:00
xattr_user.c fs/9p: Add support user. xattr 2010-08-02 14:28:35 -05:00
xattr.c fs/9p: Add xattr callbacks for POSIX ACL 2010-10-28 09:08:46 -05:00
xattr.h fs/9p: Add xattr callbacks for POSIX ACL 2010-10-28 09:08:46 -05:00