return ret;
}
-bool test_durable_open_open_oplock(struct torture_context *tctx,
- struct smb2_tree *tree)
+static bool test_durable_open_open_oplock(struct torture_context *tctx,
+ struct smb2_tree *tree)
{
TALLOC_CTX *mem_ctx = talloc_new(tctx);
char fname[256];
return ret;
}
-bool test_durable_open_open_lease(struct torture_context *tctx,
- struct smb2_tree *tree)
+static bool test_durable_open_open_lease(struct torture_context *tctx,
+ struct smb2_tree *tree)
{
TALLOC_CTX *mem_ctx = talloc_new(tctx);
char fname[256];
* and do a durable reopen on the same connection
* while the first open is still active (fails)
*/
-bool test_durable_open_reopen1(struct torture_context *tctx,
- struct smb2_tree *tree)
+static bool test_durable_open_reopen1(struct torture_context *tctx,
+ struct smb2_tree *tree)
{
NTSTATUS status;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
* basic test for doing a durable open
* tcp disconnect, reconnect, do a durable reopen (succeeds)
*/
-bool test_durable_open_reopen2(struct torture_context *tctx,
- struct smb2_tree *tree)
+static bool test_durable_open_reopen2(struct torture_context *tctx,
+ struct smb2_tree *tree)
{
NTSTATUS status;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
* tcp disconnect, reconnect with a session reconnect and
* do a durable reopen (succeeds)
*/
-bool test_durable_open_reopen2a(struct torture_context *tctx,
- struct smb2_tree *tree)
+static bool test_durable_open_reopen2a(struct torture_context *tctx,
+ struct smb2_tree *tree)
{
NTSTATUS status;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
* basic test for doing a durable open:
* tdis, new tcon, try durable reopen (fails)
*/
-bool test_durable_open_reopen3(struct torture_context *tctx,
- struct smb2_tree *tree)
+static bool test_durable_open_reopen3(struct torture_context *tctx,
+ struct smb2_tree *tree)
{
NTSTATUS status;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
* basic test for doing a durable open:
* logoff, create a new session, do a durable reopen (succeeds)
*/
-bool test_durable_open_reopen4(struct torture_context *tctx,
- struct smb2_tree *tree)
+static bool test_durable_open_reopen4(struct torture_context *tctx,
+ struct smb2_tree *tree)
{
NTSTATUS status;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
return ret;
}
-bool test_durable_open_delete_on_close1(struct torture_context *tctx,
- struct smb2_tree *tree)
+static bool test_durable_open_delete_on_close1(struct torture_context *tctx,
+ struct smb2_tree *tree)
{
NTSTATUS status;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
}
-bool test_durable_open_delete_on_close2(struct torture_context *tctx,
- struct smb2_tree *tree)
+static bool test_durable_open_delete_on_close2(struct torture_context *tctx,
+ struct smb2_tree *tree)
{
NTSTATUS status;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
basic testing of SMB2 durable opens
regarding the position information on the handle
*/
-bool test_durable_open_file_position(struct torture_context *tctx,
- struct smb2_tree *tree)
+static bool test_durable_open_file_position(struct torture_context *tctx,
+ struct smb2_tree *tree)
{
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_handle h;
/*
Open, disconnect, oplock break, reconnect.
*/
-bool test_durable_open_oplock(struct torture_context *tctx,
- struct smb2_tree *tree1,
- struct smb2_tree *tree2)
+static bool test_durable_open_oplock(struct torture_context *tctx,
+ struct smb2_tree *tree1,
+ struct smb2_tree *tree2)
{
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io1, io2;
/*
Open, disconnect, lease break, reconnect.
*/
-bool test_durable_open_lease(struct torture_context *tctx,
- struct smb2_tree *tree1,
- struct smb2_tree *tree2)
+static bool test_durable_open_lease(struct torture_context *tctx,
+ struct smb2_tree *tree1,
+ struct smb2_tree *tree2)
{
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io1, io2;
return ret;
}
-bool test_durable_open_lock_oplock(struct torture_context *tctx,
- struct smb2_tree *tree)
+static bool test_durable_open_lock_oplock(struct torture_context *tctx,
+ struct smb2_tree *tree)
{
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
/*
Open, take BRL, disconnect, reconnect.
*/
-bool test_durable_open_lock_lease(struct torture_context *tctx,
- struct smb2_tree *tree)
+static bool test_durable_open_lock_lease(struct torture_context *tctx,
+ struct smb2_tree *tree)
{
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
* reconnect after an open, the oplock/lease tests above will certainly
* demonstrate an error on reconnect.
*/
-bool test_durable_open_open2_lease(struct torture_context *tctx,
- struct smb2_tree *tree1,
- struct smb2_tree *tree2)
+static bool test_durable_open_open2_lease(struct torture_context *tctx,
+ struct smb2_tree *tree1,
+ struct smb2_tree *tree2)
{
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io1, io2;
* reconnect after an open, the oplock/lease tests above will certainly
* demonstrate an error on reconnect.
*/
-bool test_durable_open_open2_oplock(struct torture_context *tctx,
- struct smb2_tree *tree1,
- struct smb2_tree *tree2)
+static bool test_durable_open_open2_oplock(struct torture_context *tctx,
+ struct smb2_tree *tree1,
+ struct smb2_tree *tree2)
{
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io1, io2;
/**
* test behaviour with initial allocation size
*/
-bool test_durable_open_alloc_size(struct torture_context *tctx,
- struct smb2_tree *tree)
+static bool test_durable_open_alloc_size(struct torture_context *tctx,
+ struct smb2_tree *tree)
{
NTSTATUS status;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
/**
* test behaviour when a disconnect happens while creating a read-only file
*/
-bool test_durable_open_read_only(struct torture_context *tctx,
- struct smb2_tree *tree)
+static bool test_durable_open_read_only(struct torture_context *tctx,
+ struct smb2_tree *tree)
{
NTSTATUS status;
TALLOC_CTX *mem_ctx = talloc_new(tctx);