1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

23578 Commits

Author SHA1 Message Date
Jeremy Allison
638579d75a Ensure we use the correct socklen_t values for bind() for
Solaris.
Jeremy.
2007-11-02 14:22:19 -07:00
Jeremy Allison
6b7ccd3efb Fix typos in calc_sa_size, noticed by jim.brown@miami.edu
Jeremy.
2007-11-02 12:56:21 -07:00
Jeremy Allison
81ca5853b2 Change the client library to write directly out of
the incoming buffer in the non-signed case. Speeds
up writes by over 10% or so. Complete the server
recvfile implementation.
Jeremy.
2007-11-02 12:21:34 -07:00
Jeremy Allison
319dfbaf1b Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test 2007-11-02 12:06:15 -07:00
Jeremy Allison
619e33248d Forgot one more getnameinfo.
Jeremy.
2007-11-02 12:05:17 -07:00
Gerald (Jerry) Carter
95de80218c Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-test 2007-11-02 14:16:40 -04:00
Gerald (Jerry) Carter
10af752391 Fix build breakage when not specifying --with-fhs.
Ensure that CODEPAGEDIR, STATEDIR, and CACHEDIR have values.
2007-11-02 14:16:06 -04:00
Jeremy Allison
c3de44b6b0 Argggh. smblen doesn't include the +4, so my smb_doff calculations
shouldn't either :-).
Jeremy.
2007-11-02 10:35:10 -07:00
Jeremy Allison
4d7badb0c4 Fix Solaris by ensuring we use the IPv4 or IPv6 length
in any getnameinfo calls.
Jeremy
2007-11-02 10:25:34 -07:00
Jeremy Allison
8c73e19f51 Fix state_path to take a const string, not use pstring.
Jeremy.
2007-11-02 09:27:04 -07:00
Jeremy Allison
84d22f7747 Ensure we can't accidently do a pipe write with
unread bytes in the socket buffer.
Jeremy
2007-11-01 22:42:21 -07:00
Jeremy Allison
2d3ff9c502 Be careful and take care of the correct lengths in large
writeX calls.
Jeremy.
2007-11-01 22:24:39 -07:00
Jeremy Allison
1c71546b61 Ensure we detect a large writeX when using recvfile.
More changes needed to make the UNIX_LARGE_WRITEX_CAP
writes work (I'll add these tomorrow).
Jeremy.
2007-11-01 21:51:45 -07:00
Gerald (Jerry) Carter
779353b86d Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-test 2007-11-01 21:30:43 -04:00
Jeremy Allison
47dbddcb53 Add brackets so as not to break the POSIX caps return.
Jeremy.
2007-11-01 18:30:02 -07:00
Volker Lendecke
b481abf591 Fix for bug 5021
This is a different fix than the bug reporter (Evgeniy Dushistov
<dushistov at mail.ru>, thanks!) created, but it lives without the boolean
status variable. Untested so far, but I can not add attachments to bugs right
now. But to me this looks really obvious.
2007-11-01 13:59:35 -07:00
Gerald (Jerry) Carter
d6cdbfd875 Patch 2 of 3 from Debian Samba packagers:
The point is doing the following associations:

- non discardable state data (all TDB files that may need to be backed
  up) go to statedir
- shared data (codepage stuff) go to codepagedir

The patch *does not change* the default location for these
directories. So, there is no behaviour change when applying it.

The main change is for samba developers who have to think when dealing
with files that previously pertained to libdir whether they:
- go in statedir
- go in codepagedir
- stay in libdir
2007-11-01 15:53:44 -04:00
Volker Lendecke
94f2c35a68 save memory
Hi!

Attached find a patch that I've wanted to check in for ages.
The whole area probably needs a major rewrite, but this is a
minimal patch that on a 32-bit box saves 1.5k per smbd per
defined share, twice as much on a 64-bit box.

Volker

From ebb80e664ecc49eb597a45cb57e1067fbae49e62 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl@sernet.de>
Date: Wed, 31 Oct 2007 15:04:34 +0100
Subject: [PATCH] Change global->copymap from bool* to a bitmap

We right now have 401 parameters, so with bool being represented as a 64-bit
integer this saves about 3k of memory per smbd per share that is defined in
smb.conf.
2007-11-01 11:04:24 -07:00
Jeremy Allison
5cf2811e8e Add missing recvfile_bytes element - noticed by Kukks.
Jeremy.
2007-11-01 10:21:27 -07:00
Gerald (Jerry) Carter
b7d2fadbef Patch from Debian Samba package maintainers:
Patch 1 of 3:

- Patch 1 adds the new variables
- Patch 2 makes uses of them for files belonging to the "state" path
  and the "code pages" path
  This patch seemed more easily acceptable, which explains why we
  separated it from patch 3
- Patch 3 reassigns files to the "cache" path. Indeed all "debatable"
  changes have been moved to that one

The point is adding:

- a path for non discardable state data: basically all TDB files
  that may need to be backed up
- a path for shared data: mostly codepage stuff
- a path for cache data to host files such as
  browse.dat, printers.tbd, <printer>.tdb

All these are currently mixed in "libdir" (${prefix}/lib/samba by default).
The patch keeps these new paths to point to ${prefix}/lib/samba by default
and does therefore not change the software behaviour.  Used alone, it just
adds unused variables...so it can safely be used in sources without any
behaviour change and no impact on Samba developers work.
2007-11-01 13:00:10 -04:00
Michael Adam
6913536064 Enable building the zfsacl VFS module by specifying
"--with-shared-modules=vfs_zfsacl" on the configure command line.

Michael
2007-11-01 14:24:27 +01:00
Jeremy Allison
8a77f520fa Note when we're setting change time, not write time, and send
message accordingly. Apart from not supporting create time we
now pass the S4 RAW-NOTIFY torture.
Jeremy.
2007-10-31 16:32:48 -07:00
Jeremy Allison
39d265375c Fix some cases where file_set_dosmode was being passed
False instead of NULL. Fix more of the notifications to
be correct for Samba4 RAW-NOTIFY torture (we had missed
one when calling set_ea_dos_attribute().
Jeremy.
2007-10-31 15:45:45 -07:00
Jeremy Allison
8fbefe18a2 Fix vfstest link - move socket calls into smbd/process.c
not smbd/server.c
Jeremy
2007-10-31 14:24:52 -07:00
Jeremy Allison
52f13d8495 Add printout of large read/write caps if detected.
Jeremy.
2007-10-31 14:12:50 -07:00
Jeremy Allison
8cf78776b0 Make explicit draining the socket on RECVFILE. Add
capability for large UNIX write if not signing and
recvfile set. Cope with large UNIX write length on
incoming processing. Stevef - we can now test 1-16Mb
writes from CIFFS.
Jeremy.
2007-10-31 14:01:35 -07:00
Jeremy Allison
b7088bb9c2 Handle the disk full error case correctly.
Jeremy.
2007-10-30 18:18:40 -07:00
Jeremy Allison
247675695d Ensure we don't prematurely clean out the bytes read.
Jeremy.
2007-10-30 17:42:02 -07:00
Jeremy Allison
11c03b75dd Add new parameter, "min receivefile size" (by default set
to zero). If non-zero, writeX calls greater than this
value will be left in the socket buffer for later handling
with recvfile (or userspace equivalent). Definition of
recvfile for your system is left as an exercise for
the reader (I'm working on getting splice working :-).
Jeremy.
2007-10-30 16:22:24 -07:00
Jeremy Allison
765b37c693 Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test 2007-10-30 12:55:56 -07:00
Jeremy Allison
3d3d1b806a Our userlevel SMBwriteX call is non-standard in that it
sometimes uses a 12-word write and doesn't include a pad
byte (as Windows does). Fix this so that we are identical
to Windows clients. This will make recvfile processing
much easier to detect (as we can just read a standard
writeX header length to decide).
Jeremy.
2007-10-30 12:54:39 -07:00
Jeremy Allison
c833c33643 Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test 2007-10-30 10:19:45 -07:00
Stefan Metzmacher
95f76ae7a5 start smbd, nmbd and winbindd with the same startup message
at debug level 0.

metze
2007-10-30 15:44:27 +01:00
Jeremy Allison
d5886218e5 Forgot to add recvfile.c
Jeremy.
2007-10-29 17:17:16 -07:00
Jeremy Allison
bfbdb6324c Add in the recvfile entry to the VFS layer with a default
implementation. Needed for the zero-copy write code.
Jeremy.
2007-10-29 17:16:13 -07:00
Jeremy Allison
bda8c0bf57 Fix the setup_kaddr() call to cope with IPv6.
This is the last obvious change I can see. At
this point we can start claiming IPv6 support
(Hurrah !:-).
Jeremy.
2007-10-29 15:03:36 -07:00
Jeremy Allison
814daded90 Change our DNS code to cope with AAAA records. A6 records
look like a nightmare to use, so ignore them for now.
Jeremy.
2007-10-29 13:34:00 -07:00
Volker Lendecke
95cc019af7 Enable vfs objects = /full/path/to/object.so
Right now I'm testing a vfs object. I can't right now in make test, because
"vfs objects" assumes the .so files to be in $libdir/vfs. This patch parses the
module name out of the object name in case it starts with "/". The module name
is assumed to be the last path component's basename.
2007-10-28 12:30:44 -04:00
Jeremy Allison
2e92418a13 Change all occurrences of zero_addr(&ss,AF_INET) to
zero_addr(&ss). All current uses were always of the
AF_INET form, so simplify the call. If in the future
we need to zero an addr to AF_INET6 this can be
done separately.
Jeremy.
2007-10-27 20:29:36 -07:00
Jeremy Allison
9f82a57669 Fix zero_addr(&ip, INADDR_ANY); -> zero_addr(&ip, AF_INET)
from Volker's patch.
Jeremy.
2007-10-27 12:51:38 -07:00
Volker Lendecke
e17d3e10e8 Two patches
Hi!

Can you check and push them?

Thanks,

Volker

From b488af5905e2dee12a1a72a3b40801ae5c26f24f Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl@sernet.de>
Date: Sat, 27 Oct 2007 14:20:09 +0200
Subject: [PATCH] Fix some warnings and errors
2007-10-27 12:50:36 -07:00
Stefan Metzmacher
83b3ecde13 rerun make idl
metze
2007-10-27 11:57:48 +02:00
metze
3625ed395c add NDR_ERR_INVALID_POINTER
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25744 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-10-27 10:27:38 +02:00
Jeremy Allison
25bbc9a661 Ensure temporary memory is freed - pointed out by "Li, Ying (ESG)" <ying.li2@hp.com>.
We aren't currently leaking memory, but are leaving it around for
longer than we need to.
Jeremy.
2007-10-26 17:58:28 -07:00
Jeremy Allison
9993f8d1af Fix popt bool problems (need POPT_ARG_NONE, not POPT_ARG_VALUE).
Reported by kukks - thanks !
Jeremy.
2007-10-26 16:22:18 -07:00
Jeremy Allison
a3f7db3d30 Move the horrible hack for link local addresses out of namequery.c
and into util_sock.c. is_ipaddress() now copes with link:local:v6%ifname
addresses, as does interpret_string_addr().
Jeremy
2007-10-26 16:03:20 -07:00
Jeremy Allison
4b3635d6bc Fix a few more sockaddr -> sockaddr_storgage.
Jeremy.
2007-10-26 16:02:16 -07:00
Stefan Metzmacher
cecc807551 one more struct in_addr => struct sockaddr_storage
jra: please check this...

metze
2007-10-26 16:37:32 +02:00
Jeremy Allison
f109f82622 Fix bug in writing names into gencache
as well as 2 typos where AF_INET6 was mistypes as AF_INET.
JERRY YOU NEED THESE FIXES.
Fixes smbclient -L localhost -U%
Bugs reported by Kukks (thanks kukks).
Jeremy.
2007-10-25 19:07:25 -07:00
Jeremy Allison
e6609cab73 Fix resolve name to resolve IPv6 addresses of link-local%ifaddr
Jeremy.
2007-10-25 18:28:36 -07:00