1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-21 12:23:50 +03:00
Commit Graph

235 Commits

Author SHA1 Message Date
Volker Lendecke
f7e2eec35f r24349: For large read&x we need more than 64k of outbuf. 2007-10-10 12:29:32 -05:00
Volker Lendecke
0eb831ca0e r24328: Restore chain_reply error handling
Get the whole smb header from the second chained function, in particular
the error fields
2007-10-10 12:29:30 -05:00
Volker Lendecke
f923bba908 r24327: First round of fixes to chain_reply
The argument to smb_setlen does not contain the nbt header of 4 bytes

The chained function might allocate outbuf itself (as now happens with
reply_read_and_X). This would erroneously overwrite the caller's outbuf.
Give it an outbuf pointer of it's own
2007-10-10 12:29:29 -05:00
Volker Lendecke
7926b5dfb8 r24322: Wrap reply_read_and_X in reply_prep_legacy 2007-10-10 12:29:28 -05:00
Volker Lendecke
9269e3d588 r24318: Print a prominent warning when reply_prep_legacy is called
This is a temporary function anyway
2007-10-10 12:29:27 -05:00
Volker Lendecke
607e7d2447 r24271: Push reply_prep_legacy into reply_write_and_X 2007-10-10 12:29:24 -05:00
Volker Lendecke
74ae19cca6 r24231: Push allocating InBuffer/OutBuffer into reply_transs 2007-10-10 12:29:18 -05:00
Volker Lendecke
39a7809aa4 r24229: Push allocating InBuffer/OutBuffer into reply_transs 2007-10-10 12:29:18 -05:00
Volker Lendecke
f843c02f07 r24225: Convert reply_flush to the new API 2007-10-10 12:29:18 -05:00
Volker Lendecke
4863ff2899 r24223: Convert reply_echo to the new API 2007-10-10 12:29:17 -05:00
Volker Lendecke
a55a4d71ff r24159: Convert reply_transs2 to the new API 2007-10-10 12:29:15 -05:00
Volker Lendecke
a9c2d75b42 r24156: Convert reply_trans2 to the new API 2007-10-10 12:29:15 -05:00
Volker Lendecke
248f15ff14 r24135: Convert call_trans2open to the new API
This itself won't help much, because send_trans2_replies_new still allocates
the big buffers, but stay tuned :-)

Also add/update my copyright on stuff I recently touched.

Volker
2007-10-10 12:29:10 -05:00
Volker Lendecke
d4d550aa2b r24119: Convert reply_exit to the new API 2007-10-10 12:29:08 -05:00
Volker Lendecke
6e5f39379f r24100: Convert reply_ntcancel to the new API 2007-10-10 12:29:06 -05:00
Volker Lendecke
28025fc17e r24091: Convert reply_ntcreate_and_X to the new API
The routines called will follow
2007-10-10 12:29:05 -05:00
Volker Lendecke
1bb2b341e2 r24089: Add reply_prep/post_legacy
Routines to ease the transition to the new API
2007-10-10 12:29:04 -05:00
Volker Lendecke
fb0a1b7bd0 r24088: Convert reply_unlink to the new API 2007-10-10 12:29:04 -05:00
Volker Lendecke
bbc99e1c3b r24086: Convert reply_ulogoffX to the new API 2007-10-10 12:29:04 -05:00
Volker Lendecke
7689048d71 r24085: Convert reply_rmdir to the new API 2007-10-10 12:29:03 -05:00
Volker Lendecke
e93f3996fc r24084: Convert reply_mkdir to the new API 2007-10-10 12:29:03 -05:00
Volker Lendecke
c8e0aa5752 r24079: Convert reply_dskattr to the new API 2007-10-10 12:29:03 -05:00
Volker Lendecke
bd0cb48dde r24077: Convert reply_tdis to the new API 2007-10-10 12:29:02 -05:00
Volker Lendecke
35675a6a33 r24056: Another big one: This converts reply_sesssetup_and_X to the new API. As usual,
its history can be found on http://samba.org/~vlendec/sesssetup/. This very
obviously needs close review.

Volker
2007-10-10 12:29:00 -05:00
Volker Lendecke
a2ecc34aa4 r24046: Fix a 64-bit warning 2007-10-10 12:28:59 -05:00
Volker Lendecke
e5c7c6406a r24004: Convert reply_checkpath to the new API 2007-10-10 12:28:55 -05:00
Volker Lendecke
9422385d9c r24003: Convert reply_tcon_and_X to the new API 2007-10-10 12:28:55 -05:00
Volker Lendecke
bd981f5328 r24002: Convert reply_negprot to the new API 2007-10-10 12:28:54 -05:00
Volker Lendecke
e3a10e9ffb r23999: Convert reply_open_and_X
This is an example of chained code that is executed in make test
2007-10-10 12:28:54 -05:00
Volker Lendecke
dbf74cb747 r23998: Convert reply_close to the new API 2007-10-10 12:28:54 -05:00
Volker Lendecke
5594af2b20 r23997: Check in the infrastructure for getting rid of the global InBuffer/OutBuffer
The complete history of this patch can be found under
http://www.samba.org/~vlendec/inbuf-checkin/.

Jeremy, Jerry: If possible I would like to see this in 3.2.0. I'm only
checking into 3_2 at the moment, as it currently will slow down operations for
all non-converted (i.e. all at this moment) operations, as it will copy the
talloc'ed inbuf over the global InBuffer. It will need quite a bit of effort
to convert everything necessary for the normal operations an XP box does.

I have patches for negprot, session setup, tcon_and_X, open_and_X, close. More
to come, but I would appreciate some help here.

Volker
2007-10-10 12:28:53 -05:00
Volker Lendecke
0484de27d9 r23990: Reformatting for 80 cols and trailing whitespace 2007-10-10 12:28:53 -05:00
Volker Lendecke
ada23b7f06 r23988: Looks a lot more scary than it is: This just unwraps the else-branch of
if (smb_messages[type].fn == NULL) { into the function top-level. Makes
this function a bit easier to understand IMO.

Volker
2007-10-10 12:28:52 -05:00
Volker Lendecke
ebf1b1e97c r23987: Remove static pid in switch_message()
There's no point in duplicating functionality that exists in
sys_getpid() that also only used in a debug statement
2007-10-10 12:28:52 -05:00
Volker Lendecke
3b811134c0 r23813: Remove unused global variable 2007-10-10 12:28:29 -05:00
Andrew Tridgell
b0132e94fc r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Volker Lendecke
a50555dda7 r23725: Remove get_current_mid()
Jeremy, next one to review :-)
2007-10-10 12:23:49 -05:00
Volker Lendecke
ca988f4e79 r23724: Reduce access to the global inbuf a tiny bit. Add a struct smb_request
that contains some of the fields from the SMB header, removing the need
to access inbuf directly. This right now is used only in the open file
code & friends, and creating that header is only done when needed. This
needs more work, but it is a start.

Jeremy, I'm only checking this into 3_0, please review before I merge it
to _26.

Volker
2007-10-10 12:23:48 -05:00
Volker Lendecke
6affd7818f r23537: Revert the inbuf/outbuf part of r23528: This caused the Solaris CC make test
to break. The Solaris CC put the static char InBuffer[TOTAL_BUFFER_SIZE] on an
odd address, the malloc'ed one is always aligned. The problem showed up in
pull_ucs2, ucs2_align uses the address of InBuffer as an indication whether to
bump up the src of the string by one. Unfortunately in the trans calls the
data portion is malloced and thus has different alignment guarantees than a
static variable. This one is bigger....

Volker
2007-10-10 12:23:26 -05:00
Volker Lendecke
009af09099 r23528: Two changes to make the valgrind massif (heap profiler) output readable:
Remove the allocated inbuf/output. In async I/O we copy the buffers
explicitly now, so NewInBuffer is called exactly once. This does not
reduce memory footprint, but removes one of the larger chunks that
clobber the rest of the massif output

In getgroups_unix_user on Linux 2.6 we allocated 64k groups x 4 bytes
per group x 2 (once in the routine itself and once in libc) = 512k just
to throw it away directly again. This reduces it do a more typical limit
of 32 groups per user. We certainly cope with overflow fine if 32 is not
enough. Not 100% sure about this one, a DEVELOPER only thing?
2007-10-10 12:23:26 -05:00
Volker Lendecke
eaefd00563 r23055: Rewrite messages.c to use auto-generated marshalling in the tdb. I'm
doing this because for the clustering the marshalling is needed in more
than one place, so I wanted a decent routine to marshall a message_rec
struct which was not there before.

Tridge, this seems about the same speed as it used to be before, the
librpc/ndr overhead in my tests was under the noise.

Volker
2007-10-10 12:22:17 -05:00
Volker Lendecke
74fa57ca5d r22868: Replace some message_send_pid calls with messaging_send_pid calls. More
tomorrow.
2007-10-10 12:22:04 -05:00
Volker Lendecke
cd55ccef6a r22695: Dummy checkin (reformatting) to make the AIX hosts retry. 2007-10-10 12:21:46 -05:00
Volker Lendecke
3a2ca1b1b8 r22691: Fix a 64-bit warning and a const const discard warning 2007-10-10 12:21:46 -05:00
Volker Lendecke
f5ccec4228 r22458: Fix a comment 2007-10-10 12:19:34 -05:00
Jeremy Allison
2d80a96120 r22391: Looks bigger than it is. Make "inbuf" available
to all callers of smb_setlen (via set_message()
calls). This will allow the server to reflect back
the correct encryption context.
Jeremy.
2007-10-10 12:19:30 -05:00
Jeremy Allison
b49e90335d r22389: Start preparing for multiple encryption contexts in the
server. Allow server to reflect back to calling client
the encryption context that was sent.
Jeremy.
2007-10-10 12:19:30 -05:00
Volker Lendecke
629f966714 r22213: We can't use become_root() here, as it does DEBUG()
itself. become_root_uid_only did not :-)

Revert 21868, we need to find a better way.

Volker
2007-10-10 12:19:20 -05:00
Jeremy Allison
38404c990d r22145: Fix bug #4494 - reported by Kevin Jamieson <bugzilla@kevinjamieson.com>.
If returning a mapped UNIX error from sendfile, don't call chain_reply.
Jeremy.
2007-10-10 12:19:16 -05:00