From e3880fa759cfa03222262327854fe7bbe585fe01 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 26 Sep 2004 11:30:20 +0000 Subject: r2660: - converted the libcli/raw/ library to use talloc_increase_ref_count() rather than manual reference counts - properly support SMBexit in the cifs and posix backends - added a logoff method to all backends With these changes the RAW-CONTEXT test now passes against the posix backend (This used to be commit c315d6ac1cc40546fde1474702a6d66d07ee13c8) --- source4/ntvfs/nbench/vfs_nbench.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source4/ntvfs/nbench') diff --git a/source4/ntvfs/nbench/vfs_nbench.c b/source4/ntvfs/nbench/vfs_nbench.c index eebf6f1dde..90b5d43bd6 100644 --- a/source4/ntvfs/nbench/vfs_nbench.c +++ b/source4/ntvfs/nbench/vfs_nbench.c @@ -475,6 +475,19 @@ static NTSTATUS nbench_exit(struct smbsrv_request *req) return status; } +/* + logoff - closing files +*/ +static NTSTATUS nbench_logoff(struct smbsrv_request *req) +{ + NTVFS_GET_PRIVATE(nbench_private, private, req); + NTSTATUS status; + + PASS_THRU_REQ(req, logoff, (req)); + + return status; +} + /* lock a byte range */ @@ -672,6 +685,7 @@ NTSTATUS ntvfs_nbench_init(void) ops.search_next = nbench_search_next; ops.search_close = nbench_search_close; ops.trans = nbench_trans; + ops.logoff = nbench_logoff; /* we don't register a trans2 handler as we want to be able to log individual trans2 requests */ -- cgit