1
0
Files
linux/include/net
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
..
2010-10-28 09:08:47 -05:00
2010-10-12 12:44:53 -03:00
2010-09-23 14:33:39 -07:00
2010-10-17 13:49:14 -07:00
2010-09-23 14:33:39 -07:00
2010-10-16 11:13:24 -07:00
2010-06-03 03:21:52 -07:00
2010-06-03 03:21:52 -07:00
2010-10-27 11:37:31 -07:00
2010-10-27 11:37:32 -07:00
2010-10-25 13:09:44 -07:00
2010-09-23 14:33:39 -07:00
2010-10-27 11:37:33 -07:00
2010-04-13 01:41:33 -07:00
2010-10-25 13:09:45 -07:00
2010-10-05 20:39:38 -07:00
2010-10-27 11:37:32 -07:00
2010-09-23 14:33:39 -07:00
2010-06-03 03:21:52 -07:00
2009-12-26 20:46:28 -08:00
2010-06-03 03:21:52 -07:00
2010-06-03 03:21:52 -07:00
2010-10-25 14:18:27 -07:00
2010-06-23 12:58:40 -07:00
2009-11-20 15:35:04 -08:00
2010-10-21 03:09:45 -07:00
2010-06-30 13:31:19 -07:00
2010-10-25 14:18:28 -07:00
2010-10-21 16:05:41 +02:00
2010-10-27 11:37:32 -07:00