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

533 Commits

Author SHA1 Message Date
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
Derrell Lipman
ee45d0d663 Missed a few 'deprecated' markers
(This used to be commit 76ba37ac46)
2008-03-03 18:25:49 -05:00
Derrell Lipman
1363ee9d65 Continued revamping of libsmbclient.
- James suggested using gcc's "deprecated" attribute to mark the context
  structure fields to generate warnings.  This creates a scenario with the
  best of all worlds.  I'm able to move to an organization that more easily
  allows future enhancements, while avoiding any mandatory changes by
  applications.  Thanks, James!

- Updated WHATSNEW.txt so that it accurately reflects the current state of
  affairs.

Derrell
(This used to be commit a67f96fbe9)
2008-03-03 18:13:33 -05:00
Derrell Lipman
8a05c0a884 Remove use of deprecated function
(This used to be commit 93580bce83)
2008-03-02 16:21:48 -05:00
Derrell Lipman
223940d9a8 Additional revamped libsmbclient documentation
- Ensured that all public functions have documentation in libsmbclient.h
- Reformatted for "proper" indentation
- Re-added temporarily-disabled alternate authentication function capability

Derrell
(This used to be commit 64b7150d92)
2008-03-01 20:47:22 -05:00
Derrell Lipman
257b7b0929 Initial revamp of the libsmbclient interface.
The libsmbclient interface has suffered from difficulty of improvement and
feature enrichment without causing ABI breakage.  Although there were a number
of issues, the primary ones were:

(a) the user of the library would manually manipulate the context structure
    members, meaning that nothing in the context structure could change other
    than adding stuff at the end;

(b) there were three methods of setting options: setting bits in a flags field
    within the context structure, setting explicit options variables within an
    options structure in the context structure, and by calling the
    smbc_option_set() function;

(c) the authentication callback did not traditionally provide enough
    information to the callee which required adding an option for a callback
    with a different signature, and now there are requests for even more
    information at the callback, requiring yet a third signature and option to
    set it (if we implement that feature).

This commit provides a reorganization of the code which fixes (a) and (b).
The context structure is now entirely opaque, and there are setter and getter
functions for manipulating it.  This makes maintaining ABI consistency much,
much easier.

Additionally, the options setting/getting has been unified into a single
mechanism using smbc_option_set() and smbc_option_get().

Yet to be completed is a refactoring of the authentication callback (c).

The test programs in examples/libsmbclient have been modified (if necessary;
some applications require no changes at all) for the new API and a few have
been minimally tested.

Derrell
(This used to be commit d4b4bae8de)
2008-03-01 20:47:22 -05:00
Karolin Seeger
707012ab5f Add mount.cifs as a wrapper for mount.cifs.
Karolin
(This used to be commit be5ee4999e)
2008-02-28 15:53:43 +01:00
Derrell Lipman
ab9afdd311 add a test program for the new ftruncate functionality
(This used to be commit df995eddbd)
2008-02-26 21:46:08 -05:00
Günther Deschner
d9a1282cc5 Dump msDS-SupportedEncryptionTypes in adssearch.
Guenther
(This used to be commit bc0b68709c)
2008-01-28 19:22:17 +01:00
Derrell Lipman
76b5c674e7 Add a program to test repeated calls to smbc_getxattr().
(This used to be commit f5f46de404)
2008-01-17 11:46:41 -05:00
Derrell Lipman
f14f2a4c43 Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
(This used to be commit 15ef5e4884)
2008-01-17 09:29:52 -05:00
Derrell Lipman
dba2400192 Add some additional libsmbclient test programs.
testwrite: create or truncate a file and write to it.
teststat3: compare the results from smbc_stat() and smbc_fstat()

Derrell
(This used to be commit 5a4a7aec76)
2008-01-17 09:26:36 -05:00
Alexander Bokovoy
03387a0f58 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.
(This used to be commit e342ca0d93)
2008-01-17 16:59:29 +03:00
Alexander Bokovoy
026a66abec Rework of VFS is_offline() function to only return boolean offline/online result for a file.
This makes sense as upper levels are only taking returned result of 0
(no error) into consideration when deciding whether to mark file
offline/online as returned from is_offline.

That means that we simply can move the decision down to VFS module and
clean up upper levels so that they always see only file status. If there
is an error when trying to identify file status, then VFS module could
decide what to return (offline or online) by itself -- after all, it
ought to have system-specific knowledge anyway.
(This used to be commit 75cc086614)
2008-01-17 14:57:35 +03:00
Jeremy Allison
3020ec12a3 Fix the mess that ab just made of the new VFS code.
NEEDS MORE TESTING !
Jeremy.
(This used to be commit bcc94aed6f)
2008-01-16 17:22:31 -08:00
Derrell Lipman
3e494442de Modify testread example to loop using same context.
There's been a problem seen where open/read/close a number of times causes
open failures eventually.  This program has been modified to create the
context once and then loop requesting file names to open/read/close.

This program also demonstrates the current error in cli_read() where it
returns an error instead of length 0 upon end of file.

Derrell
(This used to be commit 9d75ea577b)
2008-01-16 14:41:11 +00:00
Derrell Lipman
735e98759c Replace GetTimeOfDay() with gettimeofday() in example program.
GetTimeOfDay() seems to no longer be exported.  For the smbsh example, just
use the native gettimeofday() for now.
(This used to be commit 296a6783fb)
2008-01-16 14:37:40 +00:00
Derrell Lipman
12d31ba2b8 Add a (very!) trivial cache to the example authentication callback.
(This used to be commit 01f6a4cca7)
2008-01-16 14:35:44 +00:00
Derrell Lipman
9788383a6c Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-test
(This used to be commit 3a61e663e5)
2008-01-15 13:58:47 +00:00
Michael Adam
f326cd2be5 Fix bug #5171 (perl syntax error) found by Jason Filley <jason@snakelegs.org>
Michael
(This used to be commit dcb5034acd)
2008-01-14 15:46:01 +01:00
Derrell Lipman
011e89c858 Fix smbc_listxattr() and friends (bug #5189)
When the capability of using full names for DOS attributes was added, a bug
was introduced which caused the wrong number of bytes to be returned.  This
patch to smbc_listxattr_ctx() fixes the problem.

Thanks to Jack Schmidt for this patch.

Derrell
(This used to be commit 913c335d21)
2008-01-13 17:10:06 -05:00
Derrell Lipman
d49ba81210 Fix compile and linking errors since last this code was tested
(This used to be commit 2f43284244)
2008-01-13 12:07:18 -05:00
Michael Adam
fef9cf00e1 Combine fsp and tofd to tofsp in SMB_VFS_RECVFILE().
Michael
(This used to be commit 3958abffaf)
2008-01-11 01:27:05 +01:00
Michael Adam
4caab9ca25 Combine fsp and fromfd to fromfsp in SMB_VFS_SENDFILE().
Michael
(This used to be commit a52cfb7d77)
2008-01-11 01:27:05 +01:00
Michael Adam
e9a3a62e74 Remove redundant parameter fd from SMB_VFS_WRITE().
Michael
(This used to be commit c8ae7d095a)
2008-01-10 15:49:35 +01:00
Michael Adam
1d66f4d58b Remove redundant parameter fd from SMB_VFS_READ().
Michael
(This used to be commit a8fc2ddad8)
2008-01-10 15:33:51 +01:00
Günther Deschner
83b1751615 Remove unused string.
Guenther
(This used to be commit 88d6683872)
2008-01-10 13:02:10 +01:00
Günther Deschner
af02de700d Fix build warning for libsmbclient example.
Guenther
(This used to be commit 8f411753b2)
2008-01-09 10:20:44 +01:00
Michael Adam
e09316ed78 Fix returns in void functions.
Michael
(This used to be commit ef7c9a765b)
2008-01-08 22:51:21 +01:00
Michael Adam
89f1fec4e5 Fix examples/VFS after VFS API changes.
Michael
(This used to be commit c88555ce45)
2008-01-08 22:20:13 +01:00
Michael Adam
edd30e716f Remove redundant parameter fd from SMB_VFS_LOCK().
Michael
(This used to be commit 4f3ab2c406)
2008-01-07 16:38:23 +01:00
Michael Adam
b457b94bb8 Remove redundant parameter fd from SMB_VFS_FTRUNCATE().
Michael
(This used to be commit 2ad66050a0)
2008-01-07 15:59:02 +01:00
Michael Adam
670909cb07 Remove redundant parameter fd from SMB_VFS_FCHOWN().
Michael
(This used to be commit fbb193db3e)
2008-01-07 15:59:02 +01:00
Michael Adam
e614dec27f Remove redundant parameter fd from SMB_VFS_FCHMOD().
Michael
(This used to be commit a54d5604da)
2008-01-07 15:59:02 +01:00
Michael Adam
87a684f7fc Remove redundant parameter fd from SMB_VFS_FSTAT().
Michael
(This used to be commit 0b86c420be)
2008-01-07 15:59:01 +01:00
Michael Adam
8dcce0d236 Remove redundant parameter fd from SMB_VFS_FSYNC().
Michael
(This used to be commit 8f83c9a7b2)
2008-01-07 15:59:01 +01:00
Michael Adam
6f657c873e Remove redundant parameter fd from SMB_VFS_LSEEK().
Michael
(This used to be commit df929796f2)
2008-01-07 15:59:01 +01:00
Michael Adam
a56b417809 Remove redundant parameter fd from SMB_VFS_PWRITE().
Michael
(This used to be commit 8c4901a19a)
2008-01-07 15:59:01 +01:00
Michael Adam
3f4699f5a3 Adapt fset_nt_acl() and fget_nt_acl() in examples/VFS/ to vfs prototype change.
Michael
(This used to be commit d9d6775878)
2008-01-07 01:04:55 +01:00
Michael Adam
ca275e2549 Remove unneeded parameter fd from SMB_VFS_PREAD().
Michael
(This used to be commit 73e28806ce)
2008-01-07 00:14:19 +01:00
Karolin Seeger
c402ec1bd8 Fix typo
(This used to be commit e811b9f3bb)
2007-11-09 12:11:30 +01:00
Michael Adam
62fcfe988c The FSF has moved around a lot. This fixes their Mass Ave address.
This adapts r23801 / 87c91e4362
to files just added by cherry-pick.
Michael
(This used to be commit a0d595c227)
2007-11-09 11:20:01 +01:00
Michael Adam
57d6b313df Find and fix more GPL2 -> GPL3.
Jeremy.

This adapts r23780 / c2f7ab1c17
for files added by cherry-pick.
(This used to be commit 1b6cf93992)
2007-11-09 11:20:00 +01:00
Michael Adam
a113515420 r23714: This script allows for adding lists of users (or other objects)
to lists of groups (or aliases). Useful for creating large test
scenarios.

Michael
(cherry picked from commit b3e5082e10)
(This used to be commit 78a2344fe7)
2007-11-09 11:19:58 +01:00
Michael Adam
cc4541def0 r23711: Refactor the actual creation of object into its own small function.
Michael
(cherry picked from commit 26349c0b17)
(This used to be commit 852570059c)
2007-11-09 11:19:57 +01:00
Michael Adam
67e79219da r23706: Add a script to create domainusers,-groups and -aliases.
This is done via rpc client. The main purpose is to
be able to fill a domain controller with a large number
of users / groups easily. A the object names are
built as <prefix><num> where number ranges from a given
start number counting up until a given number of objects
has been created.

In a next step, I will submit scripts to add (many) users to
a group and to add a user to (many) groups.

Michael
(cherry picked from commit 8b81fbb7d9)
(This used to be commit 79414f8bfa)
2007-11-09 11:19:56 +01:00
Jeremy Allison
488b59cfac Add in the recvfile entry to the VFS layer with a default
implementation. Needed for the zero-copy write code.
Jeremy.
(This used to be commit bfbdb6324c)
2007-10-29 17:16:13 -07:00
Jeremy Allison
30191d1a57 RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
(This used to be commit f35a266b3c)
2007-10-18 17:40:25 -07:00
Gerald (Jerry) Carter
e5a951325a [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
(This used to be commit 5c6c8e1fe9)
2007-10-10 15:34:30 -05:00
Simo Sorce
d80fcfce90 r25127: Add ol-schema-migrate.pl to the repo.
This script is useful for migrating OpenLDAP schema files to FDS/RHDS
lidf schema files.

License kindly updated to GPLv3+ at our request.

Simo.
(This used to be commit ab7770b34b)
2007-10-10 12:30:42 -05:00