summaryrefslogtreecommitdiffstats
path: root/source3/smbd/smb2_create.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a bunch of "unused variable" warnings.Jeremy Allison2012-02-181-4/+0
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Feb 18 06:22:40 CET 2012 on sn-devel-104
* s3-smb2: Use the correct indicator if a request was deferredVolker Lendecke2012-02-101-1/+1
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Feb 10 16:44:23 CET 2012 on sn-devel-104
* s3-smb2: Make sure we have a subreq setVolker Lendecke2012-02-101-0/+1
|
* s3: Remove the unused "file_existed" parameter from smbd_calculate_access_maskVolker Lendecke2012-01-031-5/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Jan 3 15:16:50 CET 2012 on sn-devel-104
* s3:smbd: avoid using sconn_server_id()Stefan Metzmacher2011-12-161-1/+2
| | | | metze
* s3:smb2_server: use sconn->ev_ctx instead of sconn->smb2.event_ctxStefan Metzmacher2011-12-121-3/+3
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Dec 12 16:08:59 CET 2011 on sn-devel-104
* s3:smb2_create: defer STATUS_PENDING for 2 seconds as beforeStefan Metzmacher2011-11-151-1/+7
| | | | metze
* s3:smb2_server: pass explicit defer_times to smbd_smb2_request_pending_queue()Stefan Metzmacher2011-11-151-1/+1
| | | | metze
* s3:smb2_server: always send STATUS_PENDING responses, but delayed by 0.5 ↵Stefan Metzmacher2011-11-151-32/+2
| | | | | | | | milliseconds In future we'll pass the delay from the caller. metze
* s3:smb2_create: fix allocation size return value when opening existing filesChristian Ambach2011-10-101-2/+2
| | | | | | | | | | | at least on GPFS, using the stat information gave wrong results example: FileInfo gave 12582912000, Create Response gave 25769803776000 This makes the create part use the same method as fileinfo, matching up the replies of both calls Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Oct 10 21:49:53 CEST 2011 on sn-devel-104
* s3:smb2_server: return OBJECT_NAME_INVALID if the path is terminated in ↵Stefan Metzmacher2011-09-071-0/+8
| | | | | | SMB2_CREATE metze
* s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_create.cStefan Metzmacher2011-09-071-11/+4
| | | | metze
* s3:smb2 fix Bug 8428 - wrong reply to DHnC (durable handle reconnect)Christian Ambach2011-08-301-6/+6
| | | | | | | | | | | | | | | | | | According to [MS-SMB2] 3.3.5.9.7 (http://msdn.microsoft.com/en-us/library/cc246784%28v=PROT.13%29.aspx), smbd must reply with NT_STATUS_OBJECT_NAME_NOT_FOUND as it does not support durable file-handles yet. I have seen w2k8r2 running xcopy /C ending up in an endless loop trying to get back the original file handle from smbd sending the same requests over and over. Metze, Jeremy, please check! Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Aug 30 22:20:36 CEST 2011 on sn-devel-104
* s3: Pass sconn explicitly to open_was_deferredVolker Lendecke2011-08-021-1/+1
|
* s3:smb2_create: use smbd_calculate_access_mask() instead of ↵Stefan Metzmacher2011-07-111-1/+6
| | | | | | | | | smbd_check_open_rights() metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Jul 11 22:45:01 CEST 2011 on sn-devel-104
* s3:smb2_create: call 'return' after smbd_server_connection_terminate()Stefan Metzmacher2011-07-041-0/+1
| | | | | | | This is not strictly needed in the fork process model, but we hopefully support other models in future. metze
* s3-tevent: only include ../lib/util/tevent wrappers where needed.Günther Deschner2011-04-291-0/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Apr 29 14:00:30 CEST 2011 on sn-devel-104
* s3: include smbd/smbd.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵Andrew Tridgell2011-03-241-1/+1
| | | | | | | | | convert_string*() we shouldn't accept bad multi-byte strings, it just hides problems Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104
* Add uint32_t name_hash argument (currently unused) to get_file_infos().Jeremy Allison2011-01-251-1/+1
| | | | Will be used when we store more than one delete on close token.
* s3-smbd: Migrated to new spoolss functions for printing.Simo Sorce2010-07-271-5/+3
| | | | Signed-off-by: Jim McDonough <jmcd@samba.org>
* s3: Remove procid_self() from fill_deferred_open_entry()Volker Lendecke2010-07-051-1/+2
|
* s3: Explicitly pass sconn to [remove|schedule]_deferred_open_message_smb2Volker Lendecke2010-06-121-4/+6
|
* s3: Explicitly pass sconn to open_was_deferred_smb2Volker Lendecke2010-06-121-2/+2
|
* s3: Explicitly pass sconn to find_open_smb2reqVolker Lendecke2010-06-121-5/+11
|
* s3-build: only use ndr_security.h where needed.Günther Deschner2010-05-311-0/+1
| | | | Guenther
* If using fake oplocks, use the correct SMB2 type code for "no oplock".Jeremy Allison2010-05-211-1/+1
| | | | Jeremy.
* Don't forget brackets around bitwise tests.Jeremy Allison2010-05-211-1/+1
| | | | Jeremy.
* Make DFS work over SMB2.Jeremy Allison2010-05-211-5/+12
| | | | Jeremy.
* s3: added support for fake oplocks in SMB2.Ira Cooper2010-05-211-2/+14
|
* Fix bug #7410 - samba sends "raw" inode number as uniqueid with unix ↵Jeremy Allison2010-05-201-3/+8
| | | | | | | | | | | | | | | extensions. Move to a consistent get_FileIndex() function for all inode returns, that checks if st_dev on the file is identical to the top directory dev_t of the exported share, and if so uses the raw 64-bit inode number. If it isn't (we've traversed a mount point) - return what we used to do for Windows which is the concatination of the bottom 32-bits of the inode with the 32-bit device number. We can get more creative with this over time (hashing?) if we want as now all inode returns go through this single function. Jeremy.
* After talking with Microsoft engineers, immediately replyingJeremy Allison2010-05-191-1/+6
| | | | | | | | on compound requests on open being deferred for a sharing violation is a Windows bug. Re-enable the code that simply delays the compound response if the delay time is less than 2 seconds. Jeremy.
* (Finally) fix bug #7158 - SMB2 connection resets during IOZone tests from ↵Jeremy Allison2010-05-191-1/+9
| | | | | | | | | | | | 64-bit Vista client It turns out that the persistent handles are used by the Microsoft redirector to index files on oplock break requests. So even if we don't do durable handles (yet) we must set the persistent handle on create. For now just use the same handle value as we use for volatile. Jeremy.
* s3: Remove use of iconv_convenience.Jelmer Vernooij2010-05-181-1/+1
|
* Fix more SMB2-OPLOCK bugs. Only 3 more issues to address then we're good to ↵Jeremy Allison2010-05-111-1/+6
| | | | | | go on this test. Jeremy.
* SMB2 always have level2 oplock capability. Correct mapping from break ↵Jeremy Allison2010-05-101-1/+1
| | | | | | messages to SMB2 oplock levels. Jeremy.
* Stop us crashing in SMB2-OPLOCK test. Don't allow more than one outstanding ↵Jeremy Allison2010-05-101-5/+33
| | | | | | immediate event. Jeremy.
* Update (C) for 2010.Jeremy Allison2010-04-281-0/+1
| | | | Jeremy.
* When walking the SMB2 requests queue, ensure the request is still "in flight"Jeremy Allison2010-04-261-1/+10
| | | | | | | | | | | | before examining the details. SMB2 requests stay on the queue until their out.vector has been send, only then are they talloc_free'd. Thanks for Ira Cooper <ira@wakeful.net> for giving me the backtrace showing this. Jeremy.
* Fix crash when rescheduling oplock open.Jeremy Allison2010-04-261-0/+9
| | | | Jeremy.
* Implement oplocks within SMB2. Plumb into the existing SMB1 oplock system.Jeremy Allison2010-04-241-2/+41
| | | | | | Seems to work but needs more tests (to be added). Jeremy.
* Allow smb2 create requests to be cancelled.Jeremy Allison2010-04-231-11/+69
| | | | Jeremy.
* At simo's request return struct tevent_req *treq -> treq. For consistency :-(.Jeremy Allison2010-04-231-80/+80
|
* Rename - no functional change. Stop all variables being called "req".Jeremy Allison2010-04-231-130/+129
| | | | | | | | tevent_req -> treq struct smb_request -> smb1req struct smbd_smb2_request -> smb2req Jeremy.
* Make deferred opens (NT_STATUS_SHARING_VIOLATION) work over SMB2.Jeremy Allison2010-04-221-33/+331
| | | | | | | | Makes SMB2Create call re-entrant internally. Now this infrastructure is in place, oplocks will follow shortly. Tested with Win7 client and with W2K8R2. Jeremy.
* Fix for bug #7189 - Open txt files with notepad on samba shares creates problem.Jeremy Allison2010-03-051-0/+1
| | | | | | | | | | Ensure we don't use any of the create_options for Samba private use. Add a new parameter to the VFS_CREATE call (private_flags) which is only used internally. Renumber NTCREATEX_OPTIONS_PRIVATE_DENY_DOS and NTCREATEX_OPTIONS_PRIVATE_DENY_FCB to match the S4 code). Rev. the VFS interface to version 28. Jeremy.
* Remove "store create time" code, cause create time to be storedJeremy Allison2009-11-171-14/+26
| | | | | | | | | | | | in the "user.DOSATTRIB" EA. From the docs: In Samba 3.5.0 and above the "user.DOSATTRIB" extended attribute has been extended to store the create time for a file as well as the DOS attributes. This is done in a backwards compatible way so files created by Samba 3.5.0 and above can still have the DOS attribute read from this extended attribute by earlier versions of Samba, but they will not be able to read the create time stored there. Storing the create time separately from the normal filesystem meta-data allows Samba to faithfully reproduce NTFS semantics on top of a POSIX filesystem. Passes make test but will need more testing. Jeremy.
* We now pass the Microsoft SMB2 fileio test with EA's and streams...Jeremy Allison2009-09-171-3/+7
| | | | Jeremy.
* s3:smbd: implement all SMB2 Create contexts except "ExtA"Stefan Metzmacher2009-08-191-8/+217
| | | | metze
* s3:smbd: parse context blobs in SMB2 CreateStefan Metzmacher2009-08-191-48/+150
| | | | metze