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 β
- Samba
http://www.samba.org/ - 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
- fedora 44: samba-test 2:4.24.7-1.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later
- ubuntu noble: samba-testsuite 2:4.19.5+dfsg-4ubuntu9.8 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms