Andrew Tridgell
c81863e868
added support for stream renames in Samba4
...
This allows the RAW-STREAMS test to work again. We still have some
limitations though:
- renames of a stream to the default stream doesn't work
- delete on close handling between streams and the main file
is still broken
2009-01-07 16:46:34 +11:00
Stefan Metzmacher
033428d7da
tevent: move samba4 stuff from libtevent.m4 to samba.m4
...
metze
2009-01-04 18:57:18 +01:00
Stefan Metzmacher
183c379fe5
s4:lib/tevent: rename structs
...
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"
for s in $list; do
o=`echo $s | cut -d ':' -f1`
n=`echo $s | cut -d ':' -f2`
r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
for f in $files; do
cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
mv $f.tmp $f
done
done
metze
2008-12-29 20:46:40 +01:00
Stefan Metzmacher
af29b82536
s4:pvfs_aio: use tevent
...
metze
2008-12-29 19:57:07 +01:00
Jelmer Vernooij
bd64688c6a
Fix more compiler warnings in various places.
2008-12-23 22:57:11 +01:00
Stefan Metzmacher
081f8883ba
s4: fix LIBEVENTS dependencies and use more forward declarations
...
We should only include events.h where we really need it
and prefer forward declarations of 'struct event_context'
metze
2008-12-17 11:04:45 +01:00
Stefan Metzmacher
84b2db8d51
s4:pvfs: correctly check stream names
...
metze
2008-12-01 14:41:29 -08:00
Stefan Metzmacher
7c07be9cab
s4:pvfs: return the correct error code for invalid names
...
metze
2008-12-01 14:40:51 -08:00
Stefan Metzmacher
b99926ca5e
s4: ntvfs/posix: to set a DACL at open time SEC_DESC_DACL_PRESENT must be set
...
metze
2008-10-28 17:13:21 +01:00
Jelmer Vernooij
23302413b3
Remove unused include param/param.h.
2008-10-24 16:37:56 +02:00
Jelmer Vernooij
c3415b3e57
Add version of next_codepoint without iconv_convenience.
2008-10-24 16:00:43 +02:00
Jelmer Vernooij
284f523ec7
Remove a few more usages of global_loadparm.
2008-10-24 13:22:12 +02:00
Jelmer Vernooij
7ec58471df
Split up codepoints code, use consistent _m suffix.
2008-10-24 02:51:03 +02:00
Jelmer Vernooij
9565999755
Fix include paths to new location of libutil.
2008-10-11 21:31:42 +02:00
Andrew Tridgell
d2bdb8fb16
empty access mask is only denied on SMB2
2008-09-24 18:10:23 -07:00
Andrew Tridgell
d3c6c71ff2
zero access mask should give ACCESS_DENIED
2008-09-24 18:10:23 -07:00
Andrew Tridgell
f4e212323f
added some debug code
2008-09-23 12:09:56 +10:00
Jelmer Vernooij
8ec93160d5
Fix last few includes to use new tdb location.
2008-09-16 16:09:50 +02:00
Stefan Metzmacher
cc60d5a032
pvfs: fix handling of create_option flags
...
metze
(This used to be commit 3c6cadf76861d6522c5ec41953df1ba2fac4910d)
2008-08-14 13:13:51 +02:00
Andrew Tridgell
2ecda9fde4
we can't query the ACL on a new file till it exists!
...
(This used to be commit 4f6646f06988b1fb8be9e0c8ae833bb9792184af)
2008-07-24 14:21:52 +10:00
Andrew Tridgell
1d12c64066
fixed spelling error
...
(This used to be commit 341f64834e13cdbc7d4742a4652ae39b70a4231f)
2008-07-24 14:19:49 +10:00
Andrew Bartlett
853194c308
More 'must be ignored' options from the MS-SMB doc.
...
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-18 18:40:19 +10:00
Andrew Bartlett
e92125e631
Ignore and handle more NT Create & X options.
...
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-07-16 14:00:18 +10:00
Stefan Metzmacher
98014c5668
pvfs: create a pvfs_acl subsystem
...
That means that the pvfs_acl implementations no longer register
as ntvfs modules (which was wrong)
metze
(This used to be commit 89e90556ec57fce24faf0ed3d6fe262edd974b28)
2008-06-28 10:30:25 +02:00
Stefan Metzmacher
c9d2570ce3
pvfs: pvfs_aio should be a subsystem instead of an extra ntvfs module
...
metze
(This used to be commit c904e28bef95cb0d61bf86f2ba1cef2d4e018d5f)
2008-06-28 10:30:18 +02:00
Andrew Tridgell
70219bee13
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
...
(This used to be commit 9d74201e462f2f95ed5bd91200681db3bd2a9277)
2008-06-03 15:11:42 -07:00
Stefan Metzmacher
b800af662c
pvfs: use utimes() instead of utime() to get better timestamp resolution
...
Note: that libreplace always provides utimes()
metze
(This used to be commit 61bad69e2d7f84e2c6d6fb82917cfa86b17f54b0)
2008-06-03 14:05:04 +02:00
Stefan Metzmacher
6e52c4feb8
pvfs_close: correctly handle the write time updates passed by close()
...
metze
(This used to be commit 7f033ce4fb6fc897f8159926d5a6d2e45dd447b6)
2008-06-03 14:03:52 +02:00
Stefan Metzmacher
60759b64a7
pvfs: correctly set the write time in the handle destructor
...
metze
(This used to be commit 58c118ab4d2b76c4ea68d79b711b81900634f767)
2008-06-03 14:03:51 +02:00
Stefan Metzmacher
d1bb49a2ab
pvfs_setfileinfo: update the write time in the opendb
...
metze
(This used to be commit 418e2592b48d558ff1d32031d64263ae21cf1eb0)
2008-06-03 14:03:51 +02:00
Stefan Metzmacher
ad19d5455e
pvfs: trigger a write time update 2 seconds after the first write
...
metze
(This used to be commit c8e15d4c185f18322a882aa908939fa9d0e341a0)
2008-06-03 14:03:50 +02:00
Stefan Metzmacher
47b54c7680
pvfs: add posix:writetimeupdatedelay option
...
metze
(This used to be commit c3ba19ca62affced96b927fcbe63cf5d075aed22)
2008-06-03 14:03:50 +02:00
Stefan Metzmacher
c43591c216
pvfs: add PVFS_RESOLVE_NO_OPENDB flag and get the write time from the opendb
...
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-03 14:03:50 +02:00
Stefan Metzmacher
0827b08a43
opendb: add write time handling
...
metze
(This used to be commit 3868d8ce630c71e2c70aae442fcdbd68ba1eb708)
2008-06-03 14:03:49 +02:00
Andrew Tridgell
405e64c437
more updates for new info levels
...
(This used to be commit 85d1873ee92fcc7df3addc42ddb8189144901f8b)
2008-06-02 11:05:06 +10:00
Andrew Tridgell
8da3217d1b
smbpid is 32 bit, and update SMB2 locking per MS-SMB2
...
The UNLOCK bit is only used from the first lock structure
(This used to be commit 9483b7c137b61d3029a1e1e7d8d8d0723b541129)
2008-06-02 11:04:13 +10:00
Andrew Tridgell
b33dba845e
don't emulate broken SMB2 locking behaviour from windows
...
(This used to be commit c50e7a15f9a7f2c5821b5ee468f9ade6eaa0ed55)
2008-05-30 07:28:29 +10:00
Andrew Tridgell
f0bc7c07fe
don't mask out SEC_FILE_READ_ATTRIBUTE on SMB2
...
(This used to be commit 1dfa50a48040bdc1166be2dbe1063fd8a79166f8)
2008-05-29 22:22:42 +10:00
Andrew Tridgell
383d10577c
fixed the error code for bad SMB2 ioctls
...
(This used to be commit b1d2d388ecff96dfcc17da24796f36c40cbb3eed)
2008-05-29 20:46:18 +10:00
Andrew Tridgell
c86dc11be6
added support for returning the maximal access MXAC tag in SMB2 create
...
(This used to be commit 4eb49335d5f0319f9aa47ded5215a2977d3336bf)
2008-05-29 19:16:26 +10:00
Andrew Tridgell
21d770a02c
querying the ACCESS_INFORMATION is always allowed
...
(This used to be commit 25d5b94d6a700f2d294e108aeca85cffcd5bbb4f)
2008-05-29 18:23:33 +10:00
Andrew Tridgell
e42ded24a0
SEC_FILE_READ_ATTRIBUTE is only automatically granted on SMB, not SMB2
...
(This used to be commit 7bff0691428ed3f75c1a9cbaae692bc9830640e6)
2008-05-29 18:23:20 +10:00
Andrew Tridgell
67226f054b
fixed create_action for truncated files
...
(This used to be commit 884c32fcef48244bd260026a61790332bd706eb4)
2008-05-28 22:44:20 +10:00
Andrew Tridgell
86d69fd4b6
SMB2 doesn't have NAME_INFORMATION level
...
(This used to be commit a431d51b113c2e214ccfe7a678ba0a565b020263)
2008-05-28 21:48:40 +10:00
Andrew Tridgell
fa0bc441e3
don't allow a file to be changed to a directory with setfileinfo
...
(This used to be commit ad7acbf8bf83c7250dfcbd57f0f4e19e57534a92)
2008-05-28 20:06:04 +10:00
Andrew Tridgell
6b70726305
implement the documented SMB2 create blobs in the server
...
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-28 16:28:37 +10:00
Andrew Tridgell
fd67526bd3
answer SMB2_ALL_EAS qfileinfo
...
(This used to be commit f5cf47eef18a5728317de97eab961d948db3f031)
2008-05-28 11:49:43 +10:00
Andrew Tridgell
6222b8e7e2
fixed error code for write on a directory
...
(This used to be commit 68eb5b050edeaa9c95348013b68a785c3f2c21fa)
2008-05-28 11:48:21 +10:00
Andrew Tridgell
b5f39fbda0
fix error code for read on a directory
...
(This used to be commit afd4f47971bc5f63b32c44dad546a1a4011b86f4)
2008-05-28 11:48:11 +10:00
Andrew Tridgell
8daeee5c5d
ensure that we honor SMB2 read min_count properly
...
(This used to be commit 318038d6f670efffa96d8b0db63f46b3752e1cd3)
2008-05-27 18:20:23 +10:00