r23104: Add comment explaining the new test.
authorJeremy Allison <jra@samba.org>
Wed, 23 May 2007 23:14:48 +0000 (23:14 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:52:49 +0000 (14:52 -0500)
Jeremy.

source/torture/basic/delete.c

index 888a22a4c6d95f4f5e44ffe3867683a12f6c7926..eb23a894ee94dd1bda1aa6d3f639ba67eb45b539 100644 (file)
@@ -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);