summaryrefslogtreecommitdiff
path: root/source4/torture/smbtorture.h
diff options
context:
space:
mode:
authorSteven Danneman <steven.danneman@isilon.com>2010-01-10 16:06:57 -0800
committerSteven Danneman <steven.danneman@isilon.com>2010-01-10 16:12:44 -0800
commit5323fe99c30bad099645711feac5f2a8979a1ee1 (patch)
tree07ad8ffae07221d7da2c5afa5bbbb9bab2d640f4 /source4/torture/smbtorture.h
parent73422e7dd866f9c65e1ba5cd42fd027b5acf3a40 (diff)
downloadsamba-5323fe99c30bad099645711feac5f2a8979a1ee1.tar.gz
samba-5323fe99c30bad099645711feac5f2a8979a1ee1.tar.bz2
samba-5323fe99c30bad099645711feac5f2a8979a1ee1.zip
s4/torture: Parameterize output in LOCK tests based off server support
Two new torture parameters: * smbexit_pdu_support: if the Server supports the Exit command * range_not_locked_on_file_close: whether the server returns the NT_STATUS_RANGE_NOT_LOCKED error when a file is closed which has a pending lock request. Windows returns this error, though per the spec, this error should only be returned to an unlock request.
Diffstat (limited to 'source4/torture/smbtorture.h')
-rw-r--r--source4/torture/smbtorture.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/source4/torture/smbtorture.h b/source4/torture/smbtorture.h
index 38969f1bcc..5b12f4e3f5 100644
--- a/source4/torture/smbtorture.h
+++ b/source4/torture/smbtorture.h
@@ -74,6 +74,15 @@ bool torture_register_suite(struct torture_suite *suite);
* This parameter specifies whether the server supports the DENY_DOS open mode
* of the SMBOpenX PDU. */
+/* torture:range_not_locked_on_file_close
+ *
+ * When a byte range lock is pending, and the file which is being locked is
+ * closed, Windows servers return the error NT_STATUS_RANGE_NOT_LOCKED. This
+ * is strange, as this error is meant to be returned only for unlock requests.
+ * When true, torture will expect the Windows behavior, otherwise it will
+ * expect the more logical NT_STATUS_LOCK_NOT_GRANTED.
+ */
+
/* torture:sacl_support
*
* This parameter specifies whether the server supports the setting and
@@ -81,6 +90,10 @@ bool torture_register_suite(struct torture_suite *suite);
* supports the use of the SEC_FLAG_SYSTEM_SECURITY bit in the open access
* mask.*/
+/* torture:smbexit_pdu_support
+ *
+ * This parameter specifies whether the server supports the SMBExit (0x11) PDU. */
+
/* torture:smblock_pdu_support
*
* This parameter specifies whether the server supports the SMBLock (0x0C) PDU. */
@@ -119,4 +132,5 @@ bool torture_register_suite(struct torture_suite *suite);
* denied. When true, torture will expect NT_STATUS_OBJECT_NAME_NOT_FOUND
* rather than NT_STATUS_ACCESS_DENIED when trying to open one of these files.
*/
+
#endif /* __SMBTORTURE_H__ */