1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-05 09:18:06 +03:00
Commit Graph

34741 Commits

Author SHA1 Message Date
Jeremy Allison
16d6da8a9b Move checks inside file_set_sparse() to allow it to be called from anywhere.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Dec 17 21:56:38 CET 2010 on sn-devel-104
2010-12-17 21:56:38 +01:00
Jeremy Allison
fe50632d54 file_set_sparse needs to be a handle based call. 2010-12-17 21:11:04 +01:00
Björn Jacke
192c4a145f s3:smbd: implement FSCTL_SET_SPARSE more correctly
this is a port of a patch from metze for 3.3:

We don't do the "strict allocation" when the sparse bit isn't
set, but that shouldn't matter.

We now allow windows applications to set and unset the sparse
bit.

Note that in order to implement this 100% like described
in [MS-FSA], we'd have to change our data model and support
the sparse flag per stream.
2010-12-17 21:11:04 +01:00
Jeremy Allison
2c10c34968 Update our attribute flags. 2010-12-17 21:11:04 +01:00
Björn Jacke
5c27dd67c8 s3:smbd: add file_set_sparse() function
this is based on a patch for 3.3 from metze
2010-12-17 21:11:04 +01:00
Björn Jacke
9634d03339 s3/vfs_gpfs: map SPARSE attribute to/from WINATTRs, too 2010-12-17 21:11:04 +01:00
Björn Jacke
480042ddf9 s3: remove set_sparse_flag
we need to determine sparseness from the sparse flag we store not from the
allocation size on the POSIX filesystem. This is how Windows works - in the
first place sparseness is a file flag, not the allocation state of the file

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-12-17 21:11:04 +01:00
Björn Jacke
ebe5600615 s3: add FILE_ATTRIBUTE_SPARSE to get_stat_dos_flags 2010-12-17 21:11:04 +01:00
Stefan Metzmacher
1dc2fa7616 s3:net ads dns register: use "cluster addresses" option if configured (bug #7871)
metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Dec 17 16:49:14 CET 2010 on sn-devel-104
2010-12-17 16:49:14 +01:00
Michael Adam
5e83a05009 s3:net ads dns register: add support for specifying addresse on the commandline (bug #7871)
In the clustering case, this is also made the only possiblity to do dns updates,
since the list addresses on the local interfaces is not suitable in that case.

This fixes the "net ads dns register" part of bug #7871.
It might be extended by a parsing of the "cluster addresses" setting.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-12-17 15:59:47 +01:00
Michael Adam
4d91f98b43 s3:net: add net_update_dns_ext() that accepts a list of addresses as parameter (bug# 7871)
This generalized form of net_update_dns() will be used to
add support for specifying a list of addresses on the commandline
of "net ads dns register".

This prepares the "net ads dns register" part of the fix for bug #7871.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-12-17 15:59:44 +01:00
Michael Adam
b8f19df53e s3:net: disable dynamic dns updates at the end of "net ads join" in a cluster (bug #7871)
In a clustered environment, registering the set of ip addresses that are
assigned to the interfaces of the node that performs the join does usually
not have the desired effect, since the local interfaces do not carry
complete set of the cluster's public IP addresses.  And it can also contain
internal addresses that should not be visible to the outside at all.
In order to do dns updates in a clustererd setup, use net ads dns register.

This fixes the net ads join part of bug #7871.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-12-17 15:59:44 +01:00
Günther Deschner
f08fdfae27 s3-net: fix net sid type build warning.
Guenther
2010-12-17 11:33:05 +01:00
Björn Jacke
7f572dfe52 s3/net: tz argument should be NULL of course
Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Fri Dec 17 01:48:40 CET 2010 on sn-devel-104
2010-12-17 01:48:39 +01:00
Jeremy Allison
34c0d016d7 Do more vfs_stat_fsp calls instead of FSTAT - ensures fsp->fsp_name->st is kept up to date.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Dec 16 23:41:06 CET 2010 on sn-devel-104
2010-12-16 23:41:06 +01:00
Günther Deschner
1b293c90be spoolss: fill in PerMachineConnections add and delete IDL.
Guenther
2010-12-16 10:52:50 +01:00
Jeremy Allison
a06519a579 Fix old bug in openX code, exposed when "strict allocate" is set to true.
We need to return the file size here, not the allocation size, but
we were not updating the stat struct after the vfs_set_filesize()
call. Ensure we always use fresh data in openX replies.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Dec 16 02:37:58 CET 2010 on sn-devel-104
2010-12-16 02:37:57 +01:00
Jeremy Allison
ecf48af135 Change strict allocate to default to true. (cherry picked from commit 820ea22a07b062b1717d35de8fa7051fc1067c3f) 2010-12-15 14:09:48 -08:00
Jeremy Allison
b3630b4739 Fix bug 7866 - "net" in v3-6-test broken.
Someone wasn't careful about testing when not running as root :-).

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Dec 15 20:45:25 CET 2010 on sn-devel-104
2010-12-15 20:45:25 +01:00
Stefan Metzmacher
8b47fcea04 s3:rpc_client: implement rpc_transport_np_init() on top of rpc_transport_tstream_init()
This also makes use of tstream_cli_np_open() to get the tstream.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Dec 15 16:12:30 CET 2010 on sn-devel-104
2010-12-15 16:12:30 +01:00
Stefan Metzmacher
0342ed3ee0 s3:rpc_client: implement rpc_transport_sock_init() on top of rpc_transport_tstream_init()
metze
2010-12-15 15:26:05 +01:00
Stefan Metzmacher
122dc1e213 s3:rpc_client/rpc_transport_tstream.c: add some logic to handle cli_np tstreams
metze
2010-12-15 15:26:05 +01:00
Stefan Metzmacher
9a14dace22 s3:rpc_client/rpc_transport_tstream: timeout should be unsigned int
metze
2010-12-15 15:26:05 +01:00
Stefan Metzmacher
e55426fe79 s3:rpc_client: let rpc_transport_tstream_init() create read and write queue
metze
2010-12-15 15:26:05 +01:00
Stefan Metzmacher
07ba35adcb s3:libsmb: add tstream_cli_np_get_cli_state()
metze
2010-12-15 15:26:05 +01:00
Stefan Metzmacher
c0f9e963b6 s3:libsmb: add tstream_cli_np_set_timeout()
metze
2010-12-15 15:26:05 +01:00
Stefan Metzmacher
0df669e141 s3:libsmb: add tstream_cli_np_use_trans() and the needed logic
tstream_cli_np_use_trans() defers the next tstream_writev
to the next tstream_readv and send both as an SMBtrans request.

metze
2010-12-15 15:26:05 +01:00
Stefan Metzmacher
e08c324fc5 s3:libsmb: add tstream_is_cli_np()
metze
2010-12-15 15:26:05 +01:00
Stefan Metzmacher
c0ac1cebfb s3:libsmb: add cli_np_tstream.c
This abstracts a named pipe over smb as a tstream,
which will make it easier to implement the dcerpc
layer in a more generic way.

metze
2010-12-15 15:26:05 +01:00
Günther Deschner
af99f0a067 s3-waf: use shared libwbclient wscript_build.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Dec 15 11:42:16 CET 2010 on sn-devel-104
2010-12-15 11:42:16 +01:00
Günther Deschner
550046a4d9 s3-waf: fix winbind-client subsystem.
Guenther
2010-12-15 10:56:18 +01:00
Günther Deschner
7ecec74a00 s3-waf: add libkrb5 winbind locator plugin.
Guenther
2010-12-15 10:56:18 +01:00
Günther Deschner
5130e4a622 s3-waf: rework rpc_server handling a bit.
Guenther
2010-12-15 10:56:18 +01:00
Jeremy Allison
12e49a748c Protect the onefs sendfile from EAGAIN/EWOULDBLOCK.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Dec 15 03:26:43 CET 2010 on sn-devel-104
2010-12-15 03:26:43 +01:00
Jeremy Allison
a8eed184a0 Implement "use sendfile = yes" for SMB2. (cherry picked from commit 95cb7adcd03a1abbd0af395b6c96dd8e0eebd3d1)
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Dec 15 02:24:08 CET 2010 on sn-devel-104
2010-12-15 02:24:08 +01:00
Jeremy Allison
e071fd711d Fix read/write calls over sockets to cope with EAGAIN/EWOULDBLOCK for non-blocking sockets. 2010-12-15 01:38:16 +01:00
Jeremy Allison
14c70346fc Change interface of schedule_smb2_aio_read() to allocate the return DATA_BLOB.
Change smb2_read code to allocate return DATA_BLOB just before the read.

Preparing for SMB2 sendfile change which will not need to allocate
return buffer.

Jeremy
2010-12-15 01:38:16 +01:00
Günther Deschner
4bcedda7d8 s3-waf: libwbclient does not depend on talloc anymore.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Dec 15 00:50:08 CET 2010 on sn-devel-104
2010-12-15 00:50:07 +01:00
Günther Deschner
4f4f7694c1 s3-waf: add missing libnss_wins.so.2 library.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Dec 14 23:29:25 CET 2010 on sn-devel-104
2010-12-14 23:29:25 +01:00
Günther Deschner
9e6736cafd s3-waf: recurse into ../libcli/ldap.
Guenther
2010-12-14 22:42:19 +01:00
Günther Deschner
3e6d507246 s3-waf: recurse into ../libcli/smb.
Guenther
2010-12-14 22:42:19 +01:00
Günther Deschner
f2bd9e52b8 s3-waf: recurse into ../libcli/samsync.
Guenther
2010-12-14 22:42:19 +01:00
Günther Deschner
baabd56ce9 s3-waf: recurse into ../libcli/named_pipe_auth.
Guenther
2010-12-14 22:42:19 +01:00
Günther Deschner
217ca2a2c9 s3-waf: recurse into ../libcli/drsuapi.
Guenther
2010-12-14 22:42:18 +01:00
Günther Deschner
d860281cd9 s3-waf: add pam_ and nss_winbind.
Guenther
2010-12-14 22:42:18 +01:00
Günther Deschner
a13b993237 s3-waf: check for "WITH_PAM_MODULES" to determine pam_smbpass build.
Guenther
2010-12-14 22:42:18 +01:00
Günther Deschner
1202e6328b s3-waf: fix pamsmbpass libwbclient dependency.
Guenther
2010-12-14 22:42:18 +01:00
Günther Deschner
906e489af9 s3-waf: recurse into ../libcli/auth.
Guenther
2010-12-14 22:42:18 +01:00
Günther Deschner
4c459a926f s3-waf: add CHARSET subsystem.
Guenther
2010-12-14 22:42:18 +01:00
Günther Deschner
943f485ef1 s3-waf: convert UTIL_SRC into a subsystem samba-util, similar to the s4 one.
Guenther
2010-12-14 22:42:17 +01:00