1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-24 15:33:20 +03:00
Commit Graph

8527 Commits

Author SHA1 Message Date
Andrew Tridgell
517db1b1b0 r14938: add smbcli_fsetatr() as a convenient interface to a setfileinfo for
torture testing. Used by RAW-NOTIFY.
2007-10-10 14:00:20 -05:00
Andrew Tridgell
85d70f1c15 r14937: fix a crash that can be caused by a notify triggering during a share
disconnect
2007-10-10 14:00:19 -05:00
Andrew Tridgell
fc11201ad1 r14936: remove a duplicate line 2007-10-10 14:00:19 -05:00
Andrew Tridgell
659576806f r14935: try to avoid a race condition in the recursion test 2007-10-10 14:00:19 -05:00
Andrew Tridgell
81f8b24526 r14934: greatly expand the RAW-NOTIFY testing of completion filters. We now
try each bit in the completion filter separately for a wide range of
file operations.
2007-10-10 14:00:19 -05:00
Andrew Tridgell
4d3b8d9549 r14933: fix the handling of notify filters to be much closer to the behaviour
of w2k3. The behaviour is particularly tricky for rename.
2007-10-10 14:00:19 -05:00
Andrew Tridgell
d58011b0f3 r14932: ensure that we send a NOTIFY_ACTION_OLD_NAME and
NOTIFY_ACTION_NEW_NAME together to the client.
2007-10-10 14:00:18 -05:00
James Peach
c31e233a09 r14930: Coalesce the "feature enabled" tests so that the config summary always
emits a yes or a no.
2007-10-10 14:00:18 -05:00
Stefan Metzmacher
5d40e10d8e r14929: add some comments
metze
2007-10-10 14:00:18 -05:00
Andrew Tridgell
b6e40d9b08 r14928: demonstrate that the completion filter is only set on the first notify
on a directory handle
2007-10-10 14:00:18 -05:00
Andrew Tridgell
e6abb1ecba r14927: expand the RAW-NOTIFY test to test recursive and rename handling 2007-10-10 14:00:18 -05:00
Andrew Tridgell
13574a8d0c r14926: change the inotify backend to implement the rather unusual semantics
for rename. The cookies in inotify tell us (indirectly!) if its a
rename between directories or not
2007-10-10 14:00:17 -05:00
Andrew Tridgell
2ac248edf0 r14925: trigger NOTIFY_ACTION_OLD_NAME and NOTIFY_ACTION_NEW_NAME events for
renames, if in the same directory. For renames between directories
generate NOTIFY_ACTION_REMOVED and NOTIFY_ACTION_ADDED
2007-10-10 14:00:17 -05:00
Andrew Tridgell
ceb85d12f7 r14924: when handling recursive change notify, the client expects a windows
path name back
2007-10-10 14:00:17 -05:00
Andrew Tridgell
af92520097 r14921: I forgot to commit the IDL change for the subdir_filter 2007-10-10 14:00:17 -05:00
Andrew Tridgell
7c3d989fa4 r14920: allow a notify backend to separately specify if it has handled the
given mask for the current directory and sub-directories. This allows
us to setup the less efficient internal handling for subdirectories,
while using the kernel inotify service for the current directory if
available. It also allows inotify to handle only some of the filter
bits, leaving the other filter bits for the user space handler.
2007-10-10 14:00:17 -05:00
Andrew Tridgell
d63d113c8a r14919: disable the BASE-DEFER_OPEN test until it gets fixed (it sleeps for
way too long). Jeremy, whats the idea behind those long sleeps?

its also redundent, as the RAW-MUX test already tests the sharing
violation open delay
2007-10-10 14:00:16 -05:00
Andrew Tridgell
cf17ff15b1 r14918: cleaner handling of systems without inotify 2007-10-10 14:00:16 -05:00
Andrew Tridgell
28d9a4d1a7 r14917: fixed length strings don't count any trailing nulls in the length 2007-10-10 14:00:16 -05:00
Andrew Tridgell
4c3f3c4141 r14916: print errno so I can work out why OpenBSD is failing the test for tdb
in the build farm. msync() is failing.
2007-10-10 14:00:16 -05:00
Tim Potter
d50661ed4e r14915: Work in progress - getting ldb_add() working. 2007-10-10 14:00:16 -05:00
Jelmer Vernooij
ca4d1b4c0e r14914: Remove printf statement I accidently committed. 2007-10-10 14:00:15 -05:00
Stefan Metzmacher
2bef820820 r14913: readd --with-selftest-prefix as it's needed
to workarround the 108 char limitation on unix socket paths.

make test fails when I try to use ./st
in /home/People/metze/devel/samba/4.0/samba4-ci/source/

metze
2007-10-10 14:00:15 -05:00
Stefan Metzmacher
953aa7887b r14912: don't crash if inotify isn't present...
metze
2007-10-10 14:00:15 -05:00
Jelmer Vernooij
3de7b7fca1 r14911: Allow easy modification of selftest subdirectory name 2007-10-10 14:00:15 -05:00
Jelmer Vernooij
3063e5311e r14910: Remove unused configure options 2007-10-10 14:00:15 -05:00
Jelmer Vernooij
eaa68826d3 r14909: Add lp_modulesdir() smb.conf option 2007-10-10 14:00:14 -05:00
Jelmer Vernooij
c4668192f9 r14908: Fix LD_LIBRARY_PATH 2007-10-10 14:00:14 -05:00
Jelmer Vernooij
902d90bcb1 r14907: Another attempt at fixing partially generated tables.c files 2007-10-10 14:00:14 -05:00
Jelmer Vernooij
222723e443 r14906: Move SWIG-specific files to scripting/swig/ 2007-10-10 14:00:14 -05:00
Jelmer Vernooij
5446ccc20d r14905: Prevent partly generated files when building using heavy parallel make. 2007-10-10 14:00:14 -05:00
Andrew Tridgell
9569bf5374 r14904: fixed LIBNDR_FLAG_STR_CHARLEN (thanks to Metze for noticing this) 2007-10-10 14:00:13 -05:00
Andrew Tridgell
73ba1215e0 r14903: rewrote ndr_push_string() to be much simpler, and correctly handle
UTF8 strings. This should fix the german umlaut problem reported by
michael@drueing.de
2007-10-10 14:00:13 -05:00
Andrew Tridgell
bb99cbf069 r14902: change charcnv code to fail the conversion when it hits bad
characters, rather than silently truncating the string. This makes the
code much omre conservative, making it easier to test. It might mean
users hit problems initially, but at least we'll hear about them, and
thus can fix them.
2007-10-10 14:00:13 -05:00
Tim Potter
5b722fcd4b r14901: More work on ldb swig interface. Wrap some more functions. 2007-10-10 14:00:13 -05:00
Tim Potter
a40d6c7922 r14897: Do more error checking of tdb function returns and raise IOError or
KeyError exceptions as appropriate.

Add a close() function to the wrapper as we can't rely on the
Python garbage collector destroying the object and closing the tdb file
at any particular time.
2007-10-10 14:00:13 -05:00
Stefan Metzmacher
81390dcda5 r14894: - add some 'const'
- remove sid_active_in_token() was the same as security_token_has_sid()
- rename some functions

metze
2007-10-10 14:00:12 -05:00
Stefan Metzmacher
a69f000324 r14891: fix a bug found by the ibm checker
the problem was that we shift with <<= (privilege-1)

and we called the function with privilege=0

add some checks to catch invalid privilege values
and hide the mask representation in privilege.c

metze
2007-10-10 14:00:12 -05:00
Stefan Metzmacher
ad84a69db2 r14890: fix the usage of popt...
I don't know why this causes problems on my laptop today...

anyway we have done this change in smbtorture month ago...

metze
2007-10-10 14:00:12 -05:00
Tim Potter
9327fd07d6 r14881: Unpack ldb_message_element and ldb_val arrays. Python can now access
all parts of a ldb_result:

@BASEINFO has 2 elements
        elt[0]: val[0]: sequenceNumber = 2
        elt[1]: val[0]: distinguishedName = @BASEINFO
name=foo has 2 elements
        elt[0]: val[0]: foo = bar
        elt[1]: val[0]: distinguishedName = name=foo

Cleanup some swig junk that was only necessary when including config.h
and function prototypes that used the PRINTF_ATTRIBUTE() macro.

Add some more comments.
2007-10-10 14:00:12 -05:00
Tim Potter
73b233ee1b r14880: Doc. 2007-10-10 14:00:12 -05:00
Tim Potter
60f7f14baa r14879: Fix bug unpacking ldb_messages.
Start decoding more of ldb_message and ldb_message_result.
2007-10-10 14:00:11 -05:00
Tim Potter
704787978a r14878: Write swig wrappers for ldb_init() and ldb_connect().
Start wrapper for ldb_search().  Currently it returns a list of swig
ldb_message objects.  More unpacking of results required.
2007-10-10 14:00:11 -05:00
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
Andrew Tridgell
77f32a2735 r14876: added ENOSYS to unix error mapping 2007-10-10 14:00:11 -05:00
Jelmer Vernooij
12429bb66f r14875: Make better use of the build system 2007-10-10 14:00:11 -05:00
Jelmer Vernooij
8f57c0e7bc r14874: Allow overriding LIBRARY_REALNAME 2007-10-10 14:00:10 -05:00
Tim Potter
c6c759e19f r14873: Add skeleton swig ldb interface. 2007-10-10 14:00:10 -05:00
Tim Potter
c60a233538 r14871: We don't need to import UserDict anymore. 2007-10-10 13:59:45 -05:00
Tim Potter
20d68c60b7 r14870: Update to link with dynamic instead of static objects. 2007-10-10 13:59:45 -05:00