byte range lock conversion code (history) in Samba server

Shirish Pargaonkar shirishpargaonkar at gmail.com
Tue May 5 19:50:26 GMT 2009


I was trying to figure out when and what changed so that byte range locking
conversion was implemented in Samba server.
Any pointers such as a bug # or conversation leading up to this change is
appreciated.


>From (e.g. samba version 3.0.22)

[2009/05/05 07:50:43, 10] locking/locking.c:do_lock(142)
  do_lock: lock type WRITE start=0 len=1 requested for file foo
[2009/05/05 07:50:43, 3] smbd/error.c:error_packet(146)
  error packet at smbd/reply.c(5334) cmd=36 (SMBlockingX)
NT_STATUS_LOCK_NOT_GRANTED

To (samba version 3.0.33)

[2009/05/05 13:36:09, 3] smbd/trans2.c:call_trans2setfilepathinfo(5831)
  call_trans2setfilepathinfo(8) foo (fnum 4453) info_level=520 totdata=24
[2009/05/05 13:36:09, 10] smbd/trans2.c:smb_set_posix_lock(4717)
  smb_set_posix_lock: file foo, lock_type = 4,lock_pid = 11029, count
= 9223372036854775808, offset = 0
[2009/05/05 13:36:09, 10] locking/locking.c:do_unlock(268)
  do_unlock: unlock start=0 len=9223372036854775808 requested for fnum
4453 file foo
[2009/05/05 13:36:09, 10] locking/brlock.c:brl_get_locks_internal(1648)
  brl_get_locks_internal: 1 current locks on dev=64768, inode=4456451
[2009/05/05 13:36:09, 10] locking/brlock.c:print_lock_struct(49)
  [0]: smbpid = 11029, tid = 1, pid = 23242, start = 0, size = 1, fnum
= 4453, WRITE POSIX_LOCK


More information about the samba-technical mailing list