LOCKTEST(1)

🌸 NAME 🌸

okay so bestie, locktest β€” it finds differences in locking between two SMB servers. that's the whole assignment. πŸ’…

(also hi, this is LOCKTEST(1) from the Test Suite section of the manual, so you're in the right place 🫢)


πŸ¦‹ SYNOPSIS πŸ¦‹

locktest {//server1/share1} {//server2/share2} [-U user%pass]
         [-U user%pass] [-s seed] [-o numops] [-a] [-O] [-E] [-Z]
         [-R range] [-B base] [-M min]

✨ DESCRIPTION ✨

locktest is that utility for detecting differences in behaviour in locking between SMB servers. like, it's a whole detective πŸ”

here's the tea: it runs a random set of locking operations against //server1/share1, and then runs the exact same random set against //server2/share2, and then it shows you the differences in the responses it gets. side by side, no cap. 😭

and who uses this? the Samba team does β€” they use this utility to find differences in behaviour between Samba and Windows servers. iconique behaviour tbh πŸ‘‘


πŸ’… OPTIONS πŸ’…

  • -U user%pass β€” tell it the user and password to use when logging on on the shares. and listen, you can specify this parameter twice β€” once for the first server, once for the second. one for you, one for your bestie 🫢
  • -s seed β€” seed the random number generator with the specified value. so your chaos is at least reproducible chaos ✨
  • -o numops β€” set the number of operations to perform.
  • -a β€” print the operations that are performed. so you actually see what it's doing πŸ‘€
  • -A β€” backtrack to find minimal number of operations required to make the response to a certain call differ. it's giving minimalism, it's giving forensics πŸ’€
  • -O β€” enable oplocks.
  • -u β€” hide unlock fails. shhh. πŸ™ˆ
  • -E β€” enable exact error code checking. be precise, bestie.
  • -Z β€” enable the zero/zero lock.
  • -R range β€” set lock range.
  • -B base β€” set lock base.
  • -M min β€” set min lock length.
  • -k β€” use kerberos.

🌈 VERSION 🌈

this man page is correct for version 4.0 of the Samba suite. so like, if you're on 4.0, you're eating good πŸ“


πŸ’œ SEE ALSO πŸ’œ

Samba


πŸŽ€ AUTHOR πŸŽ€

this utility is part of the Samba[1] suite, which is developed by the global Samba Team[2]. a whole global squad, fr fr 🌍

locktest was written by Andrew Tridgell.

this manpage was written by Jelmer Vernooij.


⭐ NOTES ⭐

  1. Samba http://www.samba.org/
  2. Samba Team http://www.samba.org/samba/team/

and that's the whole page, bestie! go forth and diff those locks πŸ’–

so yeah β€” this was Samba 4.0, dated 09/09/2026, and it's a LOCKTEST(1) situation. mwah. 😘✨

πŸ“¦ where this page comes from