summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix/pvfs_open.c
AgeCommit message (Collapse)AuthorFilesLines
2008-10-28s4: ntvfs/posix: to set a DACL at open time SEC_DESC_DACL_PRESENT must be setStefan Metzmacher1-2/+4
metze
2008-10-11Fix include paths to new location of libutil.Jelmer Vernooij1-1/+1
2008-09-23added some debug codeAndrew Tridgell1-0/+2
2008-08-14pvfs: fix handling of create_option flagsStefan Metzmacher1-2/+12
metze (This used to be commit 3c6cadf76861d6522c5ec41953df1ba2fac4910d)
2008-07-24we can't query the ACL on a new file till it exists!Andrew Tridgell1-6/+6
(This used to be commit 4f6646f06988b1fb8be9e0c8ae833bb9792184af)
2008-07-18More 'must be ignored' options from the MS-SMB doc.Andrew Bartlett1-5/+18
Also in particular the 'sync' flags (which Samba has traditionally ignored). Thanks to Olivier Salamin <olivier.salamin@gmail.com> for pointing out more flags that needed to be handled. Andrew Bartlett (This used to be commit 370bb39cd79fe49efd36a1ceb3e896d386e6d3ce)
2008-07-16Ignore and handle more NT Create & X options.Andrew Bartlett1-1/+12
The MS-SMB document explains that some of these options should be ignored. The test proves it. /* Must be ignored by the server, per MS-SMB 2.2.8 */ /* Must be ignored by the server, per MS-SMB 2.2.8 */ If we implement HSM in samba4 (likely) we should honour this bit. /* Don't pull this file off tape in a HSM system */ Andrew Bartlett (This used to be commit 502739ff90d56d2c9aabe8e224317f6ceb175c17)
2008-06-03pvfs: use utimes() instead of utime() to get better timestamp resolutionStefan Metzmacher1-6/+6
Note: that libreplace always provides utimes() metze (This used to be commit 61bad69e2d7f84e2c6d6fb82917cfa86b17f54b0)
2008-06-03pvfs_close: correctly handle the write time updates passed by close()Stefan Metzmacher1-4/+3
metze (This used to be commit 7f033ce4fb6fc897f8159926d5a6d2e45dd447b6)
2008-06-03pvfs: correctly set the write time in the handle destructorStefan Metzmacher1-0/+46
metze (This used to be commit 58c118ab4d2b76c4ea68d79b711b81900634f767)
2008-06-03pvfs: add PVFS_RESOLVE_NO_OPENDB flag and get the write time from the opendbStefan Metzmacher1-2/+2
By default get the current write time from the opendb, but allow callers to pass PVFS_RESOLVE_NO_OPENDB for performance reasons, if they don't need to the write time. metze (This used to be commit def52cc0988c26a815e74b3391e5857512408d90)
2008-06-03opendb: add write time handlingStefan Metzmacher1-8/+15
metze (This used to be commit 3868d8ce630c71e2c70aae442fcdbd68ba1eb708)
2008-05-29added support for returning the maximal access MXAC tag in SMB2 createAndrew Tridgell1-4/+20
(This used to be commit 4eb49335d5f0319f9aa47ded5215a2977d3336bf)
2008-05-28fixed create_action for truncated filesAndrew Tridgell1-1/+12
(This used to be commit 884c32fcef48244bd260026a61790332bd706eb4)
2008-05-28implement the documented SMB2 create blobs in the serverAndrew Tridgell1-0/+3
Not all of them are honoured yet, but they are all parsed and the ones that have SMB equivalents are honoured (This used to be commit 9fc70e2ed6a54f6d9a0530f4d37c0f8acadb6778)
2008-05-27added support for the output fields of SMB2 closeAndrew Tridgell1-3/+26
(This used to be commit 2633bc749792c224acc73a2e4ca723404331c19c)
2008-05-27another attempt at the damn SEC_STD_SYNCHRONIZE flagAndrew Tridgell1-4/+1
(This used to be commit 2ac27bfffa557d6c0f71c443b43a8d1967edb177)
2008-05-27disable the SEC_STD_SYNCHRONIZE test until we know what it meansAndrew Tridgell1-0/+2
(This used to be commit 897f4582bee72e319874e8a2d064ba442415571d)
2008-05-27make the SEC_STD_SYNCHRONIZE test more specificAndrew Tridgell1-2/+5
(This used to be commit 8c263f91bda97eb910c8589b6cd987ec4a62d770)
2008-05-27SEC_STD_SYNCHRONIZE is only invalid on SMB2Andrew Tridgell1-1/+10
(This used to be commit 067f1271adaa13d537bbc92b19fe8d633cbaaf50)
2008-05-27check for some more invalid bits in smb2 createAndrew Tridgell1-0/+9
(This used to be commit dcdaa9f5fd9150b16fb277213e864e5c39d831d6)
2008-05-26stricter checks for valid inputs in SMB2 open and lockAndrew Tridgell1-11/+27
(This used to be commit a7b5689a73adde59de28770aa3949660441291ea)
2008-05-23pvfs_open: return FILE_IS_A_DIRECTORY when opening a stream on a directoryStefan Metzmacher1-1/+8
metze (This used to be commit 1421b1cc0c442be839be702647009ed5295f34a3)
2008-05-22check for invalid file attribute values in createAndrew Tridgell1-0/+4
(This used to be commit dd21e3d9d788a67d4673625ed4892a875f4600dc)
2008-05-20check the creation options where the client can require a path to be aAndrew Tridgell1-0/+14
file or a directory (This used to be commit c05b58940f06b01b9770c218eb0708cb621215ef)
2008-05-07pvfs: remove XATTR_ATTRIB_FLAG_STICKY_WRITE_TIME codeStefan Metzmacher1-17/+0
I'll fix this more correctly very soon, so that we'll pass the BASE-DELAYWRITE test. metze (This used to be commit b09dd6b65d533832a025a51509dcc84f84b048aa)
2008-03-15pvfs_open: set h->have_opendb_entry directly after odb_open_file()Stefan Metzmacher1-2/+2
Otherwise we may not clean up in the destructor. metze (This used to be commit 218ec98a1694080748d1ac12baa90ffcda364833)
2008-03-15pvfs_open: the pvfs_odb_retry structs need to be children of the requestStefan Metzmacher1-2/+0
Otherwise they're not cleaned up when the request is finished. metze (This used to be commit 055760f0f4aadd2079b0a4999b59ac3dbe5edf8a)
2008-03-12pvfs_open: retry pvfs_open() after an EGAIN or EWOULDBLOCK from open()Stefan Metzmacher1-4/+54
In case a unix application as an oplock or share mode on a file we need to retry periodicly as there's no way to get a notification from the kernel when the oplock is released. metze (This used to be commit 4d40f3a02643b4cdacee31f0b7bc9fc77cc9869a)
2008-03-12pvfs_open: pass O_NONBLOCK to open() so that we'll not block with kernel oplocksStefan Metzmacher1-2/+2
metze (This used to be commit eeb0b8c349552517b521f1b8d7d9341e0ef630f2)
2008-03-12pvfs_open: pass down &f->handle->fd to odb_open_file()Stefan Metzmacher1-31/+30
metze (This used to be commit 80f5f9362100b971fa12ffee33705b745131770e)
2008-03-07pvfs_open: fix the odb_open_file() callersStefan Metzmacher1-16/+8
metze (This used to be commit 5fdca988c687f58fe2fddd3c8eff5f461207065b)
2008-03-07pvfs_open: always call odb_can_open() before odb_open_file()Stefan Metzmacher1-6/+45
odb_open_file() will later change to not redo the logic of odb_can_open(). metze (This used to be commit b09a1461ac595be1b6530221b7df5211084884cc)
2008-03-06pvfs_open: pass down allow_level_II_oplock to odb_open_file()Stefan Metzmacher1-4/+16
metze (This used to be commit 7c9b269b0742d435055e21f7e6cc945c21c7e332)
2008-03-06pvfs_open: fix crash/leak in case pvfs_setup_oplock() failsStefan Metzmacher1-6/+5
metze (This used to be commit 5563238782e825f64a22b5f9e0a7deb687f50b19)
2008-02-29pvfs_open: make pvfs_locking_key() non staticStefan Metzmacher1-2/+2
metze (This used to be commit 587373b97b95a8e562c3a5a59a62abade4dfed2f)
2008-02-28pvfs_open: fix callers of odb_get_delete_on_close()Stefan Metzmacher1-2/+2
metze (This used to be commit 608e5cd881d64b8db9146dfc4b3a1778a93a0f8e)
2008-02-28pvfs: remove unused args from pvfs_delete_on_close_set()Stefan Metzmacher1-2/+1
metze (This used to be commit 73f12be7c6a648d4d5336328a340510ac7b1d6de)
2008-02-28pvfs_open: use the delete_path of odb_close_file()Stefan Metzmacher1-49/+35
metze (This used to be commit c78451ce0618de92321430d2b50f9a8172d283f4)
2008-02-26pvfs_open: pass down an access mask to pvfs_can_update_file_size()Stefan Metzmacher1-3/+13
You just need SEC_FILE_WRITE_ATTRIBUTE to change the filesize... metze (This used to be commit 27e39063a0b759c7bced1cc9d7a6cb9192820c70)
2008-02-26pvfs_open: pass down an access mask in pvfs_can_stat()Stefan Metzmacher1-1/+1
metze (This used to be commit 6c34c7bc6801e470e5ec50aa93d0a07f7ad59314)
2008-02-26pvfs_open: pass NTCREATEX_DISP_OPEN to odb_can_open()Stefan Metzmacher1-4/+4
As 0 is NTCREATEX_DISP_SUPERSEDE and that's not what we want here. metze (This used to be commit 10c42e3d4ab71a71dfe620b40841dfe98f458c1a)
2008-02-26pvfs_open: add pvfs_can_update_file_size()Stefan Metzmacher1-0/+62
TODO: this is not complete, we need more tests to trigger this metze (This used to be commit 66ad1081f2be8a0caa16fb0d614b857a5bde751c)
2008-02-26pvfs_unlink: retry unlink after oplock not grantedStefan Metzmacher1-6/+20
metze (This used to be commit 746e89ce2e74dbd2cea8f5575c403e4c61f82cb8)
2008-02-26pvfs_open: call pvfs_setup_oplock() if an oplock was grantedStefan Metzmacher1-3/+19
This is needed to receive oplock breaks from other "processes" metze (This used to be commit dd56f55afdc0d114a0b0bceb0e4feb022919323a)
2008-02-26pvfs_open: make the retry logic indepdendent from open and sharing violationsStefan Metzmacher1-50/+99
metze (This used to be commit 56bd63a4236ebf360d3e805c8560df86759573f7)
2008-02-26pvfs_open: fix odb_can_open() callers after prototype changeStefan Metzmacher1-16/+35
metze (This used to be commit 904159327b3cb80fbec6aa5a4feaa141190a3f3a)
2008-02-26pvfs_open: pass down open_disposition and break_to_none to odb_open_file()Stefan Metzmacher1-8/+12
metze (This used to be commit 46500983fe2f63540a67e2e963ab264fa8a090d0)
2008-02-25pvfs_open: unify talloc behavior in pvfs_can_delete/rename/stat()Stefan Metzmacher1-4/+12
And also handle NULL for lckp in the error path without crashing. metze (This used to be commit 04eb1be0c67317067ee0ca70c731fef958cd513c)
2008-02-25pvfs: handle SHARING_VIOLATION and OPLOCK_NOT_GRANTED in ↵Stefan Metzmacher1-2/+26
pvfs_can_delete/rename() If the caller asks for the odb_lock return it also if we return NT_STATUS_SHARING_VIOLATION or NT_STATUS_OPLOCK_NOT_GRANTED so that the caller can add the pending notification. metze (This used to be commit daab9cb11eb540fae7ec3c024a586f5fd02cfc71)