Volker Lendecke
27aece7200
s3: Actually use the usecs in aio_fork_suspend
...
Jeremy, please check!
2010-07-18 21:22:41 +02:00
Volker Lendecke
1946beb679
s3: Fix an uninitialized variable
2010-07-18 21:22:41 +02:00
Andreas Schneider
d11e184ed2
s3-vfs: Make sure that retval isn't used uninitialized.
...
Found by clang-analyzer.
2010-06-28 12:56:13 +02:00
Volker Lendecke
330a64c72b
s3: Explicitly pass sconn to process_blocking_lock_queue
2010-06-12 15:42:56 +02:00
Jeremy Allison
d28fa8faab
Rename "allow_smb2" -> "using_smb2" and make the usage clearer.
2010-06-09 19:12:02 -07:00
Björn Jacke
6a6bb768c6
s3: fix calculation of st_blocks in streams_xattr
...
Thanks to Joachim Schmitz for finding that miscalculation.
2010-06-09 15:27:38 +02:00
Jeremy Allison
62e0a744e2
Fix a long-standing bug with async io that would only be triggered by SMB2.
...
On normal or shutdown close, ensure we wait for any pending IO to
complete before returning. Implement a blocking aio_suspend inside
vfs_aio_fork.c. These changes pass make test when the aio_fork module
is used by default on the test shares.
Jeremy.
2010-06-04 21:00:24 -07:00
Jeremy Allison
fb79a8d7f0
Oops. Forgot to re-initialize the aio_ex pointer from sival_ptr.
2010-06-04 13:49:38 -07:00
Jeremy Allison
e0acee4919
Change smbd_aio_complete_mid() -> smbd_aio_complete_aio_ex(). Simplifies
...
the code and eliminates find_aio_ex().
Jeremy.
2010-06-04 11:30:46 -07:00
Volker Lendecke
12d1a3b0a5
s3: Fix the build of the nfsv4 acl code
2010-06-03 16:10:47 +02:00
Günther Deschner
b6a2cea74d
s3-security: use shared "Standard access rights.".
...
Guenther
2010-06-03 11:00:26 +02:00
Günther Deschner
b5c2af9447
s3-security: use shared "File Object specific access rights".
...
Guenther
2010-06-03 11:00:25 +02:00
Günther Deschner
37b978c343
s3-security: use shared "Generic access rights".
...
Guenther
2010-06-03 11:00:25 +02:00
Günther Deschner
a75436e3ee
s3-security: use shared SECINFO_DACL define.
...
Guenther
2010-06-03 11:00:12 +02:00
Günther Deschner
e24a59f932
s3-security: use shared SECINFO_SACL define.
...
Guenther
2010-06-03 10:59:54 +02:00
Günther Deschner
630c27bdad
s3-security: use shared SECINFO_GROUP define.
...
Guenther
2010-06-03 10:59:38 +02:00
Günther Deschner
415d3d5fe7
s3-security: use shared SECINFO_OWNER define.
...
Guenther
2010-06-03 10:59:15 +02:00
Günther Deschner
bcd4077be6
s3: remove unused librpc/ndr/sid.c.
...
Guenther
2010-06-03 01:07:17 +02:00
Volker Lendecke
95863bfb5e
s3: Add vfs_linux_xfs_sgid
...
http://oss.sgi.com/bugzilla/show_bug.cgi?id=280 shows an old Linux XFS bug that
still exists: Under certain circumstances the SGID bit is not inherited.
2010-06-02 12:30:51 +02:00
Holger Hetterich
b81f8b131c
s3-vfs: Send the share name instead of the path in smb_traffic_analyzer.
...
In protocol v2, the name of the service should be sent instead of the
path.
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-06-01 22:10:52 +02:00
Günther Deschner
f9f8007361
s3-build: only use ndr_security.h where needed.
...
Guenther
2010-05-31 11:32:37 +02:00
Simo Sorce
d9cffc01be
s3:auth use info3 in auth_serversupplied_info
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-28 00:55:53 +02:00
Holger Hetterich
dd895e526c
vfs_smb_traffic_analyzer.c: set the len variable when running protocol v1.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-05-27 10:27:07 +02:00
Andrew Bartlett
cba7f8b827
s3:dom_sid Global replace of DOM_SID with struct dom_sid
...
This matches the structure that new code is being written to,
and removes one more of the old-style named structures, and
the need to know that is is just an alias for struct dom_sid.
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-21 10:39:59 +02:00
Günther Deschner
d4474ba470
s3-secdesc: use SD_REVISION from security.idl.
...
Guenther
2010-05-18 12:52:18 +02:00
Günther Deschner
7f6bb48bdf
s3-secdesc: remove "typedef struct security_descriptor SEC_DESC".
...
Guenther
2010-05-18 12:30:12 +02:00
Günther Deschner
8951c8301a
s3-secdesc: remove "typedef struct security_acl SEC_ACL".
...
Guenther
2010-05-18 12:30:12 +02:00
Günther Deschner
a8b01d1f3b
s3-secdesc: remove "typedef struct security_ace SEC_ACE".
...
Guenther
2010-05-18 12:30:11 +02:00
Jelmer Vernooij
b8268cf7b0
s3: Remove use of iconv_convenience.
2010-05-18 11:45:31 +02:00
Günther Deschner
1d2dd47d31
s3-crypto: only include crypto headers when crypto is done.
...
Guenther
2010-05-18 00:44:27 +02:00
Jeremy Allison
895b99fd6b
Be more forgiving on client oplock break failure (as Windows does). Remove a global.
...
Jeremy.
2010-05-13 11:33:02 -07:00
Jeremy Allison
ed6fa379ef
Treat an open of stream ::$DATA as an open of the base file.
...
This fixes a class of SMB_ASSERT failures when doing stream tests.
Jeremy.
2010-05-13 10:54:15 -07:00
Günther Deschner
24b2dddae4
s3-build: fix the build of vfs_notify_fam.
...
Guenther
2010-05-06 10:28:31 +02:00
Jeremy Allison
f4092ecec7
Plumb the SMB2 front end into the blocking lock backend.
...
Metze, you'll probably be happier with this work as it
doesn't abuse tevent in the way you dislike. This is a
first cut at the code, which will need lots of testing
but I'm hoping this will give people an idea of where I'm
going with this.
Jeremy.
2010-04-30 21:03:20 -07:00
Jeremy Allison
ebf6340bb5
Move the global blocking lock records into the smb1 state.
...
Jeremy
2010-04-29 16:50:15 -07:00
Simo Sorce
168b86c384
s3-smbd: group print relate data in own structure
2010-04-23 14:26:33 -07:00
Jeremy Allison
2bbb8c917e
Allow smb2 create requests to be cancelled.
...
Jeremy.
2010-04-23 13:10:15 -07:00
Jeremy Allison
8f67f873ac
Make deferred opens (NT_STATUS_SHARING_VIOLATION) work over SMB2.
...
Makes SMB2Create call re-entrant internally.
Now this infrastructure is in place, oplocks will follow shortly.
Tested with Win7 client and with W2K8R2.
Jeremy.
2010-04-22 23:52:19 -07:00
Ira Cooper
e1ca451794
s3: Improved support for GAMIN.
...
Support the FAMNoExists API for gamin to reduce cpu use and problems when
using GAMIN as FAM for vfs_notify_fam.
2010-04-18 15:12:41 +02:00
Jeremy Allison
7984243768
Move to using 64-bit mid values in our internal open file database.
...
This will allow us to share logic much easier between SMB1 and SMB2
servers.
Jeremy
2010-04-12 21:40:28 -07:00
Jeremy Allison
e15939b456
Plumb SMB2 stubs into all the places we defer SMB1 operations.
...
Rename functions to be internally consistent. Next step is
to cope queueing single (non-compounded) SMB2 requests to
put some code inside the stubs.
Jeremy.
2010-04-09 19:26:34 -07:00
Volker Lendecke
2754a8e2b6
Fix related to bug #7326 - can't read/write any files with full_audit
2010-04-05 13:50:59 -07:00
Volker Lendecke
59d09cbed8
s3: Use bitmap_talloc in vfs_full_audit.c
...
This also simplifies the calling convention for init_bitmap() slightly
2010-03-28 15:25:17 +02:00
Volker Lendecke
e541013e20
s3: Fix some nonempty blank lines
2010-03-28 15:25:15 +02:00
Holger Hetterich
462322f6e8
s3: vfs_smb_traffic_analyzer.c: remove warnings from developer build
...
This patch should remove all warnings coming up when compiling
traffic analyzer with configure.developer.
Re-activate the smb_traffic_analyzer_rmdir function by adding it's
vfs_fn_pointer to vfs_smb_traffic_analyzer_fns.
Copy the mode_t used in smb_traffic_analyzer_open to the corresponding
data structure.
2010-03-25 15:12:30 -07:00
Jeremy Allison
eb8e18476c
Fix bug #7283 - vfs_acl_tdb does not work as expected.
...
both vfs_acl_common.c and vfs_acl_tdb.c were using the connection
handle, thus conflicted. Fix this.
Jeremy.
2010-03-24 10:33:14 -07:00
Volker Lendecke
8195832c6c
s3: file_walk_table -> files_forall
...
This is more in line with the rest of the Samba code, like connections_forall
etc.
2010-03-22 09:30:51 +01:00
Günther Deschner
f48fb0d908
s3-vfs: fix some buildwarnings in traffic analyzer, there are many more.
...
Holger, please check.
Guenther
2010-03-16 23:03:51 +01:00
Jim McDonough
287304e59e
Update copyright
2010-03-16 10:05:38 -04:00
Holger Hetterich
a0e2632e11
s3: vfs_smb_traffic_analyzer.c: add VFS functions for file open and close
2010-03-16 09:52:10 -04:00