X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fafs%2Fafs.h;h=c548aa346f0dd6f9a7aed6664abb32bcbb6ddd79;hb=d626e3bf728c47746f2129aa00c775d4e8c2a73b;hp=2452579481404fe702aa852b39ab404254773c5b;hpb=1f8a6b658a943b4f04a1fc7b3a420360202c86cd;p=linux-2.6 diff --git a/fs/afs/afs.h b/fs/afs/afs.h index 2452579481..c548aa346f 100644 --- a/fs/afs/afs.h +++ b/fs/afs/afs.h @@ -37,6 +37,13 @@ typedef enum { AFS_FTYPE_SYMLINK = 3, } afs_file_type_t; +typedef enum { + AFS_LOCK_READ = 0, /* read lock request */ + AFS_LOCK_WRITE = 1, /* write lock request */ +} afs_lock_type_t; + +#define AFS_LOCKWAIT (5 * 60) /* time until a lock times out (seconds) */ + /* * AFS file identifier */ @@ -120,6 +127,7 @@ struct afs_file_status { struct afs_fid parent; /* parent dir ID for non-dirs only */ time_t mtime_client; /* last time client changed data */ time_t mtime_server; /* last time server changed data */ + s32 lock_count; /* file lock count (0=UNLK -1=WRLCK +ve=#RDLCK */ }; /*