summaryrefslogtreecommitdiff
path: root/source3/Makefile.in
diff options
context:
space:
mode:
authorZack Kirsch <zack.kirsch@isilon.com>2009-02-09 21:54:51 -0800
committerJeremy Allison <jra@samba.org>2009-02-13 10:08:55 -0800
commita3531314dd6c7da05e4b35cc84a8c3a0addaa0a4 (patch)
tree4f392fe23ff2be91a6de2f9a51587923725eb870 /source3/Makefile.in
parent813273c87e4f48d7d8415c8ee9a1a553ed369429 (diff)
downloadsamba-a3531314dd6c7da05e4b35cc84a8c3a0addaa0a4.tar.gz
samba-a3531314dd6c7da05e4b35cc84a8c3a0addaa0a4.tar.bz2
samba-a3531314dd6c7da05e4b35cc84a8c3a0addaa0a4.zip
OneFS implementation of BRL VFS ops:
* Much of the beginning should look familiar, as I re-used the OneFS oplock callback record concept. This was necessary to keep our own state around - it really only consists of a lock state, per asynchronous lock that is currently unsatisfied. The onefs_cbrl_callback_records map to BLRs by the id. * There are 4 states an async lock can be in. NONE means there is no async currently out for the lock, as opposed to ASYNC. DONE means we've locked *every* lock (keep in mind a request can ask for multiple locks at a time.) ERROR is an error. * onefs_cbrl_async_success: The lock_num is incremented, and the state changed, so that when process_blocking_lock_queue is run, we will try the *next* lock, rather than the same one again. * onefs_brl_lock_windows() has some complicated logic: * We do a no-op if we're passed a BLR and the matching state is ASYNC -- this means Samba is trying to get the same lock twice, and we just need to wait longer, so we return an error. * PENDING lock calls happen when the lock is being queued on the BLQ -- we do async in this case. * We also do async in the case that we're passed a BLR, but the lock is not pending. This is an async lock being probed by process_blocking_lock_queue. * We do a sync lock for any normal first request of a lock. * Failure is returned, but it doesn't go to the client unless the lock has actually timed out.
Diffstat (limited to 'source3/Makefile.in')
-rw-r--r--source3/Makefile.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in
index e11633f655..144c81a467 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -665,7 +665,8 @@ VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
VFS_ONEFS_OBJ = modules/vfs_onefs.o modules/onefs_acl.o modules/onefs_system.o \
- modules/onefs_open.o modules/onefs_streams.o modules/onefs_dir.c
+ modules/onefs_open.o modules/onefs_streams.o modules/onefs_dir.c \
+ modules/onefs_cbrl.o
PERFCOUNT_ONEFS_OBJ = modules/perfcount_onefs.o
PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o