From 45afb4fdb03a6c9fb22582f67b427a0431a08194 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 23 May 2007 23:14:48 +0000 Subject: r23104: Add comment explaining the new test. Jeremy. (This used to be commit 7b9b5c59a4ac2afca151ba12eba7c808057a677e) --- source4/torture/basic/delete.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source4/torture/basic') 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); -- cgit