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
Stefan Metzmacher
be1ba5b631
pvfs_open: call pvfs_setup_oplock() if an oplock was granted
...
This is needed to receive oplock breaks from other "processes"
metze
(This used to be commit dd56f55afdc0d114a0b0bceb0e4feb022919323a)
2008-02-26 09:32:57 +01:00
Stefan Metzmacher
95fafa694c
pvfs: add pvfs_setup_oplock() to receive oplock breaks and pass them to the client
...
metze
(This used to be commit b09a2b126723bd75afd245f549703a04e512e129)
2008-02-26 09:32:57 +01:00
Stefan Metzmacher
d7ea52e9a3
pvfs_open: make the retry logic indepdendent from open and sharing violations
...
metze
(This used to be commit 56bd63a4236ebf360d3e805c8560df86759573f7)
2008-02-26 09:32:56 +01:00
Stefan Metzmacher
c93cf42d9f
pvfs_open: fix odb_can_open() callers after prototype change
...
metze
(This used to be commit 904159327b3cb80fbec6aa5a4feaa141190a3f3a)
2008-02-26 09:32:56 +01:00
Stefan Metzmacher
9852e0d315
pvfs_open: pass down open_disposition and break_to_none to odb_open_file()
...
metze
(This used to be commit 46500983fe2f63540a67e2e963ab264fa8a090d0)
2008-02-26 09:32:55 +01:00
Stefan Metzmacher
69631a215b
pvfs_setfileinfo_rename: map DELETE_PENDING to ACCESS_DENIED
...
This is needed as odb_can_open/pvfs_can_delete changed the return value.
metze
(This used to be commit 1ba0b9a8f1f84c7c949b3d184843462b87446707)
2008-02-26 09:31:20 +01:00
Stefan Metzmacher
599901c139
pvfs_unlink: move stream logic into pvfs_unlink_one()
...
metze
(This used to be commit 438032e12f3040fbb58488ca537e4d8da39b6124)
2008-02-25 08:03:44 +01:00
Stefan Metzmacher
58745900d3
pvfs_unlink: splitup the logic into generic and file specific functions
...
metze
(This used to be commit 7572afdc2635bdf9afbe1eda3c7498d0b5201db3)
2008-02-25 08:03:43 +01:00
Stefan Metzmacher
0634c12abb
pvfs_unlink: add a fast path for the non wildcard case
...
metze
(This used to be commit 83e6c99f78990b6b1df520bdee14b9f931ad0420)
2008-02-25 08:03:42 +01:00
Stefan Metzmacher
d5414cdc63
pvfs_unlink: move !name->stream_exists into the caller
...
metze
(This used to be commit e01554e1617dc3c08a4ed6b4e016fd627f529ef9)
2008-02-25 08:03:41 +01:00
Stefan Metzmacher
a56bd4fa82
pvfs_unlink: pass down union smb_unlink completely to sub functions
...
metze
(This used to be commit 8301189e94be850494482e8c064b2400a5d11157)
2008-02-25 08:03:40 +01:00
Stefan Metzmacher
63b15441f4
pvfs_unlink: pass down a struct pvfs_filename to pvfs_unlink_one()
...
metze
(This used to be commit 43ec7fa2d898ce306557ea9092b6412bcc2f97ec)
2008-02-25 08:03:39 +01:00
Stefan Metzmacher
6f077d4017
pvfs_open: unify talloc behavior in pvfs_can_delete/rename/stat()
...
And also handle NULL for lckp in the error path
without crashing.
metze
(This used to be commit 04eb1be0c67317067ee0ca70c731fef958cd513c)
2008-02-25 08:03:04 +01:00
Stefan Metzmacher
f56ff422a5
pvfs: handle SHARING_VIOLATION and OPLOCK_NOT_GRANTED in 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)
2008-02-25 07:56:18 +01:00
Stefan Metzmacher
1cd2008aa4
pvfs: pass NULL to pvfs_can_*() when no odb_lock is needed by the caller
...
metze
(This used to be commit e585e2306334bd919f567f53d8d08903dfdfb102)
2008-02-25 07:56:06 +01:00
Stefan Metzmacher
a0a0d4a5d0
pvfs_wait: use struct pvfs_wait * instead of void *
...
metze
(This used to be commit 3b70331536d2402814db13a9f1f226a39373313a)
2008-02-25 07:55:09 +01:00
Stefan Metzmacher
fb6f52261a
pvfs_wait: 'private' -> 'private_data' and use talloc_get_type()
...
metze
(This used to be commit 16a7d0cc37614fc41245fdcdf3b5a4a4a421f31d)
2008-02-25 07:55:08 +01:00
Jelmer Vernooij
10169a2030
Remove more global_loadparm instance.s
...
(This used to be commit a1280252ce924df69d911e597b7f65d8038abef9)
2008-02-21 17:54:24 +01:00
Jelmer Vernooij
c38c2765d1
Remove yet more uses of global_loadparm.
...
(This used to be commit e01c1e87c0fe9709df7eb5b863f7ce85564174cd)
2008-02-21 17:17:37 +01:00
Jelmer Vernooij
ede79ae482
Remove more uses of global_loadparm.
...
(This used to be commit 58a5b1de2b093fe642eb11d76d12db0edf60c25c)
2008-02-21 15:38:35 +01:00
Jelmer Vernooij
d9f8232c34
Remove more uses of global_loadparm.
...
(This used to be commit 230355d2e6e27918dff40823eb238904c7a1870e)
2008-02-21 15:21:45 +01:00
Jelmer Vernooij
602f4635da
Get rid of 'INTEGRATED' build of modules - now replaced by 'MERGED_OBJ'
...
(This used to be commit 269cbf84d8b7dbf3bc88adc04ae283dc908af5ac)
2008-02-18 19:06:17 +01:00
Andrew Tridgell
4a04a5e620
A better way to handle the different format of RenameInformation in SMB2
...
We now define a separate info level RAW_SFILEINFO_RENAME_INFORMATION_SMB2
and set that level when handling SMB2 packets. This makes the parsers clearer.
(This used to be commit f6cdf3f1177f63d80be757f007eb15380839b4f5)
2008-02-14 14:54:21 +11:00
Andrew Tridgell
039f85835d
we need to refuse a root_fid in rename on SMB but not SMB2
...
(This used to be commit 9a139c35b7f1326616d26ce13bbdc7d6b22cd9b5)
2008-02-14 12:50:11 +11:00
Andrew Tridgell
839ab724dc
Fixed SMB2 rename operations from Vista clients
...
We needed a flag in bufinfo to mark packets as SMB2, as it seems that
SMB2 uses a different format for the RenameInformation buffer than SMB
does
Also handle the fact that SMB2 clients give the full path to the
target file in the rename, not a relative path
(This used to be commit 52d7972d95ddc19d22a4187b4d4428a6c3ed32d5)
2008-02-14 12:30:31 +11:00
Jelmer Vernooij
7d5f0e0893
r26639: librpc: Pass iconv convenience on from RPC connection to NDR library, so it can be overridden by OpenChange.
...
(This used to be commit 2f29f80e07adef1f020173f2cd6d947d0ef505ce)
2008-01-01 16:12:15 -06:00
Jelmer Vernooij
86dc05e99f
r26638: libndr: Require explicitly specifying iconv_convenience for ndr_struct_push_blob().
...
(This used to be commit 61ad78ac98937ef7a9aa32075a91a1c95b7606b3)
2008-01-01 16:12:11 -06:00
Jelmer Vernooij
96a200511e
r26443: Remove global_loadparm instances.
...
(This used to be commit 8242c696235d1bfb402b5c276a57f36d93610545)
2007-12-21 05:50:11 +01:00
Jelmer Vernooij
e31abef15f
r26440: Remove more uses of global_loadparm.
...
(This used to be commit 8858cf39722f192865e531164c72039fd18d7a8d)
2007-12-21 05:50:08 +01:00
Jelmer Vernooij
d891c0c74a
r26429: Avoid use of global_smb_iconv_convenience.
...
(This used to be commit d37136b7abfbba75ef2e5ab855eb3382b9648b8c)
2007-12-21 05:49:56 +01:00