}
}
- status = torture_setup_complex_file(torture, tree, FNAME);
+ status = torture_setup_simple_file(torture, tree, FNAME);
CHECK_STATUS(status, NT_STATUS_OK);
status = smb2_notify_recv(req, torture, &n);
* NOTIFY_ENUM_DIR is returned.
*/
n.in.buffer_size = 0x00000000;
+ n.in.buffer_size = max_buffer_size;
req = smb2_notify_send(tree, &n);
while (!req->cancel.can_cancel && req->state <= SMB2_REQUEST_RECV) {
}
}
- status = torture_setup_complex_file(torture, tree, FNAME);
+ status = smb2_notify_recv(req, torture, &n);
+ //CHECK_STATUS(status, STATUS_NOTIFY_ENUM_DIR);
CHECK_STATUS(status, NT_STATUS_OK);
+ CHECK_VAL(n.out.num_changes, 1);
+ CHECK_VAL(n.out.changes[0].action, NOTIFY_ACTION_MODIFIED);
+ CHECK_WIRE_STR(n.out.changes[0].name, FNAME);
- status = smb2_notify_recv(req, torture, &n);
- CHECK_STATUS(status, STATUS_NOTIFY_ENUM_DIR);
+// n.in.buffer_size = 0x00000000;
+// req = smb2_notify_send(tree, &n);
+//
+// while (!req->cancel.can_cancel && req->state <= SMB2_REQUEST_RECV) {
+// if (tevent_loop_once(torture->ev) != 0) {
+// break;
+// }
+// }
+//
+// status = smb2_notify_recv(req, torture, &n);
+// CHECK_STATUS(status, STATUS_NOTIFY_ENUM_DIR);
+
+ status = torture_setup_simple_file(torture, tree, FNAME);
+ CHECK_STATUS(status, NT_STATUS_OK);
/*
* if the change response fits in the buffer we get
}
}
- status = torture_setup_complex_file(torture, tree, FNAME);
+ status = torture_setup_simple_file(torture, tree, FNAME);
CHECK_STATUS(status, NT_STATUS_OK);
status = smb2_notify_recv(req, torture, &n);
n.in.recursive = 0x0000;
n.in.buffer_size = 0x00000001;
+ n.in.buffer_size = max_buffer_size;
n.in.file.handle = dh;
n.in.completion_filter = FILE_NOTIFY_CHANGE_ALL;
n.in.unknown = 0x00000000;
}
}
- status = torture_setup_complex_file(torture, tree, FNAME);
+ status = torture_setup_simple_file(torture, tree, FNAME);
CHECK_STATUS(status, NT_STATUS_OK);
status = smb2_notify_recv(req, torture, &n);
- CHECK_STATUS(status, STATUS_NOTIFY_ENUM_DIR);
+ //CHECK_STATUS(status, STATUS_NOTIFY_ENUM_DIR);
+ CHECK_STATUS(status, NT_STATUS_OK);
+ CHECK_VAL(n.out.num_changes, 1);
+ CHECK_VAL(n.out.changes[0].action, NOTIFY_ACTION_REMOVED);
+ CHECK_WIRE_STR(n.out.changes[0].name, FNAME);
n.in.buffer_size = max_buffer_size;
req = smb2_notify_send(tree, &n);
}
}
- status = torture_setup_complex_file(torture, tree, FNAME);
+ status = torture_setup_simple_file(torture, tree, FNAME);
CHECK_STATUS(status, NT_STATUS_OK);
status = smb2_notify_recv(req, torture, &n);
- CHECK_STATUS(status, STATUS_NOTIFY_ENUM_DIR);
+ //CHECK_STATUS(status, STATUS_NOTIFY_ENUM_DIR);
+ CHECK_STATUS(status, NT_STATUS_OK);
+ CHECK_VAL(n.out.num_changes, 2);
+ CHECK_VAL(n.out.changes[0].action, NOTIFY_ACTION_ADDED);
+ CHECK_WIRE_STR(n.out.changes[0].name, FNAME);
+ CHECK_VAL(n.out.changes[1].action, NOTIFY_ACTION_MODIFIED);
+ CHECK_WIRE_STR(n.out.changes[1].name, FNAME);
/* if the buffer size is too large, we get invalid parameter */
n.in.recursive = 0x0000;