1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

51854 Commits

Author SHA1 Message Date
Bo Yang
e256d72f0c Make libsmbclient work with DFS
Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
2009-02-20 09:46:46 -05:00
Karolin Seeger
27307be0f7 s3/docs: Add hint about getfattr in man vfs_acl_xattr.
Karolin
2009-02-20 14:14:54 +01:00
Karolin Seeger
0fd1d4c090 s3/docs: Add man vfs_acl_tdb.
Karolin
2009-02-20 13:32:44 +01:00
Karolin Seeger
3b0114c0ba s3/docs: Add man vfs_acl_xattr.
Karolin
2009-02-20 13:32:22 +01:00
Karolin Seeger
54dbb030e2 s3/docs: Fix several typos.
This fixes bug #6127.
Thanks to Justin T Pryzby <justinpryzby [at] users.sourceforge.net>
for the review!

Karolin
2009-02-20 09:20:16 +01:00
Tim Prouty
73d5f14c04 s3 OneFS: Add shadow copy module 2009-02-19 21:09:31 -08:00
Tim Prouty
53bcd162ee s3 OneFS: Add file_id_create implementation to take advantage of snapshots 2009-02-19 21:09:30 -08:00
Tim Prouty
04a7213eb6 s3: Change the vfs_GetWd cache to use the file_id struct 2009-02-19 21:09:30 -08:00
Tim Prouty
2b53b79193 s3: Remove unused inform_level2_message struct 2009-02-19 21:09:30 -08:00
Tim Prouty
e4675ce8db s3: Add extid to the dev/inode pair
This extends the file_id struct to add an additional generic uint64_t
field: extid.  For backwards compatibility with dev/inodes stored in
xattr_tdbs and acl_tdbs, the ext id is ignored for these databases.
This patch should cause no functional change on systems that don't use
SMB_VFS_FILE_ID_CREATE to set the extid.

Existing code that uses the smb_share_mode library will need to be
updated to be compatibile with the new extid.
2009-02-19 20:58:26 -08:00
Tim Prouty
6fbebb5369 s3: Modify SMB_VFS_FILE_ID_CREATE to take a stat struct
Since file_id_create_dev is incompatible with the concept of file_ids,
it is now static and in the one file that needs it.
2009-02-19 20:58:01 -08:00
Jeremy Allison
669f2a02e2 Fix printf warnings found on systems where time_t <> long int.
Jeremy.
2009-02-19 13:36:20 -08:00
Jeremy Allison
2ca48d3740 Fix printf type warning.
Jeremy.
2009-02-19 13:11:36 -08:00
Volker Lendecke
9823b4343d Fix an uninitialized variable 2009-02-19 21:00:29 +01:00
Volker Lendecke
a13f065bad Fix a O(n^2) algorithm in regdb_fetch_keys() 2009-02-19 20:06:29 +01:00
Günther Deschner
669617036e s3-spoolss: fix vista fallback in _spoolss_AddPrinterDriverEx.
Martin Zielinski, if you're reading this, please have a look. Vista nicely takes
just a WERR_UNKNOWN_LEVEL here and retries with a level 6 add.

Guenther
2009-02-19 19:27:07 +01:00
Günther Deschner
38fde6d5d9 s3-spoolss: remove old spoolss_AddPrinterDriver{Ex}.
Guenther
2009-02-19 19:26:54 +01:00
Günther Deschner
0470feeb7f s3-spoolss: use pidl for _spoolss_AddPrinterDriver{Ex}.
Guenther
2009-02-19 19:26:44 +01:00
Günther Deschner
c71fa39c29 s3-spoolss: remove old spoolss_GetPrintProcessorDirectory.
Guenther
2009-02-19 19:23:51 +01:00
Günther Deschner
286ec6847b s3-spoolss: use pidl for _spoolss_GetPrintProcessorDirectory.
Guenther.
2009-02-19 19:21:57 +01:00
Günther Deschner
8c569b59f0 s3-rpcclient: use rpccli_spoolss_GetPrintProcessorDirectory in rpcclient.
Guenther
2009-02-19 19:21:48 +01:00
Günther Deschner
e9c42e3c21 s3-spoolss: fix _spoolss_GetPrinterDriverDirectory.
treat architecture correctly as it is a [unique] pointer, and newer
Windows versions sometimes send in an empty string.

Guenther
2009-02-19 19:20:19 +01:00
Günther Deschner
ebb3b30700 s3-rpcclient: use SPOOLSS_ARCHITECTURE_NT_X86 define in spoolss getdriverdir cmd.
Guenther
2009-02-19 19:20:07 +01:00
Günther Deschner
0038acb20d s3-spoolss: _spoolss_OpenPrinterEx needs to wipe out policy handle upon failure.
Guenther
2009-02-19 19:19:59 +01:00
Günther Deschner
bcb5331fa7 s3-spoolss: _spoolss_AddPrinterEx needs to wipe out policy handle upon failure.
Guenther
2009-02-19 19:19:50 +01:00
Günther Deschner
4f803502ef spoolss: add ndr_size_spoolss_StringArray to spoolss helper.
Guenther
2009-02-19 18:00:36 +01:00
Günther Deschner
b3ba24582d s3: re-run make samba3-idl.
Guenther
2009-02-19 17:59:51 +01:00
Günther Deschner
00725b7c6e spoolss: remove gensize calculation from spoolss_StringArray. Thanks metze!
Guenther
2009-02-19 17:59:15 +01:00
Volker Lendecke
d0ee90ace9 Fix a buffer handling bug when adding lots of registry keys
This is *ancient*... From 2002, and nobody noticed until someone added lots of
shares using net conf... :-)
2009-02-19 14:26:50 +01:00
Günther Deschner
7d44cd50e8 s3: re-run make samba3-idl.
Guenther
2009-02-19 13:06:11 +01:00
Günther Deschner
1852cd0a60 spoolss: fill in spoolss_GetPrintProcessorDirectory.
Guenther
2009-02-19 13:05:32 +01:00
Günther Deschner
e9d5405948 s3-libnet: fix coverity #848 (UNINIT).
Guenther
2009-02-19 13:01:59 +01:00
Stefan Metzmacher
052f3f0d4d s4:librpc/ndr: if uninitialized variable in string_array code
metze
2009-02-19 11:13:35 +01:00
Stefan Metzmacher
7082e4526f s3:librpc/ndr: if uninitialized variable in string_array code
metze
2009-02-19 11:13:34 +01:00
Stefan Metzmacher
d61e152b29 librpc: rerun make idl 2009-02-19 11:13:34 +01:00
Stefan Metzmacher
6563c2b7e4 pidl:NDR/Parser: don't call [noopnum] function when creating the ndr_interface_table
metze
2009-02-19 11:13:33 +01:00
Zack Kirsch
96b3242f12 s3 OneFS: Fixes "inherit permissions" and "nt acl support" for Onefs. 2009-02-19 00:15:44 -08:00
todd stecher
59d21afa83 S3: Dumb down debug spew in perfcount module code 2009-02-19 00:01:41 -08:00
todd stecher
fdcd5a3a20 S3: Make changes to perfcount API set for when a single request leads to multiple replies
(e.g. reply_echo). Change test and onefs modules to match new api set (thanks Volker!).
2009-02-19 00:01:00 -08:00
Tim Prouty
6bac890533 s4 torture: Add new test to create a file with a lot of streams
This tests how streaminfo deals with large buffers

smbclient seems to have problems when the buffer size approaches the
max data size.  Also smbclient exposes no way to specify the max data
size that is sent in a trans2 request.  Instead it hardcodes in a much
larger max than windows uses.  For these reasons this test isn't
actually run, but is more of a reference for how windows handles
streaminfo buffers.
2009-02-18 23:48:35 -08:00
Tim Prouty
ab025bf0fe s3: Fix bug opening streams with truncating disposition
Do not attempt to delete streams on a truncating open, if the name
we're opening is itself a stream.

Port 176e8857203944bc332844b700749120ce90c891 to standard open path
2009-02-18 23:48:35 -08:00
Tim Prouty
7a2c4acf86 s4 torture: Add additional streams create disposition test 2009-02-18 23:48:35 -08:00
Zack Kirsch
053e1873c5 s3: OneFS: Pass in the client's fnum to the ifs_cbrl syscall. 2009-02-18 20:50:05 -08:00
Aravind Srinivasan
176e885720 s3: Fix OneFS bug opening streams with truncating disposition
Do not attempt to delete streams on a truncating open, if the name we're
opening is itself a stream
2009-02-18 20:50:05 -08:00
Aravind Srinivasan
8e8aa27e1b s3: Fix streams enumeration bug in OneFS implementation
Previously, we didn’t call SMB_VFS_OPEN_DIR from the streams module,
instead we called fdopendir(). As a result we failed to populate the
dir_state list in the readdirplus module. So when we tried to view the
stream data, we will always returned NULL.

To solve this I separated onefs_opendir() and the initialization of
the dir_state list. This is done by introducing a new utility function
“onefs_rdp_add_dir_state()”, which initializes the dir_state structure
and adds it to the dir_state list.  This function is called from the
streams module before calling readdir().
2009-02-18 20:49:31 -08:00
todd stecher
c19214424b S3: Log warning in smbstatus about lack of pid in anonymous mode. 2009-02-18 18:08:33 -08:00
todd stecher
03421944b2 S3: Stop creating SMBD cores when failing to create a pipe.
This was uncovered when the MAX FD limit was hit, causing an instant core
and invoking error reporting. This fix causes SMBD to exit, but without
building a core.
2009-02-18 18:08:33 -08:00
todd stecher
c441f58ded S3: Allow SMBD processes to survive in low memory condidtions
This commit adds a configure argument which allows for setting MADV_PROTECT
in the madvise() API.  With this enabled the kernel won't kill SMBD when
it's running low on memory.
2009-02-18 18:08:32 -08:00
Günther Deschner
cdcd525a05 s3-spoolss: remove old spoolss_GetPrinterDriverDirectory.
Guenther
2009-02-19 02:07:58 +01:00
Günther Deschner
3b3ab50c05 s3-spoolss: use pidl for _spoolss_GetPrinterDriverDirectory.
Guenther
2009-02-19 02:06:57 +01:00