summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix
AgeCommit message (Collapse)AuthorFilesLines
2009-05-20Have ntvfs_connect() accept union smb_tcon *tcon instead of char* sharenameSam Liddicott1-1/+29
This change brings ntvfs_connect into compliance with other ntvfs functions which take an ntvfs module, an ntvfs request and an smb io union. It now becomes the responsibility of ntvfs modules to examine tcon->generic.level themselves and derive the share name and any other options directly; e.g. const char *sharename; switch (tcon->generic.level) { case RAW_TCON_TCON: sharename = tcon->tcon.in.service; break; case RAW_TCON_TCONX: sharename = tcon->tconx.in.path; break; case RAW_TCON_SMB2: default: return NT_STATUS_INVALID_LEVEL; } if (strncmp(sharename, "\\\\", 2) == 0) { char *p = strchr(sharename+2, '\\'); if (p) { sharename = p + 1; } } service.c smbsrv_tcon_backend() is called before ntvfs_connect and fills in some of the tcon->..out values. For the case of RAW_TCON_TCONX, it filles out tcon->tconx.out.tid and tcon->tconx.out.options For the case of RAW_TCON_TCON it fills out tcon->tcon.out.tid and tcon->tcon.out.max_xmit Thus the ntvfs_connect function for vfs modules may override these values if desired, but are not required to. ntvfs_connect functions are required to fill in the tcon->tconx.out.*_type fields, for RAW_TCON_TCONX, perhaps something like: if (tcon->generic.level == RAW_TCON_TCONX) { tcon->tconx.out.fs_type = ntvfs->ctx->fs_type; tcon->tconx.out.dev_type = ntvfs->ctx->dev_type; } Signed-off-by: Sam Liddicott <sam@liddicott.com> (I fixed the ntvfs_connect() in the smb_server/smb2/ and the RAW_TCON_SMB2 switch case in the modules) Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-04-23Add a new non-convenience version of push_codepoint.Jelmer Vernooij1-2/+2
2009-02-05s4:pvfs_aio: fix compiler warningStefan Metzmacher1-1/+1
metze
2009-02-05s4:pvfs: remove compiler warningStefan Metzmacher1-2/+1
metze
2009-02-05s4:pvfs: use talloc_get_type() to cast from void *Stefan Metzmacher17-49/+102
metze
2009-02-05s4:pvfs: fix some talloc related compiler warningsStefan Metzmacher4-4/+8
metze
2009-02-02s4:ntvfs/posix: s/private/private_dataStefan Metzmacher3-10/+10
metze
2009-01-30Fix the mess with ldb includes.Simo Sorce2-2/+1
Separate again the public from the private headers. Add a new header specific for modules. Also add service function for modules as now ldb_context and ldb_module are opaque structures for them.
2009-01-07added support for stream renames in Samba4Andrew Tridgell3-18/+285
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-04tevent: move samba4 stuff from libtevent.m4 to samba.m4Stefan Metzmacher2-3/+2
metze
2008-12-29s4:lib/tevent: rename structsStefan Metzmacher5-10/+10
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-29s4:pvfs_aio: use teventStefan Metzmacher2-12/+12
metze
2008-12-23Fix more compiler warnings in various places.Jelmer Vernooij1-3/+3
2008-12-17s4: fix LIBEVENTS dependencies and use more forward declarationsStefan Metzmacher1-1/+1
We should only include events.h where we really need it and prefer forward declarations of 'struct event_context' metze
2008-12-01s4:pvfs: correctly check stream namesStefan Metzmacher1-15/+37
metze
2008-12-01s4:pvfs: return the correct error code for invalid namesStefan Metzmacher1-5/+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-24Remove unused include param/param.h.Jelmer Vernooij1-1/+0
2008-10-24Add version of next_codepoint without iconv_convenience.Jelmer Vernooij4-8/+7
2008-10-24Remove a few more usages of global_loadparm.Jelmer Vernooij1-1/+2
2008-10-24Split up codepoints code, use consistent _m suffix.Jelmer Vernooij1-1/+1
2008-10-11Fix include paths to new location of libutil.Jelmer Vernooij10-10/+10
2008-09-24empty access mask is only denied on SMB2Andrew Tridgell1-1/+3
2008-09-24zero access mask should give ACCESS_DENIEDAndrew Tridgell1-0/+4
2008-09-23added some debug codeAndrew Tridgell2-1/+3
2008-09-16Fix last few includes to use new tdb location.Jelmer Vernooij2-2/+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-24fixed spelling errorAndrew Tridgell1-1/+1
(This used to be commit 341f64834e13cdbc7d4742a4652ae39b70a4231f)
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-28pvfs: create a pvfs_acl subsystemStefan Metzmacher4-7/+43
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-28pvfs: pvfs_aio should be a subsystem instead of an extra ntvfs moduleStefan Metzmacher1-2/+1
metze (This used to be commit c904e28bef95cb0d61bf86f2ba1cef2d4e018d5f)
2008-06-03Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-testAndrew Tridgell11-47/+277
(This used to be commit 9d74201e462f2f95ed5bd91200681db3bd2a9277)
2008-06-03pvfs: use utimes() instead of utime() to get better timestamp resolutionStefan Metzmacher2-20/+32
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 Metzmacher2-4/+7
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_setfileinfo: update the write time in the opendbStefan Metzmacher1-0/+47
metze (This used to be commit 418e2592b48d558ff1d32031d64263ae21cf1eb0)
2008-06-03pvfs: trigger a write time update 2 seconds after the first writeStefan Metzmacher1-0/+55
metze (This used to be commit c8e15d4c185f18322a882aa908939fa9d0e341a0)
2008-06-03pvfs: add posix:writetimeupdatedelay optionStefan Metzmacher2-0/+9
metze (This used to be commit c3ba19ca62affced96b927fcbe63cf5d075aed22)
2008-06-03pvfs: add PVFS_RESOLVE_NO_OPENDB flag and get the write time from the opendbStefan Metzmacher8-21/+64
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 Metzmacher2-8/+23
metze (This used to be commit 3868d8ce630c71e2c70aae442fcdbd68ba1eb708)
2008-06-02more updates for new info levelsAndrew Tridgell1-1/+1
(This used to be commit 85d1873ee92fcc7df3addc42ddb8189144901f8b)
2008-06-02smbpid is 32 bit, and update SMB2 locking per MS-SMB2 Andrew Tridgell1-1/+1
The UNLOCK bit is only used from the first lock structure (This used to be commit 9483b7c137b61d3029a1e1e7d8d8d0723b541129)
2008-05-30don't emulate broken SMB2 locking behaviour from windowsAndrew Tridgell1-11/+3
(This used to be commit c50e7a15f9a7f2c5821b5ee468f9ade6eaa0ed55)
2008-05-29don't mask out SEC_FILE_READ_ATTRIBUTE on SMB2Andrew Tridgell1-1/+3
(This used to be commit 1dfa50a48040bdc1166be2dbe1063fd8a79166f8)
2008-05-29fixed the error code for bad SMB2 ioctlsAndrew Tridgell1-1/+2
(This used to be commit b1d2d388ecff96dfcc17da24796f36c40cbb3eed)
2008-05-29added support for returning the maximal access MXAC tag in SMB2 createAndrew Tridgell2-4/+32
(This used to be commit 4eb49335d5f0319f9aa47ded5215a2977d3336bf)
2008-05-29querying the ACCESS_INFORMATION is always allowedAndrew Tridgell1-0/+4
(This used to be commit 25d5b94d6a700f2d294e108aeca85cffcd5bbb4f)
2008-05-29SEC_FILE_READ_ATTRIBUTE is only automatically granted on SMB, not SMB2Andrew Tridgell1-3/+10
(This used to be commit 7bff0691428ed3f75c1a9cbaae692bc9830640e6)