1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-19 23:17:05 +03:00

820 Commits

Author SHA1 Message Date
Stefan Metzmacher
4154bee0d9 r24306: the check_fsp() function has an explicit user argument
so use it...

metze
2007-10-10 12:29:26 -05:00
Volker Lendecke
f18b7a9a28 r24279: Remove reply_prep_legacy from reply_write_and_X 2007-10-10 12:29:24 -05:00
Volker Lendecke
de143d5fa6 r24278: Push down reply_prep_legacy in reply_write_and_X
Remove the need for reply_prep_legacy for reply_pipe_write_and_X
2007-10-10 12:29:24 -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
36f2347561 r24270: Fix some END_PROFILE(SMBwriteX) 2007-10-10 12:29:23 -05:00
Volker Lendecke
1297fac117 r24269: Check wct in reply_write_and_X 2007-10-10 12:29:23 -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
a3d77a576f r24141: Add check_fsp as a replacement for CHECK_FSP 2007-10-10 12:29:12 -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
5fd7e6a382 r24130: Explicitly pass flags2 to srvstr_push
This is in preparation of the trans2 conversion: srvstr_push should not
look at inbuf directly.
2007-10-10 12:29:09 -05:00
Stefan Metzmacher
cdaa24e804 r24120: add a file_id_create() hook into the VFS layer
it's needed for some cluster filesystems to
overload this function.

metze
2007-10-10 12:29:08 -05:00
Volker Lendecke
d4d550aa2b r24119: Convert reply_exit to the new API 2007-10-10 12:29:08 -05:00
Volker Lendecke
d70a1f82fe r24102: Pass the fid instead of inbuf and an offset to file_fsp.
This removes the buf==NULL condition in file_fsp(), but wherever it is called
we do have a buffer anyway.

Volker
2007-10-10 12:29:07 -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
c9f12326dd r24071: Fix a missing END_PROFILE call 2007-10-10 12:29:01 -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
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
bc106cf507 r23992: Some const 2007-10-10 12:28:53 -05:00
Jeremy Allison
99f72dd9af r23913: Revert back to Volker's original logic to fix the
RAW-SFILEINFO-RENAME until I can figure out what
is different from the way CIFSFS drives this in
the cthon tests and the way smbtorture drives it.
Jeremy.
2007-10-10 12:28:41 -05:00
Jeremy Allison
90bbc077e1 r23911: Revert r23910 to try and fix the build farm. I
need to look at this more closely tomorrow.
Stevef's cthon tests definately show we're not
matching Windows behaviour (as his tests pass
against Windows but not SAMBA_3_2) but this isn't
the fix.
Jeremy.
2007-10-10 12:28:41 -05:00
Jeremy Allison
03e3d58746 r23910: We used to deny renames on the
source open for non-delete open.
Turns out this is not the case.
VL please test but this matches
Windows behaviour. (I'll add a
torture test tomorrow).
Jeremy.
2007-10-10 12:28:41 -05:00
Jeremy Allison
0989877fd1 r23909: Get closer to passing the cthon tests for delete open file.
It matters how the target is open.
Jeremy.
2007-10-10 12:28:40 -05:00
Volker Lendecke
7f4ceb1bf0 r23904: Remove an unused variable reference 2007-10-10 12:28:40 -05:00
Jeremy Allison
98c2393973 r23902: Fix uninitialized read in devicetype noticed by Volker.
Jeremy
2007-10-10 12:28:39 -05:00
Jeremy Allison
b4eff3f680 r23858: Added srvstr_pull_buf_talloc() and srvstr_pull_talloc()
calls and converted reply_tcon and reply_tconX to use
them - to show the boilerplate usage (valgrind tested).
In conjunction with Volker's srvstr_get_path_talloc()
work this should allow us to start eliminating all
pstrings/fstrings out of the main path processing
code.
I'll watch the build farm tonight...
Jeremy.
2007-10-10 12:28:35 -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
Jeremy Allison
af715c602a r23752: Fix bug introduced by checkin 22920, allow large
readX. Fix from Dmitry Shatrov <dhsatrov@linux.vnet.ibm.com>.

"In send_file_readX(), if startpos > sbuf.st_size, then smb_maxcnt is set
to an invalid large value due to integer overflow.
As for me, this resulted in MS Word hanging while trying to save
a 1.5Mb document."

This isn't in shipping code.

Jeremy.
2007-10-10 12:23:52 -05:00
Volker Lendecke
b02115f2ca r23731: Forgot one reference to inbuf 2007-10-10 12:23:50 -05:00
Volker Lendecke
18078b9faa r23727: Explicitly pass down FLAGS2 to srvstr_get_path.
Next step is to remove the bug that in the trans2 code we use the inbuf
as the base pointer to decide whether we need ucs2 alignment where we
need to use the beginning of the params buffer

Jeremy, last one for today to reviw :-)
2007-10-10 12:23:49 -05:00
Volker Lendecke
836782b07b r23726: Explicitly pass down the FLAGS2 field to srvstr_pull_buf. The next
checkin will pull this up to srvstr_get_path. At that point we can get more
independent of the inbuf, the base_ptr in pull_string will only be used
to satisfy UCS2 alignment constraints.
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
48cdafc10a r23538: Fix for wild-card rename: We can't return directly on error, we need to
CloseDir.
2007-10-10 12:23:26 -05:00
Volker Lendecke
1a45ea28ce r23523: Gaa -- had renamed "name" to "path" and apparently not compiled after
that....

Volker
2007-10-10 12:23:25 -05:00
Volker Lendecke
34a13c82a3 r23522: Save us a kilobyte stack space in a hot code path: I can't see a reason
why check_path_syntax should not be able to run in-line. The destination
pointer either walks side by side with the source pointer or is
decremented. So as far as I can see s>=d is true throughout the whole
routine.

Jeremy, I'm checking this only into 3_0 for now. Please review and ack
or directly merge this to 3_0_26.

Thanks,

Volker
2007-10-10 12:23:25 -05:00
Volker Lendecke
aa16d8a649 r23517: After Jeremy has given is ack on irc:
Change rename_internals to open the file/directory and then call
rename_internals_fsp. Two reasons: Remove code duplication and remove a
race condition. The race condition was due to the fact that in
can_rename the share mode check closed the file and then after that did
the rename.
2007-10-10 12:23:24 -05:00
Jeremy Allison
cd3f7dbee8 r23508: Fix sync_file() to return NTSTATUS and return this
on failure in the write path.
Jeremy.
2007-10-10 12:23:23 -05:00
Volker Lendecke
8d3828871c r23501: Move notify_rename before rename_internals_fsp and call it from there. 2007-10-10 12:23:22 -05:00
Volker Lendecke
b599e5b1e1 r23500: Two changes to survive the now activated test for rename_internals_fsp:
With the target being open we have to return NT_STATUS_ACCESS_DENIED and
root_fid != 0 leads to NT_STATUS_INVALID_PARAMETER
2007-10-10 12:23:22 -05:00
Volker Lendecke
575e594e93 r23486: Ok, this time with a hopefully successful make test in the right place:
Remove two local variables
2007-10-10 12:23:21 -05:00
Volker Lendecke
1ce0c582bc r23483: Revert 23482, I must have run 'make test' in the wrong subdir. 2007-10-10 12:23:20 -05:00