diff options
Diffstat (limited to 'source4/torture/raw')
-rw-r--r-- | source4/torture/raw/read.c | 5 | ||||
-rw-r--r-- | source4/torture/raw/write.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/source4/torture/raw/read.c b/source4/torture/raw/read.c index bb27ba71e5..f9c44e036e 100644 --- a/source4/torture/raw/read.c +++ b/source4/torture/raw/read.c @@ -522,6 +522,11 @@ static BOOL test_readx(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) status = smb_raw_read(cli->tree, &io); CHECK_STATUS(status, NT_STATUS_FILE_LOCK_CONFLICT); + if (!(cli->transport->negotiate.capabilities & CAP_LARGE_FILES)) { + printf("skipping large file tests - CAP_LARGE_FILES not set\n"); + goto done; + } + printf("Trying large offset read\n"); io.readx.in.offset = ((uint64_t)0x2) << 32; io.readx.in.mincnt = 10; diff --git a/source4/torture/raw/write.c b/source4/torture/raw/write.c index 03c3897c74..046ca8c4f9 100644 --- a/source4/torture/raw/write.c +++ b/source4/torture/raw/write.c @@ -182,6 +182,11 @@ static BOOL test_write(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) printf("Setting file as sparse\n"); status = torture_set_sparse(cli->tree, fnum); CHECK_STATUS(status, NT_STATUS_OK); + + if (!(cli->transport->negotiate.capabilities & CAP_LARGE_FILES)) { + printf("skipping large file tests - CAP_LARGE_FILES not set\n"); + goto done; + } printf("Trying 2^32 offset\n"); setup_buffer(buf, seed, maxsize); |