Stefan Metzmacher
3b36a85798
r16950: remove the smb mid from the ntvfs layer and keep a list of pending
...
requests on the smbsrv_connection, to be able to match then on
ntcancel
metze
(This used to be commit 04f0d3d031
)
2007-10-10 14:10:02 -05:00
Stefan Metzmacher
5468516f9a
r16918: the SMB2 Ioctls are sometimes called with a wildcard handle
...
the operation doesn't need a valid file handle in that case
metze
(This used to be commit d41a83d559
)
2007-10-10 14:10:00 -05:00
Stefan Metzmacher
810df68c23
r16890: implement DCERPC over SMB2 in the IPC backend
...
metze
(This used to be commit 5338699d0c
)
2007-10-10 14:09:57 -05:00
Stefan Metzmacher
eb75ecbccf
r16889: implement SMB2 Ioctl in the frontend
...
metze
(This used to be commit 90b0ae53e4
)
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
42248766d4
r16876: implement SMB2 Find in the posix ntvfs backend
...
metze
(This used to be commit 4f1afda488
)
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
1b45214f31
r16868: init some uninitialized values
...
(found by valgrind)
metze
(This used to be commit 1bb60b5be4
)
2007-10-10 14:09:54 -05:00
Stefan Metzmacher
af0a9eb529
r16834: split the level's of smb_search_first/smb_search_next and the levels
...
of smb_search_data
metze
(This used to be commit 78c201db8a
)
2007-10-10 14:09:49 -05:00
Stefan Metzmacher
30ae843cbf
r16730: that is correct...
...
metze
(This used to be commit 9c3992a279
)
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
c063450a1e
r16724: fix typo...
...
metze
(This used to be commit 9b036d788c
)
2007-10-10 14:09:40 -05:00
Stefan Metzmacher
ef4475adc4
r16706: for RAW_SFILEINFO_SETATTR attrib == 0 means set it to FILE_ATTRIB_NORMAL
...
and attrib == FILE_ATTRIB_NORMAL means no change...
but for RAW_SFILEINFO_BASIC_INFORMATION attrib == 0 means no change
metze
(This used to be commit e1945feda0
)
2007-10-10 14:09:39 -05:00
Stefan Metzmacher
d63dd113ae
r16699: the layout of SMB2 Read and Write is identical...
...
so we know that the 9th bytes is just uninitialized padding
metze
(This used to be commit f97a21b970
)
2007-10-10 14:09:39 -05:00
Stefan Metzmacher
7743106635
r16468: implement SMB2_ALL_INFORMATION in the posix backend
...
metze
(This used to be commit 1bce493cbc
)
2007-10-10 14:09:30 -05:00
Andrew Bartlett
ca62ddd8d9
r16051: Move the XATTR compatability code into a new file, so I can use it for
...
the getntacl utility.
Andrew Bartlett
(This used to be commit b1e0d4747b
)
2007-10-10 14:08:53 -05:00
Stefan Metzmacher
dc4ccc6f65
r16024: OpenBSD doesn't have ENOTSUP so use ENOSYS
...
metze
(This used to be commit 505d55de69
)
2007-10-10 14:08:51 -05:00
Stefan Metzmacher
18cc835e8a
r16013: hopefully fix the configure check for darwin
...
metze
(This used to be commit 88b7d42064
)
2007-10-10 14:08:50 -05:00
Stefan Metzmacher
b20d76085b
r16009: fix the build
...
metze
(This used to be commit d53562f126
)
2007-10-10 14:08:50 -05:00
Stefan Metzmacher
22367ca76e
r16008: make debugging easier, and use the os name in the function name
...
(I'll add a bsd wrapping later)
metze
(This used to be commit 2ce4a2da29
)
2007-10-10 14:08:49 -05:00
Stefan Metzmacher
9a9a99b90a
r16006: only (f)getxattr returns ssize_t
...
metze
(This used to be commit d4af8da7c9
)
2007-10-10 14:08:49 -05:00
Stefan Metzmacher
8f553ab4a1
r16005: add support for XATTR's on MacOS
...
Thanks to Bjoern Jacke for his help.
metze
(This used to be commit 8f8480e453
)
2007-10-10 14:08:49 -05:00
Stefan Metzmacher
f6a3c29ede
r16004: - move #ifdef outof the real functions
...
- hopefully all build-farm hosts have ENOTSUP...
metze
(This used to be commit 62c64f1ddc
)
2007-10-10 14:08:48 -05:00
Stefan Metzmacher
b0bcd8a201
r15970: add a more verbose comment to tridge's fix for bigendian hosts.
...
tridge: I'm fine with this fix
metze
(This used to be commit f38b042ded
)
2007-10-10 14:08:45 -05:00
Andrew Tridgell
f719eb9598
r15880: the ntvfs_handle changes broke rpc on big-endian boxes, as the
...
uint16_t fnum was being byte order converted twice in the ipc server.
Metze, can you have a look at this? This change does make rpc work
again, but perhaps you might like to approach it differently
(This used to be commit 50246e6282
)
2007-10-10 14:08:37 -05:00
Andrew Tridgell
92acfc0799
r15855: more talloc_set_destructor() typesafe fixes. nearly done ...
...
(This used to be commit 396d82a231
)
2007-10-10 14:08:33 -05:00
Andrew Tridgell
971d30bb20
r15854: more talloc_set_destructor() typesafe fixes
...
(This used to be commit 61c6100617
)
2007-10-10 14:08:32 -05:00
Andrew Tridgell
d8223e4b94
r15833: fixed two delete on close memory leaks
...
(This used to be commit f3274e8f78
)
2007-10-10 14:08:30 -05:00
Andrew Tridgell
507e502c35
r15826: ensure we don't dereference sec when NULL
...
(This used to be commit b6bf6b17cd
)
2007-10-10 14:08:28 -05:00
Andrew Tridgell
ae034247ef
r15825: there are quite subtle semantics with change notify events being sent
...
when a context (such as a tree connect) is destroyed. The behaviour
was changed by the ntvfs memory leak fix, and this patch is needed to
make it all work again.
(This used to be commit a7ad4df7cd
)
2007-10-10 14:08:28 -05:00
Stefan Metzmacher
d9bdfb0a07
r15814: add SMB2 Lock interface structure
...
metze
(This used to be commit 8f1850ef65
)
2007-10-10 14:08:27 -05:00
Andrew Tridgell
225d6485eb
r15797: fixed a notify bug, where a notify_remove() is beyond the current max
...
depth
(This used to be commit 2ebcfcc6da
)
2007-10-10 14:08:21 -05:00
Stefan Metzmacher
0f2c93016d
r15774: take care of the SYSTEM_SECURITY flag
...
metze
(This used to be commit 98f58d710a
)
2007-10-10 14:08:17 -05:00
Stefan Metzmacher
e941cc3003
r15772: pass the messaging context and server_id to the dcerpc server subsystem
...
metze
(This used to be commit fb1debf219
)
2007-10-10 14:08:17 -05:00
Stefan Metzmacher
8b4da058bc
r15768: make it possible that the caller of the ntvfs_subsystem doesn't
...
provide handle callbacks
metze
(This used to be commit dfd07e6f89
)
2007-10-10 14:08:16 -05:00
Stefan Metzmacher
017855b766
r15767: we need to free here
...
metze
(This used to be commit 98890052fe
)
2007-10-10 14:08:16 -05:00
Stefan Metzmacher
e23cc70a72
r15760: - add RAW_READ_SMB2 => generic mapping
...
- Implement SMB2 Read
metze
(This used to be commit d0ac0c5af4
)
2007-10-10 14:08:15 -05:00
Stefan Metzmacher
49012954d0
r15758: - handle RAW_FLUSH_SMB2 in the posix ntvfs backend
...
- Implement SMB2 Flush
metze
(This used to be commit 41d87ebe35
)
2007-10-10 14:08:15 -05:00
Stefan Metzmacher
772c492840
r15757: - add RAW_WRITE_SMB2 => generic mapping
...
- implement SMB2 Write
metze
(This used to be commit 5ab6f304f8
)
2007-10-10 14:08:14 -05:00
Stefan Metzmacher
183fb2bd4b
r15754: - implement SMB2 Close
...
- add RAW_CLOSE_SMB2 generic mapping
metze
(This used to be commit 41bc3cfc82
)
2007-10-10 14:08:14 -05:00
Stefan Metzmacher
6af051409a
r15752: - add generic mapping for RAW_OPEN_SMB2
...
metze
(This used to be commit d26144f957
)
2007-10-10 14:08:14 -05:00
Stefan Metzmacher
35d6a53ff7
r15750: don't clear after setting
...
metze
(This used to be commit 0e23d2a45a
)
2007-10-10 14:08:13 -05:00
Stefan Metzmacher
e306c5bf12
r15741: move smb2 request structures into the main smb request structs
...
as new levels
metze
(This used to be commit 9180635317
)
2007-10-10 14:08:11 -05:00
Stefan Metzmacher
1a60ed5aa8
r15738: make the code more readable
...
metze
(This used to be commit 5114cab662
)
2007-10-10 14:08:10 -05:00
Stefan Metzmacher
9ef33f5f5c
r15734: This is a major change to the NTVFS subsystem:
...
- to use a struct ntvfs_handle instead of a uint16_t fnum.
(to make it independend from the frontend protocol)
- the allocation of handles now is provided by the frontend
(smbsrv_*) via callbacks and not by each backend module
- this also makes sure that file handles are only passed
to the ntvfs subsystem when the tcon and session matches,
so modules can rely on this and need to check this.
- this allows multiple modules in the ntvfs module chain
to allocate file handles. This can be used for virtual
files like "\\$Extend\\$Quota:$Q:$INDEX_ALLOCATION"...
- also this will make SMB2 with 128 bit file handles possible
metze
(This used to be commit 287fc1c22d
)
2007-10-10 14:08:10 -05:00
Stefan Metzmacher
7f0e17e903
r15718: - split the SMBflush with the 0xFFFF wildcard fnum into a different level
...
metze
(This used to be commit 95bf41b4d4
)
2007-10-10 14:08:09 -05:00
Stefan Metzmacher
472c088625
r15716: disable the cifs_posix ntvfs backend as it will not be updated
...
with coming ntvfs subsystem changes
metze
(This used to be commit 69e7a45474
)
2007-10-10 14:08:08 -05:00
Stefan Metzmacher
e6da54799c
r15694: for the cifs backend it's desired that we pull and repush
...
the packets with our parsing code for the most stuff.
So make cifs:maptrans2=yes the default.
metze
(This used to be commit 2a9e55fafc
)
2007-10-10 14:08:06 -05:00
Stefan Metzmacher
799113e1f9
r15693: fix the logic for the "cifs:map_trans2" parameter
...
we need to return NOT_IMPLEMENTED when mapping is desired
metze
(This used to be commit 09aeb387a0
)
2007-10-10 14:08:06 -05:00
Stefan Metzmacher
5e6d1ea261
r15614: the byte range locking error handling caches the last failed lock
...
per file handle and not per tree connect
metze
(This used to be commit 5d825261c0
)
2007-10-10 14:07:00 -05:00
Stefan Metzmacher
be0bd9fa33
r15613: the snum doesn't identify the tcon, but the brl_context pointer does
...
metze
(This used to be commit 5e256f4b78
)
2007-10-10 14:07:00 -05:00
Stefan Metzmacher
8dbffb37d5
r15612: look at the lock_type and not at the notify_ptr being NULL or not
...
metze
(This used to be commit 7fa6d73691
)
2007-10-10 14:06:59 -05:00
Stefan Metzmacher
452ef0b40d
r15603: True isn't a valid parameter here, PVFS_WAIT_TIMEOUT is...
...
(both are '1')
metze
(This used to be commit de9d04abcc
)
2007-10-10 14:06:03 -05:00
Jelmer Vernooij
172a83d724
r15573: Fix build of systems that have iconv headers in non-standard locations
...
Split of system/locale.h header from system/iconv.h
Previously, iconv wasn't being used on these systems
(This used to be commit aa6d66fda6
)
2007-10-10 14:05:58 -05:00
Jelmer Vernooij
53f005f6aa
r15572: Trim build/m4/rewrite.m4 a bit more, remove unused tests.
...
(This used to be commit d72c5c8f75
)
2007-10-10 14:05:58 -05:00
Stefan Metzmacher
3590835ee6
r15522: allow cifs:map_trans2 per share
...
metze
(This used to be commit da82e2bc45
)
2007-10-10 14:05:46 -05:00
Jelmer Vernooij
8bab932282
r15387: Fix installation of dcerpc headers, remove more instances of uint_t
...
(This used to be commit 9e9bfd04c6
)
2007-10-10 14:05:31 -05:00
Jelmer Vernooij
5c3a1d76ff
r15379: Fix shared library build's unresolved dependencies
...
(This used to be commit 0fafa2e595
)
2007-10-10 14:05:29 -05:00
Jelmer Vernooij
cf0f4ec073
r15358: Fix some compiler warnings / type safety. Found by tcc
...
(This used to be commit 12ba42de58
)
2007-10-10 14:05:25 -05:00
Jelmer Vernooij
f7c86b912d
r15331: Integrate LIBSMB and LIBCLI into new LIBCLI_SMB
...
(This used to be commit 4ec89bce87
)
2007-10-10 14:05:18 -05:00
Jelmer Vernooij
e002300f23
r15328: Move some functions around, remove dependencies.
...
Remove some autogenerated headers (which had prototypes now autogenerated by pidl)
Remove ndr_security.h from a few places - it's no longer necessary
(This used to be commit c19c2b51d3
)
2007-10-10 14:05:17 -05:00
Jelmer Vernooij
0d5587b5d1
r15274: Drop default EXT_LIB_ prefix for external libraries. Fixes issues with local
...
(empty) libpopt.a overriding global one
(This used to be commit 2f06305e53
)
2007-10-10 14:05:00 -05:00
Jelmer Vernooij
2319864a32
r15261: Work around AIX defining open as open64 again
...
(This used to be commit 05f5f3da8f
)
2007-10-10 14:04:27 -05:00
Jelmer Vernooij
25ac06eb46
r15249: Fix typos
...
(This used to be commit 06a735d85e
)
2007-10-10 14:04:25 -05:00
Jelmer Vernooij
f1c2b22d53
r15239: (hopefully) fix Samba4 build on AIX
...
(This used to be commit 0291ae4757
)
2007-10-10 14:04:23 -05:00
Steve French
1e8e6aeb6f
r15237: Add primitive Samba 4 backend for cifs posix clients (based on simple backend).
...
(This used to be commit f054e1a9e6
)
2007-10-10 14:04:23 -05:00
Jelmer Vernooij
69b51f702a
r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
...
for REQUIRED_SUBSYSTEMS.
(This used to be commit adc8a019b6
)
2007-10-10 14:04:18 -05:00
James Peach
cdae64b18c
r15189: Add parentheses to force ISDOt and ISDOTDOT evaluation order. Fix typo
...
that made the BASE-DIR2 test fail.
(This used to be commit dcebc59a98
)
2007-10-10 14:04:15 -05:00
James Peach
7baa8a13aa
r15188: Restore svn rev. 15183, 15184 and 15185, which I inadvertantly clobbered
...
in r15186. I don't think I should be allowed to use quilt and svn at the
same time any more :(
(This used to be commit e0ca5ead27
)
2007-10-10 14:04:14 -05:00
James Peach
6ab33938d5
r15186: Introduce ISDOT and ISDOTDOT macros for testing whether a filename is
...
"." for "..". These express the intention better that strcmp or strequal
and improve searchability via cscope/ctags.
(This used to be commit 7e4ad7e8e5
)
2007-10-10 14:04:14 -05:00
James Peach
f380d365ea
r15185: Force all NTVFS modules to provide a critical sizes structure so
...
the version information can be checked when modules are registered.
(This used to be commit 95eb558063
)
2007-10-10 14:04:14 -05:00
James Peach
419e6d1112
r15184: Declare ntvfs_register with a typed ops pointer.
...
(This used to be commit bf946e6d6d
)
2007-10-10 14:04:14 -05:00
James Peach
073587abac
r15183: Hoist the critical sizes initialiser into a header so that modules
...
can have standard access to critical sizes. Add a convenience function
to determine whether two critical sizes differ.
(This used to be commit 7ced96d2d3
)
2007-10-10 14:04:13 -05:00
Stefan Metzmacher
44ba105503
r15118: - do access checks also when the owner and group are not changed
...
- only call chown/fchown when we want to change something
metze
(This used to be commit 46b3096d93
)
2007-10-10 14:04:10 -05:00
Stefan Metzmacher
dd894d5626
r15117: add more comments
...
metze
(This used to be commit d76f3e2fb6
)
2007-10-10 14:04:09 -05:00
Stefan Metzmacher
8302b889b4
r15078: add TODO about setting the full ACL with an NTTRANS_CREATE
...
metze
(This used to be commit bd2c899d83
)
2007-10-10 14:04:07 -05:00
Stefan Metzmacher
732027b87a
r15071: fix typo
...
metze
(This used to be commit fde8922947
)
2007-10-10 14:04:06 -05:00
Stefan Metzmacher
0dd63e0432
r15069: - don't crash on a NULL acl
...
- add the correct access checks for changing sd->group and sd->dacl
metze
(This used to be commit 2a61f65cd4
)
2007-10-10 14:04:06 -05:00
Stefan Metzmacher
f347be4c73
r15057: fix access masks for getting and setting security_descriptors
...
I'll add some torture tests later...
metze
(This used to be commit ce045f4df3
)
2007-10-10 14:04:04 -05:00
Stefan Metzmacher
e91394cecc
r15056: w2k3 gives NT_STATUS_ACCESS_DENIED instead of NT_STATUS_ACCESS_VIOLATION
...
metze
(This used to be commit 5c1d96b36f
)
2007-10-10 14:04:04 -05:00
Andrew Tridgell
289911bb4e
r15048: started on the server side implementation of oplocks. The code is not
...
functional yet, I'm committing so it doesn't diverge too much from
other peoples work. It is disabled by default.
(This used to be commit ba0b8a218d
)
2007-10-10 14:04:03 -05:00
Andrew Tridgell
3979da11a4
r15029: fixed the detection of inotify
...
(This used to be commit 5471b4b1a8
)
2007-10-10 14:04:02 -05:00
Tim Potter
bfa8d64909
r15017: When making up our own inotify functions, make sure glibc exports the
...
__NR_inotify_* syscall numbers before trying.
(This used to be commit 5e79adda7c
)
2007-10-10 14:04:01 -05:00
Jelmer Vernooij
fd4a8ad8c3
r14993: Make subsystems again
...
(This used to be commit d55b040bd2
)
2007-10-10 14:00:52 -05:00
Stefan Metzmacher
5d221987c7
r14990: talloc_reference() can fail
...
metze
(This used to be commit 4410d7ea5d
)
2007-10-10 14:00:51 -05:00
Stefan Metzmacher
7672505c72
r14966: make more functions _PUBLIC_
...
metze
(This used to be commit 193f7da254
)
2007-10-10 14:00:47 -05:00
Stefan Metzmacher
2e894625e7
r14964: - move sidmap code from ntvfs_common to SAMDB
...
- make ntvfs_common a library
- create sys_notify library
metze
(This used to be commit a3e1d56cf7
)
2007-10-10 14:00:47 -05:00
Andrew Tridgell
5b1a495e96
r14963: check talloc returns
...
(This used to be commit dd928e84ec
)
2007-10-10 14:00:47 -05:00
Stefan Metzmacher
09eb876ac0
r14961: fix compiler warning
...
tridge: please add checks after talloc_realloc() and talloc_strdup()!
metze
(This used to be commit c136191870
)
2007-10-10 14:00:46 -05:00
Andrew Tridgell
26c9cd6211
r14960: don't declare variables mid-function
...
(This used to be commit 4537de9289
)
2007-10-10 14:00:46 -05:00
Andrew Tridgell
cd794e79f9
r14959: allow change notify to be disabled completely using
...
notify:enable=False
(This used to be commit 2a8f093105
)
2007-10-10 14:00:46 -05:00
Andrew Tridgell
127967334f
r14956: change the notify search to be much more efficient by using a
...
per-depth bisection search. This makes the notify_trigger() call
log(N) which makes us scale well for large numbers of outstanding
notifies
(This used to be commit 16fd00925f
)
2007-10-10 14:00:45 -05:00
Stefan Metzmacher
317c4b81a5
r14951: - remove unused var 'path'
...
- fix compiler warning
metze
(This used to be commit 4d7de8b251
)
2007-10-10 14:00:22 -05:00
Andrew Tridgell
b5ee277f1a
r14948: add testing of truncate events, and add truncate support to inotify
...
backend
(This used to be commit b80523a631
)
2007-10-10 14:00:21 -05:00
Andrew Tridgell
2b0537143c
r14947: add support for file truncate events
...
(This used to be commit ed1b90407d
)
2007-10-10 14:00:21 -05:00
Andrew Tridgell
fa91368fb4
r14945: allow the notify backend to be specified per share
...
(This used to be commit 467027e773
)
2007-10-10 14:00:21 -05:00
Andrew Tridgell
ee2fb760af
r14943: bring the inotify backend up to date with all the strange rename
...
semantics
(This used to be commit 74c274ea07
)
2007-10-10 14:00:20 -05:00
Andrew Tridgell
4abf299e0c
r14941: a rename of a file (but not a directory) triggers 3 events. The first
...
two are the rename (FROM and TO) then the 3rd event is a modify event
of both attributes and creation time.
(This used to be commit 010a1b14a5
)
2007-10-10 14:00:20 -05:00
Stefan Metzmacher
115acb5dd0
r14939: don't use a void pointer
...
metze
(This used to be commit 03906b2b13
)
2007-10-10 14:00:20 -05:00
Andrew Tridgell
e54abee4e1
r14933: fix the handling of notify filters to be much closer to the behaviour
...
of w2k3. The behaviour is particularly tricky for rename.
(This used to be commit 4d3b8d9549
)
2007-10-10 14:00:19 -05:00
Andrew Tridgell
fe071da009
r14932: ensure that we send a NOTIFY_ACTION_OLD_NAME and
...
NOTIFY_ACTION_NEW_NAME together to the client.
(This used to be commit d58011b0f3
)
2007-10-10 14:00:18 -05:00
Andrew Tridgell
e221db7a39
r14928: demonstrate that the completion filter is only set on the first notify
...
on a directory handle
(This used to be commit b6e40d9b08
)
2007-10-10 14:00:18 -05:00
Andrew Tridgell
1dee94c333
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
(This used to be commit 13574a8d0c
)
2007-10-10 14:00:17 -05:00