1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-20 14:03:59 +03:00

549 Commits

Author SHA1 Message Date
Andrew Tridgell
cb36437db2 added support for the output fields of SMB2 close
(This used to be commit 2633bc749792c224acc73a2e4ca723404331c19c)
2008-05-27 16:43:36 +10:00
Andrew Tridgell
46e64417a3 another attempt at the damn SEC_STD_SYNCHRONIZE flag
(This used to be commit 2ac27bfffa557d6c0f71c443b43a8d1967edb177)
2008-05-27 16:02:27 +10:00
Andrew Tridgell
cf274201b4 disable the SEC_STD_SYNCHRONIZE test until we know what it means
(This used to be commit 897f4582bee72e319874e8a2d064ba442415571d)
2008-05-27 15:27:25 +10:00
Andrew Tridgell
65e31a965e make the SEC_STD_SYNCHRONIZE test more specific
(This used to be commit 8c263f91bda97eb910c8589b6cd987ec4a62d770)
2008-05-27 14:59:55 +10:00
Andrew Tridgell
6e265867ff SEC_STD_SYNCHRONIZE is only invalid on SMB2
(This used to be commit 067f1271adaa13d537bbc92b19fe8d633cbaaf50)
2008-05-27 14:30:42 +10:00
Andrew Tridgell
f0b4b15f64 check for some more invalid bits in smb2 create
(This used to be commit dcdaa9f5fd9150b16fb277213e864e5c39d831d6)
2008-05-27 14:07:11 +10:00
Andrew Tridgell
9a37e7ed93 Vista returns ACCESS_DENIED here
(This used to be commit f5068c6e50215f6ea7108d58d783394a315ff14f)
2008-05-27 14:06:51 +10:00
Andrew Tridgell
2ad2bdda89 stricter checks for valid inputs in SMB2 open and lock
(This used to be commit a7b5689a73adde59de28770aa3949660441291ea)
2008-05-26 15:02:43 +10:00
Andrew Tridgell
bf8d9e180e fill in reserved field on SMB2 flush
(This used to be commit 400a3b39d5c151cf43e307af2fa702208d7cd472)
2008-05-26 15:00:27 +10:00
Andrew Tridgell
c5c1b3706a allow larger streams using the TDB backend
(This used to be commit 8c0d756eb887477da867e069dbde3a7ad98d4ae0)
2008-05-26 14:59:58 +10:00
Stefan Metzmacher
5d648b4aa5 pvfs_open: return FILE_IS_A_DIRECTORY when opening a stream on a directory
metze
(This used to be commit 1421b1cc0c442be839be702647009ed5295f34a3)
2008-05-23 09:55:15 +02:00
Stefan Metzmacher
391b746430 pvfs_resolve: stream_name = "" is only the same as NULL for files
metze
(This used to be commit 47756129fdf01075bac06cdd24107d7dc8ba34af)
2008-05-23 09:55:15 +02:00
Stefan Metzmacher
c78bf3c2c9 pvfs_streams: directories don't have streams
metze
(This used to be commit 9ed7bb5afe6a73206bcba85f25305eb6630a5571)
2008-05-23 09:55:03 +02:00
Andrew Tridgell
ec7a6ee8ab fix make test for EAs again
- go back to 4 byte alignment until I work out the rules that Vista
  wants more exactly
- add the zero sized EA handling for SMB2 more generically
(This used to be commit 326b69bc8064cbea357864cecd6bd27b50c57184)
2008-05-23 00:07:12 +10:00
Andrew Tridgell
ac185ae0c5 fixes for EAs and filename in gentest_smb2 results
- SMB2 returns 0 for a null EA
- return the share qualified name for the filename in SMB2 ALL_INFO
  level
(This used to be commit f9708184a2037f83ebb97c847414326a42436154)
2008-05-22 23:00:08 +10:00
Andrew Tridgell
7a9ffeca21 check for invalid file attribute values in create
(This used to be commit dd21e3d9d788a67d4673625ed4892a875f4600dc)
2008-05-22 17:53:50 +10:00
Andrew Tridgell
2352602a57 check the creation options where the client can require a path to be a
file or a directory
(This used to be commit c05b58940f06b01b9770c218eb0708cb621215ef)
2008-05-20 11:58:47 +10:00
Jelmer Vernooij
4c70cda986 Fix a couple (well, little more than that..) of typos.
(This used to be commit a6b52119940a900fb0de3864b8bca94e2965cc24)
2008-05-18 23:02:47 +02:00
Jelmer Vernooij
4c8756f147 Create prototype headers from Makefile directory, without smb_build in the middle.
(This used to be commit f4a77b96f9c17d853348b70794026e5b9e384942)
2008-05-18 22:30:08 +02:00
Jelmer Vernooij
03643aec88 Use variables for source directory in a couple more places.
(This used to be commit c41bd3005f5f0b9cfd3709fc9217b4a401d265b4)
2008-05-18 19:54:27 +02:00
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