summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix/pvfs_open.c
AgeCommit message (Collapse)AuthorFilesLines
2009-12-17s4-ntvfs: check if pvfs is NULL in pvfs_logoffbrendan powers1-0/+5
pvfs can be NULL if the directory a share points to does not exist. In this case, there would be no open files, so it is safe to just return from the function. Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-11-27s4-pvfs: fixed access check failure in SFILEINFO testAndrew Tridgell1-8/+5
matching windows behaviour is not always the right thing to do!
2009-10-19s4-pvfs: fixed uninitialised variableAndrew Tridgell1-1/+1
This caused havoc on the build farm. Interestingly, it only affected gcc 4.3.3, not gcc 4.4.1
2009-10-18s4-pvfs: change the handling of access checking on createAndrew Tridgell1-11/+11
Previously when a file was created, we produces the resulting access mask based on an ACL check against the parent. This change means we now calculate the inherited ACL much earlier, and produce the resulting access mask from that ACL, or the user supplied ACL.
2009-10-15s4-pvfs: implement root_fid support in posix backendAndrew Tridgell1-0/+15
Construct the filename from the old handle and the new name.
2009-08-05fixed a problem with group policy writes causing policy corruptionAndrew Tridgell1-3/+7
This bug was caused by two things: 1) in the unix ACL mapping, we were not taking into account group write permssions for the SEC_STD_DELETE flag 2) when a file is created using OVERWRITE mode, a fchmod() would fail if the user is not the file owner. We resolve that by only doing the fchmod() if the mapped file attribute does not match the desired file attribute
2009-02-05s4:pvfs: use talloc_get_type() to cast from void *Stefan Metzmacher1-8/+16
metze
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)