diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-07-06 07:45:22 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:19:17 -0500 |
commit | 44b66a73d3e55cb30eec5d80f51edf5188401ac0 (patch) | |
tree | a3b13fbb61fcfa8154d50bca5d29ab1df3c9cf4d /source4/torture/raw | |
parent | 3de3d6a02dfb790af21f6c848a202064922ea780 (diff) | |
download | samba-44b66a73d3e55cb30eec5d80f51edf5188401ac0.tar.gz samba-44b66a73d3e55cb30eec5d80f51edf5188401ac0.tar.xz samba-44b66a73d3e55cb30eec5d80f51edf5188401ac0.zip |
r8176: Exploring the share mode database...
A delete-on-close deleted file is still around while open on another fd. But
only for findfirst, not for qpathinfo :-)
Volker
(This used to be commit dbc7a1a978d782c73f593f4b46f2a81d35169713)
Diffstat (limited to 'source4/torture/raw')
-rw-r--r-- | source4/torture/raw/search.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/source4/torture/raw/search.c b/source4/torture/raw/search.c index 0f04648672a..05fa24c6a2a 100644 --- a/source4/torture/raw/search.c +++ b/source4/torture/raw/search.c @@ -40,11 +40,11 @@ static BOOL single_search_callback(void *private, union smb_search_data *file) /* do a single file (non-wildcard) search */ -static NTSTATUS single_search(struct smbcli_state *cli, - TALLOC_CTX *mem_ctx, - const char *pattern, - enum smb_search_level level, - union smb_search_data *data) +NTSTATUS torture_single_search(struct smbcli_state *cli, + TALLOC_CTX *mem_ctx, + const char *pattern, + enum smb_search_level level, + union smb_search_data *data) { union smb_search_first io; union smb_search_close c; @@ -144,8 +144,9 @@ static BOOL test_one_file(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) printf("testing %s\n", levels[i].name); - levels[i].status = single_search(cli, mem_ctx, fname, - levels[i].level, &levels[i].data); + levels[i].status = torture_single_search(cli, mem_ctx, fname, + levels[i].level, + &levels[i].data); /* see if this server claims to support this level */ if ((cap & levels[i].capability_mask) != levels[i].capability_mask) { @@ -162,8 +163,9 @@ static BOOL test_one_file(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) continue; } - status = single_search(cli, mem_ctx, fname2, - levels[i].level, &levels[i].data); + status = torture_single_search(cli, mem_ctx, fname2, + levels[i].level, + &levels[i].data); expected_status = NT_STATUS_NO_SUCH_FILE; if (levels[i].level == RAW_SEARCH_SEARCH || |