~lefteris-nikoltsios/+junk/samba-lp1016895

« back to all changes in this revision

Viewing changes to source3/torture/proto.h

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-21 13:18:04 UTC
  • mfrom: (0.39.21 sid)
  • Revision ID: package-import@ubuntu.com-20111221131804-xtlr39wx6njehxxr
Tags: 2:3.6.1-3ubuntu1
* Merge from Debian testing.  Remaining changes:
  + debian/patches/VERSION.patch:
    - set SAMBA_VERSION_SUFFIX to Ubuntu.
  + debian/patches/error-trans.fix-276472:
    - Add the translation of Unix Error code -ENOTSUP to NT Error Code
    - NT_STATUS_NOT_SUPPORTED to prevent the Permission denied error.
  + debian/smb.conf:
    - add "(Samba, Ubuntu)" to server string.
    - comment out the default [homes] share, and add a comment about
      "valid users = %S" to show users how to restrict access to
      \\server\username to only username.
    - Set 'usershare allow guests', so that usershare admins are 
      allowed to create public shares in addition to authenticated
      ones.
    - add map to guest = Bad user, maps bad username to guest access.
  + debian/samba-common.config:
    - Do not change priority to high if dhclient3 is installed.
    - Use priority medium instead of high for the workgroup question.
  + debian/control:
    - Don't build against or suggest ctdb.
    - Add dependency on samba-common-bin to samba.
  + Add ufw integration:
    - Created debian/samba.ufw.profile
    - debian/rules, debian/samba.dirs, debian/samba.files: install
      profile
    - debian/control: have samba suggest ufw
  + Add apport hook:
    - Created debian/source_samba.py.
    - debian/rules, debian/samba.dirs, debian/samba-common-bin.files: install
  + Switch to upstart:
    - Add debian/samba.{nmbd,smbd}.upstart.
  + debian/samba.logrotate, debian/samba-common.dhcp, debian/samba.if-up:
    - Make them upstart compatible
  + debian/samba.postinst: 
    - Avoid scary pdbedit warnings on first import.
  + debian/samba-common.postinst: Add more informative error message for
    the case where smb.conf was manually deleted
  + debian/patches/fix-debuglevel-name-conflict.patch: don't use 'debug_level'
    as a global variable name in an NSS module 
  + Dropped:
    - debian/patches/error-trans.fix-276472
    - debian/patches/fix-debuglevel-name-conflict.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
   Unix SMB/CIFS implementation.
 
3
 
 
4
   SMB torture tester - header file
 
5
 
 
6
   Copyright (C) Andrew Tridgell 1997-1998
 
7
   Copyright (C) Jeremy Allison 2009
 
8
 
 
9
   This program is free software; you can redistribute it and/or modify
 
10
   it under the terms of the GNU General Public License as published by
 
11
   the Free Software Foundation; either version 3 of the License, or
 
12
   (at your option) any later version.
 
13
 
 
14
   This program is distributed in the hope that it will be useful,
 
15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
   GNU General Public License for more details.
 
18
 
 
19
   You should have received a copy of the GNU General Public License
 
20
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
21
*/
 
22
 
 
23
#ifndef __TORTURE_H__
 
24
#define __TORTURE_H__
 
25
 
 
26
struct cli_state;
 
27
 
 
28
/* The following definitions come from torture/denytest.c  */
 
29
 
 
30
bool torture_denytest1(int dummy);
 
31
bool torture_denytest2(int dummy);
 
32
 
 
33
/* The following definitions come from torture/mangle_test.c  */
 
34
 
 
35
bool torture_mangle(int dummy);
 
36
 
 
37
/* The following definitions come from torture/nbio.c  */
 
38
 
 
39
double nbio_total(void);
 
40
void nb_alarm(int ignore);
 
41
void nbio_shmem(int n);
 
42
void nb_setup(struct cli_state *cli);
 
43
void nb_unlink(const char *fname);
 
44
void nb_createx(const char *fname,
 
45
                unsigned create_options, unsigned create_disposition, int handle);
 
46
void nb_writex(int handle, int offset, int size, int ret_size);
 
47
void nb_readx(int handle, int offset, int size, int ret_size);
 
48
void nb_close(int handle);
 
49
void nb_rmdir(const char *fname);
 
50
void nb_rename(const char *oldname, const char *newname);
 
51
void nb_qpathinfo(const char *fname);
 
52
void nb_qfileinfo(int fnum);
 
53
void nb_qfsinfo(int level);
 
54
void nb_findfirst(const char *mask);
 
55
void nb_flush(int fnum);
 
56
void nb_deltree(const char *dname);
 
57
void nb_cleanup(void);
 
58
 
 
59
/* The following definitions come from torture/scanner.c  */
 
60
 
 
61
bool torture_trans2_scan(int dummy);
 
62
bool torture_nttrans_scan(int dummy);
 
63
 
 
64
/* The following definitions come from torture/torture.c  */
 
65
 
 
66
void *shm_setup(int size);
 
67
bool smbcli_parse_unc(const char *unc_name, TALLOC_CTX *mem_ctx,
 
68
                      char **hostname, char **sharename);
 
69
bool torture_open_connection(struct cli_state **c, int conn_index);
 
70
bool torture_cli_session_setup2(struct cli_state *cli, uint16 *new_vuid);
 
71
bool torture_close_connection(struct cli_state *c);
 
72
bool torture_ioctl_test(int dummy);
 
73
bool torture_chkpath_test(int dummy);
 
74
NTSTATUS torture_setup_unix_extensions(struct cli_state *cli);
 
75
 
 
76
/* The following definitions come from torture/utable.c  */
 
77
 
 
78
bool torture_utable(int dummy);
 
79
bool torture_casetable(int dummy);
 
80
 
 
81
/*
 
82
 * Misc
 
83
 */
 
84
 
 
85
bool run_posix_append(int dummy);
 
86
 
 
87
bool run_nbench2(int dummy);
 
88
bool run_async_echo(int dummy);
 
89
bool run_smb_any_connect(int dummy);
 
90
bool run_addrchange(int dummy);
 
91
 
 
92
#endif /* __TORTURE_H__ */