Stefan Metzmacher
3e80085fb0
pvfs: remove XATTR_ATTRIB_FLAG_STICKY_WRITE_TIME code
...
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-05-07 15:46:22 +02:00
Jelmer Vernooij
dd0da89e84
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
...
(This used to be commit ece878c1f9251b83598508e23ce0015b4db72f0a)
2008-04-17 13:05:25 +02:00
Jelmer Vernooij
a195cd9d8f
Use readily available event context.
...
(This used to be commit 2823fca23a4cacc996c808f22cba50b4482b5921)
2008-04-16 22:52:07 +02:00
Andrew Tridgell
b967afca64
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
...
(This used to be commit e891157b4ec7b2f845fb20c4106d80bf169f2072)
2008-04-15 09:54:41 +02:00
Andrew Tridgell
79af7ff2f7
fixed a valgrind error in id mapping
...
the status field is sent on both call and reply, but was only being
initialised on reply
(This used to be commit 2ebd7b80998775168959d511fbc987f8b5b7bd34)
2008-04-14 18:59:40 +02:00
Jelmer Vernooij
e9017ba418
Use _OBJ_FILES variables in a couple more places.
...
(This used to be commit 92856d5054106894b65cd1a1b5119c0facfc4cff)
2008-04-14 17:22:58 +02:00
Kai Blin
4133bd85e9
ntvfs: Use wbclient for pvfs_acl and pvfs_acl_nfs4
...
(This used to be commit ac5e5fee1db2999053dee82d1fcf97ca8799c9b5)
2008-04-02 23:07:27 +02:00
Jelmer Vernooij
afe3e8172d
Install public header files again and include required prototypes.
...
(This used to be commit 47ffbbf67435904754469544390b67d34c958343)
2008-04-02 04:53:27 +02:00
Stefan Metzmacher
e76c8aa097
pvfs_open: set h->have_opendb_entry directly after odb_open_file()
...
Otherwise we may not clean up in the destructor.
metze
(This used to be commit 218ec98a1694080748d1ac12baa90ffcda364833)
2008-03-15 12:36:20 +01:00
Stefan Metzmacher
74d940ca57
pvfs_open: the pvfs_odb_retry structs need to be children of the request
...
Otherwise they're not cleaned up when the request is finished.
metze
(This used to be commit 055760f0f4aadd2079b0a4999b59ac3dbe5edf8a)
2008-03-15 12:35:04 +01:00
Stefan Metzmacher
1f65ddb336
pvfs_unlink: disable async retries for wildcard deletes
...
We would setup multiple retries per client request.
metze
(This used to be commit 951764e28407a53ea4dd39d34388fab1b2259785)
2008-03-15 12:22:36 +01:00
Stefan Metzmacher
50243cdbbd
pvfs_open: retry pvfs_open() after an EGAIN or EWOULDBLOCK from open()
...
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-12 17:35:07 +01:00
Stefan Metzmacher
454e9bed04
pvfs_open: pass O_NONBLOCK to open() so that we'll not block with kernel oplocks
...
metze
(This used to be commit eeb0b8c349552517b521f1b8d7d9341e0ef630f2)
2008-03-12 17:35:06 +01:00
Stefan Metzmacher
7ba236d78e
pvfs_open: pass down &f->handle->fd to odb_open_file()
...
metze
(This used to be commit 80f5f9362100b971fa12ffee33705b745131770e)
2008-03-12 17:35:04 +01:00
Stefan Metzmacher
f533d6d8a2
pvfs_rename: implement RAW_RENAME_NTTRANS as noop as w2k3
...
metze
(This used to be commit 40563583f7ef3d8d1a3426c6c12eaecd18af215c)
2008-03-12 17:14:44 +01:00
Stefan Metzmacher
8e70dc7e9a
pvfs: return NT_STATUS_NOT_IMPLEMENTED on RAW_RENAME_NTTRANS
...
metze
(This used to be commit 6dc280731d071681b635a2f091be2b153a902080)
2008-03-11 20:16:52 +01:00
Stefan Metzmacher
db669e1eb1
pvfs_open: fix the odb_open_file() callers
...
metze
(This used to be commit 5fdca988c687f58fe2fddd3c8eff5f461207065b)
2008-03-07 19:35:17 +01:00
Stefan Metzmacher
75a412a469
pvfs_open: always call odb_can_open() before odb_open_file()
...
odb_open_file() will later change to not redo the logic of
odb_can_open().
metze
(This used to be commit b09a1461ac595be1b6530221b7df5211084884cc)
2008-03-07 19:15:27 +01:00
Stefan Metzmacher
ef4ae2597d
pvfs_open: pass down allow_level_II_oplock to odb_open_file()
...
metze
(This used to be commit 7c9b269b0742d435055e21f7e6cc945c21c7e332)
2008-03-06 17:19:26 +01:00
Stefan Metzmacher
0339ae5ad8
pvfs_open: fix crash/leak in case pvfs_setup_oplock() fails
...
metze
(This used to be commit 5563238782e825f64a22b5f9e0a7deb687f50b19)
2008-03-06 16:31:26 +01:00
Stefan Metzmacher
eb26c896a2
pvfs_oplock: auto release oplocks after a timeout
...
Remember that we sent an oplock break to
a client and don't resend. If the filesystem
layer tries to send a new break and the client
has not released after a former oplock break
after the timeout interval, we need to auto release
the oplock.
metze
(This used to be commit bfb0888578677856b2b6b72471f542d0d5d7b838)
2008-03-04 14:40:50 +01:00
Stefan Metzmacher
1f5301c1d2
pvfs_oplock: only a break level2 oplocks...
...
It seems that I've tested this in the wrong way before.
metze
(This used to be commit 21772fa33d772a9df6ff04a0ed1b0d8f4f533295)
2008-03-04 14:40:50 +01:00
Stefan Metzmacher
af0d863ce7
pvfs_oplock: move pvfs_oplock_release() parts into a helper function
...
metze
(This used to be commit 2b8934e4ab2dd9673928a6c9a291aedac1ebaa95)
2008-03-04 14:40:49 +01:00
Stefan Metzmacher
0de1a63c18
pvfs_rename: move odb_rename() onto pvfs_do_rename()
...
metze
(This used to be commit 5a1f0c0ce995064c23e9f726bceddbd8442c4293)
2008-03-01 10:29:56 +01:00
Stefan Metzmacher
a0235410ae
pvfs_setfileinfo: support renaming of directories
...
metze
(This used to be commit 2ecc7ec8b392cf3ec698d168bf6fb7898e1978f1)
2008-02-29 15:17:53 +01:00
Stefan Metzmacher
176e20bf26
pvfs_setfileinfo: tell the opendb about renames
...
metze
(This used to be commit 9360eda2c5606b2c73edb768af8ca0e8ba310e30)
2008-02-29 15:17:53 +01:00
Stefan Metzmacher
daa4dec695
pvfs: use pvfs_resolve_name_handle() in qfileinfo and setfileinfo
...
metze
(This used to be commit 4b1a266f6fb04c8f923c48ea215ece6b45a18ea7)
2008-02-29 15:17:53 +01:00
Stefan Metzmacher
f9b2d29d32
pvfs_resolve: add pvfs_resolve_name_handle()
...
metze
(This used to be commit 714717253c035b31fc850df8456f8cf2b38bcb72)
2008-02-29 15:17:52 +01:00
Stefan Metzmacher
5734a10c89
pvfs_resolve: "\\" and a trailing "\" need to be reduced
...
metze
(This used to be commit 356338b99a67bfaf09618f5ed7c8f5c4ff69fa06)
2008-02-29 15:17:52 +01:00
Stefan Metzmacher
c5d961586e
pvfs_resolve: fix endless loop with trailing ".."
...
We also need to move the NULL termination.
metze
(This used to be commit 4fc41065a31cc8bd477ff5bf2d89f9f595002227)
2008-02-29 15:17:52 +01:00
Stefan Metzmacher
48270181ba
pvfs_open: make pvfs_locking_key() non static
...
metze
(This used to be commit 587373b97b95a8e562c3a5a59a62abade4dfed2f)
2008-02-29 15:17:51 +01:00
Jelmer Vernooij
fc6bc92e11
Merge branch 'v4-0-trivial' into v4-0-test
...
(This used to be commit 6cbb241c05539cc62526a366094c9c472e6422a5)
2008-02-28 18:27:29 +01:00
Stefan Metzmacher
c3ce0a0b95
pvfs_open: fix callers of odb_get_delete_on_close()
...
metze
(This used to be commit 608e5cd881d64b8db9146dfc4b3a1778a93a0f8e)
2008-02-28 08:11:04 +01:00
Stefan Metzmacher
9028ecca22
pvfs: remove unused args from pvfs_delete_on_close_set()
...
metze
(This used to be commit 73f12be7c6a648d4d5336328a340510ac7b1d6de)
2008-02-28 08:11:04 +01:00
Stefan Metzmacher
03660b240c
pvfs_open: use the delete_path of odb_close_file()
...
metze
(This used to be commit c78451ce0618de92321430d2b50f9a8172d283f4)
2008-02-28 08:10:57 +01:00
Stefan Metzmacher
8efcd871ce
pvfs_rename: we need a do a odb_rename() after pvfs_do_rename()
...
metze
(This used to be commit f4f593a1acd4a39f7be639465f0be4b3a97a9bfc)
2008-02-27 16:33:15 +01:00
Stefan Metzmacher
eefaf470bf
pvfs_rename: add retry logic after sharing violation or non granted oplock
...
metze
(This used to be commit 79e42a5dfbfd59b856bca16456295cd2c93ab0ca)
2008-02-27 16:33:14 +01:00
Jelmer Vernooij
48e9b4cea1
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
...
(This used to be commit d96fcc52a70fd1236b767b1d88a39d78c4e8c48c)
2008-02-27 16:03:00 +01:00
Stefan Metzmacher
55377f0352
pvfs_open: pass down an access mask to pvfs_can_update_file_size()
...
You just need SEC_FILE_WRITE_ATTRIBUTE to change
the filesize...
metze
(This used to be commit 27e39063a0b759c7bced1cc9d7a6cb9192820c70)
2008-02-26 13:53:15 +01:00
Stefan Metzmacher
c62faaa75e
pvfs_qfileinfo: down discard the return value of pvfs_can_stat()
...
The odb_can_open() code returns DELETE_PENDING if
a delete is really pending.
metze
(This used to be commit 066ba3c7cfff12cb0b5298fc45eabb5fc097d056)
2008-02-26 13:52:34 +01:00
Stefan Metzmacher
b40be554e7
pvfs_open: pass down an access mask in pvfs_can_stat()
...
metze
(This used to be commit 6c34c7bc6801e470e5ec50aa93d0a07f7ad59314)
2008-02-26 13:52:34 +01:00
Stefan Metzmacher
9f8fc29ea4
pvfs_open: pass NTCREATEX_DISP_OPEN to odb_can_open()
...
As 0 is NTCREATEX_DISP_SUPERSEDE and that's not what we want here.
metze
(This used to be commit 10c42e3d4ab71a71dfe620b40841dfe98f458c1a)
2008-02-26 13:52:33 +01:00
Stefan Metzmacher
fa2e4ba03c
pvfs_setpathinfo: retry setpathinfo after oplock not granted on on setpathinfo ALLOCATION_INFO and END_OF_FILE_INFO
...
metze
(This used to be commit 4e27ac8c529d5a1675fb02215191a2be7913ec97)
2008-02-26 09:33:00 +01:00
Stefan Metzmacher
4eb0fcc517
pvfs_open: add pvfs_can_update_file_size()
...
TODO: this is not complete, we need more tests to trigger this
metze
(This used to be commit 66ad1081f2be8a0caa16fb0d614b857a5bde751c)
2008-02-26 09:33:00 +01:00
Stefan Metzmacher
61e17794c3
pvfs_unlink: retry unlink after oplock not granted
...
metze
(This used to be commit 746e89ce2e74dbd2cea8f5575c403e4c61f82cb8)
2008-02-26 09:32:59 +01:00
Stefan Metzmacher
c0d1543a6a
pvfs: add posix:oplocktimeout=30 option
...
metze
(This used to be commit 5abc57ddab558c13db3864d13afc2ad3b1641d1c)
2008-02-26 09:32:59 +01:00
Stefan Metzmacher
ee81b7a85e
pvfs_setfileinfo: break level2 oplocks on setfileinfo() ALLOCATION_INFO and END_OF_FILE_INFO
...
metze
(This used to be commit b258f9d8d4bf3606f4884d1bff548f16dadc08aa)
2008-02-26 09:32:59 +01:00
Stefan Metzmacher
4344ac6209
pvfs: send oplock breaks to none to level2 holders on write/lock requests
...
metze
(This used to be commit b8c42a1ff8fd4131ef2a1ad92a7405a2e4d335d3)
2008-02-26 09:32:58 +01:00
Stefan Metzmacher
348439e930
pvfs_oplocks: add pvfs_break_level2_oplocks()
...
metze
(This used to be commit e0837238b6b09143970f03b6a78201c3fe55f3cd)
2008-02-26 09:32:58 +01:00
Stefan Metzmacher
4ee328d7d2
pvfs: handle oplock releases in its own function pvfs_oplock_release()
...
metze
(This used to be commit 27ec7bfc8b7f46c97e6878caf5cd694c517ce053)
2008-02-26 09:32:57 +01:00