"Welcome to Fantasy Island" : The Win32 lock spec.
- Win32 locks as described in Win32 docs are not what is implemented in Windows NT.
- Locks can be downgraded by overlaying read locks onto write locks and then doing one unlock.
- Compatible locks can be stacked on top of each other and are then reference counted.
- Don't mention zero byte length locks or the "zero-zero" lock :-).
- The only way Samba can implement this is with a locking database.
- This tdb database [locking/brlock.c] implements full 64 bit Win32 lock semantics, indexed by dev/inode pairs.
- Any locks passed by this are (optionally) passed to a POSIX lock mapping layer [locking/posix.c].
Notes:
No notes for slide 18