1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-17 15:17:09 +03:00

356 Commits

Author SHA1 Message Date
Volker Lendecke
344d69f95e Remove some references to get_current_username() and current_user_info 2008-05-25 11:43:57 +02:00
Tim Prouty
6b189dabc5 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.
2008-05-20 22:40:13 +02:00
Volker Lendecke
368454a27c Remove "user" from connection_struct 2008-05-10 11:17:01 +02:00
Volker Lendecke
2834dacc8d Remove the unix token info from connection_struct 2008-05-10 11:17:01 +02:00
Jeremy Allison
f487f742cb 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.
2008-05-08 18:09:07 -07:00
Volker Lendecke
559180f7d3 Remove connection_struct->mem_ctx, connection_struct is its own parent 2008-05-05 11:23:13 +02:00
Michael Adam
1429453551 Remove redundant parameter fd from SMB_VFS_CLOSE().
Now all those redundant fd's have vanished from the VFS API.

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

Michael
2008-04-21 00:21:24 +02:00
Michael Adam
3cf56b124a 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
2008-04-21 00:21:23 +02:00
Michael Adam
04d671b8c9 vfs_cacheprime: fix C++ warning - make implicit cast explicit
Michael
2008-04-20 22:29:35 +02:00
Volker Lendecke
8e348ab865 Remove a redundant TALLOC_FREE 2008-04-11 23:14:53 +02:00
Jeremy Allison
f4a1fdaac0 Use size_t for strlen return, not int. Karolin please
pull.
Jeremy.
2008-04-08 07:43:30 -07:00
Alexander Bokovoy
1faa97d5cc 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.
2008-04-08 15:17:53 +04:00
Volker Lendecke
700cceb694 Fix Coverity ID 450 2008-03-23 18:28:23 +01:00
Volker Lendecke
0d50b4ee90 Fix Coverity warnings
ID 449, 448, 447, 446, 445, 444, 443, 442, 441, 440, 439, 438, 437
2008-03-23 16:16:13 +01:00
Volker Lendecke
1a0aed566b Fix Coverity IDs 553, 552 2008-03-21 10:22:15 +01:00
Volker Lendecke
df574fd2ee Fix some warnings in the tsmsm module
Alexander, please check!
2008-03-20 16:54:05 +01:00
Volker Lendecke
c2b2a9303d Need to close the /dev/zero fd 2008-03-16 11:58:33 +01:00
Volker Lendecke
8ef57a34eb Respect FAMChanged -- attempt to fix bug 5307
Thanks to Ricardo Santos
2008-03-06 10:07:46 +01:00
Volker Lendecke
b0e52cecf2 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
2008-02-29 09:47:53 +01:00
Michael Adam
2e4028162f Fix the build on OpenBSD: ENOTSUP is not always defined.
Michael
2008-02-25 17:06:09 +01:00
Volker Lendecke
71641f04d4 Correctly check return of rename(2)
Bug 5279 -- Thanks to Max Matveev
2008-02-25 13:05:18 +01:00
Karolin Seeger
a2230ccc17 Change option name.
xattr:tdb -> xattr_tdb:file (according to the other vfs option names)

Karolin
2008-02-21 19:34:48 +01:00
Jeremy Allison
d9b72282c6 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
2008-02-20 22:10:54 -08:00
Alexander Bokovoy
863b5ed07a Fix typos and replace statvfs call with fs_capabilities() 2008-01-29 18:33:22 +03:00
Alexander Bokovoy
5efb57d904 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.
2008-01-29 17:43:49 +03:00
Alexander Bokovoy
58dce4cdf2 Merge branch 'ctdb-merge' into dmapi-integration 2008-01-29 16:19:21 +03:00
Volker Lendecke
c94c04e3e6 Attempt to fix the build on OpenBSD
Thanks to metze for pointing this out
2008-01-25 20:53:21 +01:00
Alexander Bokovoy
42d06d41bf Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into ctdb-merge 2008-01-24 14:06:22 +03:00
Volker Lendecke
fd34ce4370 strtok -> strtok_r 2008-01-23 15:08:04 +01:00
Volker Lendecke
f12ac1eced Remove two unused variables 2008-01-23 10:33:36 +01:00
Volker Lendecke
e9bb3d5067 Hide streams from the EA API 2008-01-22 12:29:02 +01:00
Volker Lendecke
5b05e09daf Attempt to fix the darwin build 2008-01-21 18:08:19 +01:00
Volker Lendecke
3ad798d803 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!
2008-01-21 16:14:27 +01:00
Volker Lendecke
4a6dadc517 Fix some "set but never used" warnings 2008-01-20 17:44:40 +01:00
Volker Lendecke
d7e6ec2258 Fix valgrind errors 2008-01-20 15:29:58 +01:00
Volker Lendecke
023b313d0d Do not use an unfinished fsp in streams_xattr_open 2008-01-20 14:09:08 +01:00
Volker Lendecke
b7022f8f7b 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.
2008-01-20 14:05:36 +01:00
Volker Lendecke
8db25aba63 Add some DEBUG 2008-01-20 13:55:27 +01:00
Volker Lendecke
d481dddc81 For pread/pwrite we need to do the setxattr on base_fsp 2008-01-20 13:51:52 +01:00
Volker Lendecke
c1794375d1 Really remove the _NEXT_ from vfs_xattr_tdb.c
This must have been lost somewhere in my patch-mangling
2008-01-20 13:49:38 +01:00
Volker Lendecke
3509ee597f Support XATTR_CREATE and XATTR_REPLACE in vfs_xattr_tdb 2008-01-20 11:20:58 +01:00
Volker Lendecke
dac468216e Complete the ea->xattr rename in vfs_xattr_tdb 2008-01-20 11:10:06 +01:00
Volker Lendecke
5f5fc72b01 vfs_streams_depot
Store streams in a file each. Not 100% finished, and not built by default.
2008-01-19 23:36:34 +01:00
Volker Lendecke
83a805220e 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.
2008-01-19 23:34:22 +01:00
Volker Lendecke
c34d729c7c 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()
2008-01-19 22:58:17 +01:00
Volker Lendecke
64e54ea8f7 Fix error return in xattr_tdb_load_attrs 2008-01-19 18:51:20 +01:00
Alexander Bokovoy
cf1f90ad7a Merge DMAPI fixes from CTDB Samba 2008-01-18 17:34:21 +03:00
Volker Lendecke
a3b36c3cb0 Fix two uninitialized variables in vfs_hpuxacl.c
Thanks to David Leonard <David.Leonard@quest.com>, this fixes bug 5208.

Volker
2008-01-17 17:22:31 +01:00
Alexander Bokovoy
e342ca0d93 Remove is_remotestorage() call from VFS. We already have statvfs() there to handle FS capabilities.
As discussed with Volker, it is better to calculate FS capabilities at
connection time. We already do this with help of VFS statvfs() call
which allows to fill-in system-specific attributes including FS
capabilities. So just re-use it if you want to represent additional
capabilities in your modules. The only caution is that you need to
call underlying statvfs() call to actually get system-specific
capabilities (and other fields) added. Then add module-specific ones.
2008-01-17 16:59:29 +03:00