~lefteris-nikoltsios/+junk/samba-lp1016895

« back to all changes in this revision

Viewing changes to source4/torture/raw/composite.c

  • 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:
65
65
        io1.in.data  = data;
66
66
        io1.in.size  = len;
67
67
 
68
 
        printf("testing savefile\n");
 
68
        printf("Testing savefile\n");
69
69
 
70
70
        status = smb_composite_savefile(cli->tree, &io1);
71
71
        if (!NT_STATUS_IS_OK(status)) {
75
75
 
76
76
        io2.in.fname = fname;
77
77
 
78
 
        printf("testing parallel loadfile with %d ops\n", num_ops);
 
78
        printf("Testing parallel loadfile with %d ops\n", num_ops);
79
79
 
80
80
        c = talloc_array(tctx, struct composite_context *, num_ops);
81
81
 
145
145
        io1.in.data  = data;
146
146
        io1.in.size  = len;
147
147
 
148
 
        printf("testing savefile\n");
 
148
        printf("Testing savefile\n");
149
149
 
150
150
        status = smb_composite_savefile(cli->tree, &io1);
151
151
        if (!NT_STATUS_IS_OK(status)) {
154
154
        }
155
155
 
156
156
        io2.in.dest_host = torture_setting_string(tctx, "host", NULL);
157
 
        io2.in.ports = lp_smb_ports(tctx->lp_ctx);
 
157
        io2.in.ports = lpcfg_smb_ports(tctx->lp_ctx);
158
158
        io2.in.called_name = torture_setting_string(tctx, "host", NULL);
159
159
        io2.in.service = torture_setting_string(tctx, "share", NULL);
160
160
        io2.in.service_type = "A:";
161
161
 
162
162
        io2.in.credentials = cmdline_credentials;
163
 
        io2.in.workgroup  = lp_workgroup(tctx->lp_ctx);
 
163
        io2.in.workgroup  = lpcfg_workgroup(tctx->lp_ctx);
164
164
        io2.in.filename = fname;
165
 
        io2.in.resolve_ctx = lp_resolve_context(tctx->lp_ctx);
166
 
        io2.in.iconv_convenience = lp_iconv_convenience(tctx->lp_ctx);
167
 
        io2.in.gensec_settings = lp_gensec_settings(tctx, tctx->lp_ctx);
168
 
        lp_smbcli_options(tctx->lp_ctx, &io2.in.options);
169
 
        lp_smbcli_session_options(tctx->lp_ctx, &io2.in.session_options);
 
165
        io2.in.resolve_ctx = lpcfg_resolve_context(tctx->lp_ctx);
 
166
        io2.in.gensec_settings = lpcfg_gensec_settings(tctx, tctx->lp_ctx);
 
167
        lpcfg_smbcli_options(tctx->lp_ctx, &io2.in.options);
 
168
        lpcfg_smbcli_session_options(tctx->lp_ctx, &io2.in.session_options);
170
169
 
171
 
        printf("testing parallel fetchfile with %d ops\n", torture_numops);
 
170
        printf("Testing parallel fetchfile with %d ops\n", torture_numops);
172
171
 
173
172
        event_ctx = cli->transport->socket->event.ctx;
174
173
        c = talloc_array(tctx, struct composite_context *, torture_numops);
284
283
 
285
284
        /* set parameters for appendacl async call */
286
285
 
287
 
        printf("testing parallel appendacl with %d ops\n", num_ops);
 
286
        printf("Testing parallel appendacl with %d ops\n", num_ops);
288
287
 
289
288
        c = talloc_array(tctx, struct composite_context *, num_ops);
290
289
        io = talloc_array(tctx, struct  smb_composite_appendacl *, num_ops);
347
346
        bool ret = true;
348
347
 
349
348
        io1.in.dest_host = torture_setting_string(tctx, "host", NULL);
350
 
        io1.in.dest_ports = lp_smb_ports(tctx->lp_ctx);
351
 
        io1.in.socket_options = lp_socket_options(tctx->lp_ctx);
 
349
        io1.in.dest_ports = lpcfg_smb_ports(tctx->lp_ctx);
 
350
        io1.in.socket_options = lpcfg_socket_options(tctx->lp_ctx);
352
351
        io1.in.called_name = torture_setting_string(tctx, "host", NULL);
353
352
        io1.in.service = torture_setting_string(tctx, "share", NULL);
354
353
        io1.in.service_type = "A:";
355
354
        io1.in.credentials = cmdline_credentials;
356
 
        io1.in.workgroup = lp_workgroup(tctx->lp_ctx);
 
355
        io1.in.workgroup = lpcfg_workgroup(tctx->lp_ctx);
357
356
        io1.in.level = RAW_QFS_OBJECTID_INFORMATION;
358
 
        io1.in.iconv_convenience = lp_iconv_convenience(tctx->lp_ctx);
359
 
        io1.in.gensec_settings = lp_gensec_settings(tctx, tctx->lp_ctx);
 
357
        io1.in.gensec_settings = lpcfg_gensec_settings(tctx, tctx->lp_ctx);
360
358
 
361
 
        printf("testing parallel queryfsinfo [Object ID] with %d ops\n", torture_numops);
 
359
        printf("Testing parallel queryfsinfo [Object ID] with %d ops\n",
 
360
                   torture_numops);
362
361
 
363
362
        event_ctx = tctx->ev;
364
363
        c = talloc_array(tctx, struct composite_context *, torture_numops);
365
364
 
366
365
        for (i=0; i<torture_numops; i++) {
367
 
                c[i] = smb_composite_fsinfo_send(cli->tree, &io1, lp_resolve_context(tctx->lp_ctx));
 
366
                c[i] = smb_composite_fsinfo_send(cli->tree, &io1, lpcfg_resolve_context(tctx->lp_ctx));
368
367
                c[i]->async.fn = loadfile_complete;
369
368
                c[i]->async.private_data = count;
370
369
        }