mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
2f16675a22
Add a new option -l to check whether POSIX byte range locks are working. Usage: node1$ touch /path/to/cluster-fs/FILE node1$ ./bin/ping_pong -l /path/to/cluster-fs/FILE Holding lock, press any key to continue... You should run the same command on another node now. node2$ ./bin/ping_pong -l /path/to/cluster-fs/FILE Output can either be: Holding lock, press any key to continue... This means POSIX byte range locks are *not* working. If you see this instead: file already locked, calling check_lock to tell us who has it locked...: check_lock failed: lock held: pid='27375', type='1', start='0', len='0' Working POSIX byte range locks Congrats, you have a cluster fs with functional byte range locks! Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Dec 10 08:48:38 CET 2015 on sn-devel-104 |
||
---|---|---|
.. | ||
ping_pong.c |