summaryrefslogtreecommitdiff
path: root/source4/torture/basic
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-05-23 23:14:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:52:49 -0500
commit45afb4fdb03a6c9fb22582f67b427a0431a08194 (patch)
tree930ace9447330acbb5d66d3978dd2138b36d0b1f /source4/torture/basic
parent6223ae4015075d92549a271ee90a8092d4eab3a2 (diff)
downloadsamba-45afb4fdb03a6c9fb22582f67b427a0431a08194.tar.gz
samba-45afb4fdb03a6c9fb22582f67b427a0431a08194.tar.bz2
samba-45afb4fdb03a6c9fb22582f67b427a0431a08194.zip
r23104: Add comment explaining the new test.
Jeremy. (This used to be commit 7b9b5c59a4ac2afca151ba12eba7c808057a677e)
Diffstat (limited to 'source4/torture/basic')
-rw-r--r--source4/torture/basic/delete.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/torture/basic/delete.c b/source4/torture/basic/delete.c
index 888a22a4c6..eb23a894ee 100644
--- a/source4/torture/basic/delete.c
+++ b/source4/torture/basic/delete.c
@@ -1258,6 +1258,12 @@ static bool deltest20a(struct torture_context *tctx, struct smbcli_state *cli1,
}
/* Test 20b ... */
+/* This is the delete semantics that the cifsfs client depends on when
+ * trying to delete an open file on a Windows server. It
+ * opens a file with initial delete on close set, renames it then closes
+ * all open handles. The file goes away on Windows.
+ */
+
static bool deltest20b(struct torture_context *tctx, struct smbcli_state *cli1, struct smbcli_state *cli2)
{
int fnum1 = -1;
@@ -1266,7 +1272,7 @@ static bool deltest20b(struct torture_context *tctx, struct smbcli_state *cli1,
del_clean_area(cli1, cli2);
- /* Test 20a. */
+ /* Test 20b. */
/* Ensure the file doesn't already exist. */
smbcli_close(cli1->tree, fnum1);