1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-01 16:23:49 +03:00
Commit Graph

509 Commits

Author SHA1 Message Date
Andrew Tridgell
eadadbb44a r14877: added support for the kernel inotify mechanism. This passes basic
tests, but still needs some more work to ensure we correctly cope with
events that may generate both a system inotify event and a internal
notify event. The system inotify events won't handle recursion, and
don't understand things like streams.

This also adds the ntvfs/sysdep/ directory, which is meant for system
dependent code that is not tied to a particular ntvfs backend. The
inotify code is a good example of that.
2007-10-10 14:00:11 -05:00
Stefan Metzmacher
9ec706238c r14860: create libcli/security/security.h
metze
2007-10-10 13:59:44 -05:00
Andrew Tridgell
63ae3f21e3 r14838: fix the build. Looks like I still haven't quite got the hang of the
new dependency/proto system :-)
2007-10-10 13:59:25 -05:00
Andrew Tridgell
33495d19cf r14835: split out the config rules for the ntvfs/common/ directory 2007-10-10 13:59:24 -05:00
Stefan Metzmacher
d41d48caf2 r14822: if we use the snum used by the lp_* functions instead of the wire TID,
then don't use tid as name...

metze
2007-10-10 13:59:24 -05:00
Andrew Tridgell
adb4ea32e2 r14808: added notify_trigger() calls for rename and setfileinfo calls 2007-10-10 13:59:22 -05:00
Andrew Tridgell
a6be44f78c r14805: use tdb_lock_bystring() to prevent race conditions in notify add/remove 2007-10-10 13:59:21 -05:00
Andrew Tridgell
16742cd286 r14803: copy with the root directory, which has /. on the end of the path 2007-10-10 13:59:21 -05:00
Andrew Tridgell
d09b8761bf r14800: use tdb_get_seqnum() in the change notify code to avoid reloading the
notify record if the tdb has not changed. This makes the
notify_trigger() call much faster, which is important as it is called
on just about every file operation
2007-10-10 13:59:20 -05:00
Andrew Tridgell
1db0a5a7f4 r14797: added checking of the filter in notify requests 2007-10-10 13:59:20 -05:00
Andrew Tridgell
a4c0e23f9d r14796: handle overflows in the notify buffer. The pending events are dumped
and the notify buffer removed
2007-10-10 13:59:19 -05:00
Andrew Tridgell
c976f14a9f r14795: queue notify requests on the same handle 2007-10-10 13:59:19 -05:00
Andrew Tridgell
d193758902 r14793: the RAW-NOTIFY test now passes. Next I need to make it efficient, and
add the hooks in all the other places
2007-10-10 13:59:19 -05:00
Andrew Tridgell
182aee1a21 r14792: when we enable fake oplocks, give out batch oplocks not exclusive oplocks 2007-10-10 13:59:19 -05:00
Andrew Tridgell
4d234b37e5 r14755: the change notify code now passes most of the RAW-NOTIFY test. Still
more work to do though
2007-10-10 13:59:18 -05:00
Stefan Metzmacher
bac95bb8f4 r14736: - the ntvfs subsystem should not know about smb_server.h
- the process module subsystem should not know about smb_server.h
- the smb_server module should not know about process models

metze
2007-10-10 13:59:17 -05:00
Stefan Metzmacher
ba3bf34a85 r14672: the async_info desctructor needs access to the private struct,
so free async info explicit...

I hope to find a generic way later, so that the ntvfs modules doesn't need to
take care that much...

metze
2007-10-10 13:59:07 -05:00
Jelmer Vernooij
009b56a323 r14640: Fix dependency 2007-10-10 13:59:03 -05:00
Andrew Tridgell
1624ea88e6 r14616: added notify change support to the posix backend
It doesn't fully work yet, and doesn't yet have all the efficiency
that is planned, but it doesn't break anything and I wanted to get the
code in the tree to minimise the chance of collisions with the work
metze is doing.
2007-10-10 13:59:02 -05:00
Andrew Tridgell
79af976d18 r14615: add notify to unixuid ntvfs module 2007-10-10 13:59:02 -05:00
Andrew Tridgell
cc1f8b3ebe r14614: handle zero timers in pvfs_wait() 2007-10-10 13:59:02 -05:00
Andrew Tridgell
9bf7d322d0 r14613: fixed ntvfs_notify_next() 2007-10-10 13:59:01 -05:00
Jelmer Vernooij
da0a411818 r14569: Make more functions public. 2007-10-10 13:58:48 -05:00
Jelmer Vernooij
eb435386f0 r14554: Write out header dependencies. This means all C files affected will be
rebuilt when a header file is changed. It also means parallel builds work now.

It will take a minute or so to generate all the dependency information,
but there should be no need to rebuild that information later on, unless
a file changes.

This behaviour is only enabled when building in developer mode
(--enable-developer) and requires a GNU make (or compatible). In all other
cases, the file 'static_deps.mk' is included, which contains some basic
hardcoded dependency information.
2007-10-10 13:58:45 -05:00
Alexander Bokovoy
25b93e043e r14548: fix build after generated prototypes 2007-10-10 13:58:43 -05:00
Jelmer Vernooij
51b4270513 r14542: Remove librpc, libndr and libnbt from includes.h 2007-10-10 13:58:42 -05:00
Stefan Metzmacher
7253153691 r14541: separate smbsrv_request and ntvfs_request,
with this it's now possible to write a
ntvfs_test programm like the vfstest in samba3

also smb2 support will be possible later

metze
2007-10-10 13:58:41 -05:00
Stefan Metzmacher
aaa5d377b9 r14540: fix a talloc hierachie problem,
make sure file and search handles are cleaned up
before anything else in the pvfs_state struct,
as there destructors reply on a valid pvfs_state struct

metze
2007-10-10 13:58:41 -05:00
Andrew Tridgell
1e1c559381 r14539: get rid of a pointless union layer in struct smb_notify 2007-10-10 13:58:41 -05:00
Jelmer Vernooij
4682bc5ce0 r14492: Fix shared libs - set SO_VERSION to 0 everywhere for now. 2007-10-10 13:57:32 -05:00
Stefan Metzmacher
10e627032d r14487: split smbsrv_request into two parts, one will be moved to ntvfs_request
but I don't to get the commit to large, to I'll do this tomorrow...

metze
2007-10-10 13:57:32 -05:00
Stefan Metzmacher
56fac3ddbb r14486: remove the need of a stream_connection on a dcesrv_connection,
and let the transport set callbacks for getting the own and peer
socket_address

metze
2007-10-10 13:57:32 -05:00
Jelmer Vernooij
3dd477ca51 r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
try to include just the BASENAME.h files (containing only structs)
2007-10-10 13:57:27 -05:00
Stefan Metzmacher
5709c1c4e1 r14456: don't access the smbsrv_tcon inside the ntvfs modules
metze
2007-10-10 13:57:26 -05:00
Stefan Metzmacher
fd291ff003 r14440: demonstrate that the smbpid is attached to a session (vuid),
so SMBexit() only closes files for the given user session and the given PID

can someone check if samba3 passes this test, please?

metze
2007-10-10 13:57:25 -05:00
Jelmer Vernooij
1a16a6f1df r14380: Reduce the size of structs.h 2007-10-10 13:57:16 -05:00
Jelmer Vernooij
7871b07e21 r14327: Replace MAJOR_VERSION/MINOR_VERSION/RELEASE_VERSION with two parameters:
- VERSION: should contain the current version. Will be made part of the filename.
 - SO_VERSION: should contain the latest version that this on is compatible to. Will be used for setting the soname of the shared library.

Fix sonames and use them on platforms that support them
Remove symlinking code. ldconfig will take care of creating the symlinks now
that we set the soname.
2007-10-10 13:57:12 -05:00
Stefan Metzmacher
be6d5298a2 r14256: - rename smb_file -> smb_handle
- move it into the in/out substructs again
- allow file.path only on smb_fileinfo/smb_setfileinfo

metze
2007-10-10 13:57:06 -05:00
Stefan Metzmacher
ca809a7910 r14240: fix summary output (step 2)
we now need to explicit enable external libraries in
*.m4 files again...

metze
2007-10-10 13:57:06 -05:00
Andrew Tridgell
7d8da66118 r14209: don't timeout notify requests in the cifs backend, as they are
intended to wait forever
2007-10-10 13:57:04 -05:00
Andrew Tridgell
b78abbbce6 r14208: removed use of req->flags2 inside the ntvfs layer. This should help
metze on his quest to unify the ntvfs strucures for the smb and smb2
servers. The only place we needed flags2 inside ntvfs was for the
FLAGS2_READ_PERMIT_EXECUTE bit, which only affects readx, so I added a
readx.in.read_for_execute flag instead.
2007-10-10 13:57:03 -05:00
Stefan Metzmacher
180a79d103 r14205: move smb specific stuff out of includes.h (finally!!!:-)
all this changes really help ccache to speed up the samba4 build:-)

metze
2007-10-10 13:57:03 -05:00
Stefan Metzmacher
29240bae44 r14174: fix typos
metze
2007-10-10 13:56:58 -05:00
Stefan Metzmacher
2ef3f59709 r14173: change smb interface structures to always use
a union smb_file, to abtract
- const char *path fot qpathinfo and setpathinfo
- uint16_t fnum for SMB
- smb2_handle handle for SMB2

the idea is to later add a struct ntvfs_handle *ntvfs
so that the ntvfs subsystem don't need to know the difference between SMB and SMB2

metze
2007-10-10 13:56:57 -05:00
Stefan Metzmacher
ed9ed1f48f r14157: - pass a struct ntvfs_request to the ntvfs layer
(for now we just do #define ntvfs_request smbsrv_request,
   but it's the first step...)
- rename ntvfs_openfile() -> ntvfs_open()
- fix the talloc hierachie in some places in the ntvfs_map_*() code

metze
2007-10-10 13:56:55 -05:00
Stefan Metzmacher
d4c0f8900e r14037: add ntvfs_next_notify()
metze
2007-10-10 13:52:37 -05:00
Andrew Tridgell
6ec250f55d r14012: added support for the SMBntcancel operation in the cifs ntvfs
backend. This requires keeping a list of outstanding requests so the
MID can be matched. Use a talloc destructor to manage the list.
2007-10-10 13:52:36 -05:00
Andrew Tridgell
0ad70bfd83 r14011: - added a ntvfs_notify op to allow backends to support change notify
- converted the nttrans server side code to be async (needed for change notify)

This is the start of some work on supporting change notify via a new
approach. More soon.
2007-10-10 13:52:36 -05:00
Jelmer Vernooij
04c49e211f r13969: Make these names lowercase as well (just like they are now in the buildsystem) 2007-10-10 13:52:33 -05:00
Jelmer Vernooij
2c74698032 r13960: Generate makefile rules for installing/removing shared modules. 2007-10-10 13:52:32 -05:00