1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source4/ntvfs/nbench
Andrew Tridgell a3cec511bb r2561: completely redid the ntvfs module chaining code, You can now do something like:
ntvfs handler = nbench posix

and the nbench pass-thru module will be called before the posix
module. The chaining logic is now much saner, and less racy, with each
level in the chain getting its own private pointer rather than relying
on save/restore logic in the pass-thru module.

The only pass-thru module we have at the moment is the nbench one
(which records all traffic in a nbench compatibe format), but I plan
on soon writing a "unixuid" pass-thru module that will implement the
setegid()/setgroups()/seteuid() logic for standard posix uid
handling. This separation of the posix backend from the uid handling
should simplify the code, and make development easier.

I also modified the nbench module so it can do multiple chaining, so
if you want to you can do:

   ntvfs module = nbench nbench posix

and it will save 2 copies of the log file in /tmp. This is really only
useful for testing at the moment until we have more than one pass-thru
module.
(This used to be commit f84c0af35c)
2007-10-10 12:59:06 -05:00
..
README added the "nbench" ntvfs backend. This is used to capture NBENCH load 2004-03-08 07:17:15 +00:00
vfs_nbench.c r2561: completely redid the ntvfs module chaining code, You can now do something like: 2007-10-10 12:59:06 -05:00

This module provides a way to capture file sharing loads for the
NBENCH benchmark client. It also servers as an example of a NTVFS
filter module.

Here is an example config that passes through to the CIFS NTVFS backend.

[bench]
	ntvfs handler = nbench
	nbench:passthru = cifs
	cifs:server = myserver
	cifs:user = myuser
	cifs:password = mypass
	cifs:domain = MYDOMAIN
	cifs:share = bench