summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_create.c
AgeCommit message (Collapse)AuthorFilesLines
2012-05-28s3:smb2_create: do not remove leading backslash from pipe namesStefan Metzmacher1-5/+0
metze
2012-04-24s3: Introduce variable "indyniov" for easier readingVolker Lendecke1-8/+10
2012-02-18Fix a bunch of "unused variable" warnings.Jeremy Allison1-4/+0
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Feb 18 06:22:40 CET 2012 on sn-devel-104
2012-02-10s3-smb2: Use the correct indicator if a request was deferredVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Feb 10 16:44:23 CET 2012 on sn-devel-104
2012-02-10s3-smb2: Make sure we have a subreq setVolker Lendecke1-0/+1
2012-01-03s3: Remove the unused "file_existed" parameter from smbd_calculate_access_maskVolker Lendecke1-5/+0
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Jan 3 15:16:50 CET 2012 on sn-devel-104
2011-12-16s3:smbd: avoid using sconn_server_id()Stefan Metzmacher1-1/+2
metze
2011-12-12s3:smb2_server: use sconn->ev_ctx instead of sconn->smb2.event_ctxStefan Metzmacher1-3/+3
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Dec 12 16:08:59 CET 2011 on sn-devel-104
2011-11-15s3:smb2_create: defer STATUS_PENDING for 2 seconds as beforeStefan Metzmacher1-1/+7
metze
2011-11-15s3:smb2_server: pass explicit defer_times to smbd_smb2_request_pending_queue()Stefan Metzmacher1-1/+1
metze
2011-11-15s3:smb2_server: always send STATUS_PENDING responses, but delayed by 0.5 ↵Stefan Metzmacher1-32/+2
milliseconds In future we'll pass the delay from the caller. metze
2011-10-10s3:smb2_create: fix allocation size return value when opening existing filesChristian Ambach1-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
2011-09-07s3:smb2_server: return OBJECT_NAME_INVALID if the path is terminated in ↵Stefan Metzmacher1-0/+8
SMB2_CREATE metze
2011-09-07s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_create.cStefan Metzmacher1-11/+4
metze
2011-08-30s3:smb2 fix Bug 8428 - wrong reply to DHnC (durable handle reconnect)Christian Ambach1-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
2011-08-02s3: Pass sconn explicitly to open_was_deferredVolker Lendecke1-1/+1
2011-07-11s3:smb2_create: use smbd_calculate_access_mask() instead of ↵Stefan Metzmacher1-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
2011-07-04s3:smb2_create: call 'return' after smbd_server_connection_terminate()Stefan Metzmacher1-0/+1
This is not strictly needed in the fork process model, but we hopefully support other models in future. metze
2011-04-29s3-tevent: only include ../lib/util/tevent wrappers where needed.Günther Deschner1-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
2011-03-30s3: include smbd/smbd.h where needed.Günther Deschner1-0/+1
Guenther
2011-03-24charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵Andrew Tridgell1-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
2011-01-25Add uint32_t name_hash argument (currently unused) to get_file_infos().Jeremy Allison1-1/+1
Will be used when we store more than one delete on close token.
2010-07-27s3-smbd: Migrated to new spoolss functions for printing.Simo Sorce1-5/+3
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-05s3: Remove procid_self() from fill_deferred_open_entry()Volker Lendecke1-1/+2
2010-06-12s3: Explicitly pass sconn to [remove|schedule]_deferred_open_message_smb2Volker Lendecke1-4/+6
2010-06-12s3: Explicitly pass sconn to open_was_deferred_smb2Volker Lendecke1-2/+2
2010-06-12s3: Explicitly pass sconn to find_open_smb2reqVolker Lendecke1-5/+11
2010-05-31s3-build: only use ndr_security.h where needed.Günther Deschner1-0/+1
Guenther
2010-05-21If using fake oplocks, use the correct SMB2 type code for "no oplock".Jeremy Allison1-1/+1
Jeremy.
2010-05-21Don't forget brackets around bitwise tests.Jeremy Allison1-1/+1
Jeremy.
2010-05-21Make DFS work over SMB2.Jeremy Allison1-5/+12
Jeremy.
2010-05-21s3: added support for fake oplocks in SMB2.Ira Cooper1-2/+14
2010-05-20Fix bug #7410 - samba sends "raw" inode number as uniqueid with unix ↵Jeremy Allison1-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.
2010-05-19After talking with Microsoft engineers, immediately replyingJeremy Allison1-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.
2010-05-19(Finally) fix bug #7158 - SMB2 connection resets during IOZone tests from ↵Jeremy Allison1-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.
2010-05-18s3: Remove use of iconv_convenience.Jelmer Vernooij1-1/+1
2010-05-11Fix more SMB2-OPLOCK bugs. Only 3 more issues to address then we're good to ↵Jeremy Allison1-1/+6
go on this test. Jeremy.
2010-05-10SMB2 always have level2 oplock capability. Correct mapping from break ↵Jeremy Allison1-1/+1
messages to SMB2 oplock levels. Jeremy.
2010-05-10Stop us crashing in SMB2-OPLOCK test. Don't allow more than one outstanding ↵Jeremy Allison1-5/+33
immediate event. Jeremy.
2010-04-28Update (C) for 2010.Jeremy Allison1-0/+1
Jeremy.
2010-04-26When walking the SMB2 requests queue, ensure the request is still "in flight"Jeremy Allison1-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.
2010-04-26Fix crash when rescheduling oplock open.Jeremy Allison1-0/+9
Jeremy.
2010-04-24Implement oplocks within SMB2. Plumb into the existing SMB1 oplock system.Jeremy Allison1-2/+41
Seems to work but needs more tests (to be added). Jeremy.
2010-04-23Allow smb2 create requests to be cancelled.Jeremy Allison1-11/+69
Jeremy.
2010-04-23At simo's request return struct tevent_req *treq -> treq. For consistency :-(.Jeremy Allison1-80/+80
2010-04-23Rename - no functional change. Stop all variables being called "req".Jeremy Allison1-130/+129
tevent_req -> treq struct smb_request -> smb1req struct smbd_smb2_request -> smb2req Jeremy.
2010-04-22Make deferred opens (NT_STATUS_SHARING_VIOLATION) work over SMB2.Jeremy Allison1-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.
2010-03-05Fix for bug #7189 - Open txt files with notepad on samba shares creates problem.Jeremy Allison1-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.
2009-11-17Remove "store create time" code, cause create time to be storedJeremy Allison1-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.
2009-09-17We now pass the Microsoft SMB2 fileio test with EA's and streams...Jeremy Allison1-3/+7
Jeremy.