patch-2.2.18 linux/include/linux/lockd/nlm.h
Next file: linux/include/linux/lockd/xdr.h
Previous file: linux/include/linux/lockd/lockd.h
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Fri Sep 15 22:10:44 2000
- Orig file:
v2.2.17/include/linux/lockd/nlm.h
- Orig date:
Fri Apr 21 12:46:59 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/include/linux/lockd/nlm.h linux/include/linux/lockd/nlm.h
@@ -10,19 +10,21 @@
#define LINUX_LOCKD_NLM_H
/* Maximum file offset in file_lock.fl_end */
-#ifdef OFFSET_MAX
-# define NLM_OFFSET_MAX OFFSET_MAX
-#else
# define NLM_OFFSET_MAX ((off_t) 0x7fffffff)
-#endif
+# define NLM4_OFFSET_MAX ((s64) ((~(u64)0) >> 1))
/* Return states for NLM */
enum {
- NLM_LCK_GRANTED = 0,
- NLM_LCK_DENIED,
- NLM_LCK_DENIED_NOLOCKS,
- NLM_LCK_BLOCKED,
- NLM_LCK_DENIED_GRACE_PERIOD,
+ NLM_LCK_GRANTED = 0,
+ NLM_LCK_DENIED = 1,
+ NLM_LCK_DENIED_NOLOCKS = 2,
+ NLM_LCK_BLOCKED = 3,
+ NLM_LCK_DENIED_GRACE_PERIOD = 4,
+ NLM_DEADLCK = 5,
+ NLM_ROFS = 6,
+ NLM_STALE_FH = 7,
+ NLM_FBIG = 8,
+ NLM_FAILED = 9,
};
#define NLM_PROGRAM 100021
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)