1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

357 Commits

Author SHA1 Message Date
Volker Lendecke
d1e0c7f0c1 Add STREAMINFO op to vfs_full_audit
Fix Coverity ID 552 and 553
(This used to be commit c46e10d260)
2008-06-07 09:04:03 +02:00
Volker Lendecke
50ab871813 Remove some references to get_current_username() and current_user_info
(This used to be commit 344d69f95e)
2008-05-25 11:43:57 +02:00
Tim Prouty
fb37f15600 Cleanup size_t return values in callers of convert_string_allocate
This patch is the second iteration of an inside-out conversion to cleanup
functions in charcnv.c returning size_t == -1 to indicate failure.
(This used to be commit 6b189dabc5)
2008-05-20 22:40:13 +02:00
Volker Lendecke
5bda9a8af0 Remove "user" from connection_struct
(This used to be commit 368454a27c)
2008-05-10 11:17:01 +02:00
Volker Lendecke
53a623d8a6 Remove the unix token info from connection_struct
(This used to be commit 2834dacc8d)
2008-05-10 11:17:01 +02:00
Jeremy Allison
00b2cdf75e Yay ! Remove a VFS entry. Removed the set_nt_acl() call,
this can only be done via fset_nt_acl() using an open
file/directory handle. I'd like to do the same with
get_nt_acl() but am concerned about efficiency
problems with "hide unreadable/hide unwritable" when
doing a directory listing (this would mean opening
every file in the dir on list).
Moving closer to rationalizing the ACL model and
maybe moving the POSIX calls into a posix_acl VFS
module rather than having them as first class citizens
of the VFS.
Jeremy.
(This used to be commit f487f742cb)
2008-05-08 18:09:07 -07:00
Volker Lendecke
d62563342e Remove connection_struct->mem_ctx, connection_struct is its own parent
(This used to be commit 559180f7d3)
2008-05-05 11:23:13 +02:00
Michael Adam
0db7aba8af Remove redundant parameter fd from SMB_VFS_CLOSE().
Now all those redundant fd's have vanished from the VFS API.

Michael
(This used to be commit 1429453551)
2008-04-21 00:22:42 +02:00
Michael Adam
2f8dde9ec8 Change fd_close_posix() to return int instead of NTSTATUS.
The errno is handed up through the VFS layer to the callers.

Michael
(This used to be commit d928e6648d)
2008-04-21 00:21:24 +02:00
Michael Adam
3756467db6 Move the posix pending close functionality down into the VFS layer.
This hides the pending close fds from the outside. Call order
of SMB_VFS_CLOSE is reversed. Originally, it was:

fd_close -> fd_close_posix -> SMB_VFS_CLOSE -> close

And now it is:

fd_close -> SMB_VFS_CLOSE -> fd_close_posix -> close

This is in preparation of removing the fd parameter
from the SMB_VFS_CLOSE function. But it is also the right
place for the pending close calls anyways.

Michael
(This used to be commit 3cf56b124a)
2008-04-21 00:21:23 +02:00
Michael Adam
c57f1ab345 vfs_cacheprime: fix C++ warning - make implicit cast explicit
Michael
(This used to be commit 04d671b8c9)
2008-04-20 22:29:35 +02:00
Volker Lendecke
fd502a74f7 Remove a redundant TALLOC_FREE
(This used to be commit 8e348ab865)
2008-04-11 23:14:53 +02:00
Jeremy Allison
0d49500c35 Use size_t for strlen return, not int. Karolin please
pull.
Jeremy.
(This used to be commit f4a1fdaac0)
2008-04-08 07:43:30 -07:00
Alexander Bokovoy
0eba3b5b8f Allow broader range of HSM systems in vfs_tsmsm
Allow to specify value of DMAPI attribute returned during offline file checks, 'tsmsm: dmapi value'.
    Previously tsmsm module has supported only IBM TSM SM engine which reports file state by *existence*
    of a certain DMAPI attribute. Other HSM systems report a certain value as DMAPI request's result.
    Port from Tridge's v3-0-ctdb git tree.
(This used to be commit 1faa97d5cc)
2008-04-08 15:17:53 +04:00
Volker Lendecke
20caa9bbe6 Fix Coverity ID 450
(This used to be commit 700cceb694)
2008-03-23 18:28:23 +01:00
Volker Lendecke
527b561824 Fix Coverity warnings
ID 449, 448, 447, 446, 445, 444, 443, 442, 441, 440, 439, 438, 437
(This used to be commit 0d50b4ee90)
2008-03-23 16:16:13 +01:00
Volker Lendecke
296bbc3c9f Fix Coverity IDs 553, 552
(This used to be commit 1a0aed566b)
2008-03-21 10:22:15 +01:00
Volker Lendecke
427c60e92c Fix some warnings in the tsmsm module
Alexander, please check!
(This used to be commit df574fd2ee)
2008-03-20 16:54:05 +01:00
Volker Lendecke
5aec381434 Need to close the /dev/zero fd
(This used to be commit c2b2a9303d)
2008-03-16 11:58:33 +01:00
Volker Lendecke
05af5c367d Respect FAMChanged -- attempt to fix bug 5307
Thanks to Ricardo Santos
(This used to be commit 8ef57a34eb)
2008-03-06 10:07:46 +01:00
Volker Lendecke
18206a4cb5 Add vfs_aio_fork
This is used for two purposes:

First, I'm using it to test the async I/O code. In the forked process it is
pretty easy to delay a reply for a random amount of time. See the
BUILD_FARM_HACKS snippet.

Second, there are systems around that claim to have Posix AIO but which is
broken. This might be some help for those systems.

Also add tests how to pass file descriptors
(This used to be commit b0e52cecf2)
2008-02-29 09:47:53 +01:00
Michael Adam
b46bf47171 Fix the build on OpenBSD: ENOTSUP is not always defined.
Michael
(This used to be commit 2e4028162f)
2008-02-25 17:06:09 +01:00
Volker Lendecke
cd95385207 Correctly check return of rename(2)
Bug 5279 -- Thanks to Max Matveev
(This used to be commit 71641f04d4)
2008-02-25 13:05:18 +01:00
Karolin Seeger
7428f00d22 Change option name.
xattr:tdb -> xattr_tdb:file (according to the other vfs option names)

Karolin
(This used to be commit a2230ccc17)
2008-02-21 19:34:48 +01:00
Jeremy Allison
94ed19c4a8 From: David Disseldorp <ddiss@sgi.com>
The vfs_prealloc module makes use of the now redundant fd parameter for
SMB_VFS_FTRUNCATE(), instead get the fd from the files_struct.

Patch for Samba 3.2 Test branch below.

Cheers, David D
(This used to be commit d9b72282c6)
2008-02-20 22:10:54 -08:00
Alexander Bokovoy
77a3e46a4c Fix typos and replace statvfs call with fs_capabilities()
(This used to be commit 863b5ed07a)
2008-01-29 18:33:22 +03:00
Alexander Bokovoy
28b27bfd40 Merge DMAPI fixes from Tridge
Support cases when existing DMAPI session is stale. In this case we are creating another one.
The code differs from 3-0_ctdb branch in that we fail when it is not possible to create more
sessions and pretend that file is offline. This allows to escape endless loop in vfs_tsmsm.c.
(This used to be commit 5efb57d904)
2008-01-29 17:43:49 +03:00
Alexander Bokovoy
ef2d66bd1d Merge branch 'ctdb-merge' into dmapi-integration
(This used to be commit 58dce4cdf2)
2008-01-29 16:19:21 +03:00
Volker Lendecke
0b10c67c0c Attempt to fix the build on OpenBSD
Thanks to metze for pointing this out
(This used to be commit c94c04e3e6)
2008-01-25 20:53:21 +01:00
Alexander Bokovoy
eba5fbff74 Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into ctdb-merge
(This used to be commit 42d06d41bf)
2008-01-24 14:06:22 +03:00
Volker Lendecke
587cf54c61 strtok -> strtok_r
(This used to be commit fd34ce4370)
2008-01-23 15:08:04 +01:00
Volker Lendecke
5b35ecd930 Remove two unused variables
(This used to be commit f12ac1eced)
2008-01-23 10:33:36 +01:00
Volker Lendecke
a4c2b04a2b Hide streams from the EA API
(This used to be commit e9bb3d5067)
2008-01-22 12:29:02 +01:00
Volker Lendecke
2dbbb37574 Attempt to fix the darwin build
(This used to be commit 5b05e09daf)
2008-01-21 18:08:19 +01:00
Volker Lendecke
9a22653222 Add SMB_VFS_FS_CAPABILITIES
It turns out that this is a necessary operation, separate from statvfs. statvfs
can fail during tcon, so conn->fs_capabilities would never see that we support
streams on a particular share.

James, can you check that I got the darwin variant right? Thanks!
(This used to be commit 3ad798d803)
2008-01-21 16:14:27 +01:00
Volker Lendecke
33f3eeaa00 Fix some "set but never used" warnings
(This used to be commit 4a6dadc517)
2008-01-20 17:44:40 +01:00
Volker Lendecke
bf7f13c9a7 Fix valgrind errors
(This used to be commit d7e6ec2258)
2008-01-20 15:29:58 +01:00
Volker Lendecke
fe57c149f0 Do not use an unfinished fsp in streams_xattr_open
(This used to be commit 023b313d0d)
2008-01-20 14:09:08 +01:00
Volker Lendecke
6fcbb1111d In streams_xattr_pwrite, base_fsp does not have an fd
These bugs haven't shown up when I did my tests with real xattrs, not with the
xattr_tdb backend. It worked because the stream fsp does has the base file as
fd.
(This used to be commit b7022f8f7b)
2008-01-20 14:05:36 +01:00
Volker Lendecke
4222fa62e9 Add some DEBUG
(This used to be commit 8db25aba63)
2008-01-20 13:55:27 +01:00
Volker Lendecke
a39771d3d2 For pread/pwrite we need to do the setxattr on base_fsp
(This used to be commit d481dddc81)
2008-01-20 13:51:52 +01:00
Volker Lendecke
a6fcaf73d7 Really remove the _NEXT_ from vfs_xattr_tdb.c
This must have been lost somewhere in my patch-mangling
(This used to be commit c1794375d1)
2008-01-20 13:49:38 +01:00
Volker Lendecke
0b9314db5a Support XATTR_CREATE and XATTR_REPLACE in vfs_xattr_tdb
(This used to be commit 3509ee597f)
2008-01-20 11:20:58 +01:00
Volker Lendecke
e1d01878f5 Complete the ea->xattr rename in vfs_xattr_tdb
(This used to be commit dac468216e)
2008-01-20 11:10:06 +01:00
Volker Lendecke
dfd05b9b65 vfs_streams_depot
Store streams in a file each. Not 100% finished, and not built by default.
(This used to be commit 5f5fc72b01)
2008-01-19 23:36:34 +01:00
Volker Lendecke
4ba64fce49 vfs_streams_xattr module
Store streams in posix xattrs. A kludge, as xattrs are limited in many ways,
but it might be a help for some situations.
(This used to be commit 83a805220e)
2008-01-19 23:34:22 +01:00
Volker Lendecke
1b976d5192 Add the STREAMINFO vfs call
Based on jpeach's work, modified the streaminfo prototype

Make use of it in trans2.c together with marshall_stream_info()
(This used to be commit c34d729c7c)
2008-01-19 22:58:17 +01:00
Volker Lendecke
70f88005c7 Fix error return in xattr_tdb_load_attrs
(This used to be commit 64e54ea8f7)
2008-01-19 18:51:20 +01:00
Alexander Bokovoy
c17c64530e Merge DMAPI fixes from CTDB Samba
(This used to be commit cf1f90ad7a)
2008-01-18 17:34:21 +03:00
Volker Lendecke
9e3634fb63 Fix two uninitialized variables in vfs_hpuxacl.c
Thanks to David Leonard <David.Leonard@quest.com>, this fixes bug 5208.

Volker
(This used to be commit a3b36c3cb0)
2008-01-17 17:22:31 +01:00