diff options
author | Zachary Loafman <zachary.loafman@isilon.com> | 2009-11-17 23:25:58 +0000 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-12-03 20:21:22 -0800 |
commit | f26a500d9ff854734decdcb196136dc8cc19eb4a (patch) | |
tree | 2ff455a7cc6f104c564c1354879ac97e2a4cd83d /source4/torture/raw/read.c | |
parent | 5882282deaf3ce06c18fe2102f7f8dcc6e79b409 (diff) | |
download | samba-f26a500d9ff854734decdcb196136dc8cc19eb4a.tar.gz samba-f26a500d9ff854734decdcb196136dc8cc19eb4a.tar.xz samba-f26a500d9ff854734decdcb196136dc8cc19eb4a.zip |
s4 torture: Add lockread_supported based off of CAP_LOCK_AND_READ
Signed-off-by: Tim Prouty <tprouty@samba.org>
Diffstat (limited to 'source4/torture/raw/read.c')
-rw-r--r-- | source4/torture/raw/read.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/torture/raw/read.c b/source4/torture/raw/read.c index 90ca18d5b62..efdd0404519 100644 --- a/source4/torture/raw/read.c +++ b/source4/torture/raw/read.c @@ -224,6 +224,11 @@ static bool test_lockread(struct torture_context *tctx, const char *test_data = "TEST DATA"; uint_t seed = time(NULL); + if (!cli->transport->negotiate.lockread_supported) { + printf("Server does not support lockread - skipping\n"); + return true; + } + buf = talloc_zero_array(tctx, uint8_t, maxsize); if (!torture_setup_dir(cli, BASEDIR)) { |