~ubuntu-branches/ubuntu/oneiric/openafs/oneiric-201305130334

« back to all changes in this revision

Viewing changes to src/venus/twiddle.c

  • Committer: Bazaar Package Importer
  • Author(s): Russ Allbery
  • Date: 2008-09-22 19:07:02 UTC
  • mfrom: (12.1.14 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080922190702-59m13d7kn6gkw32d
Tags: 1.4.7.dfsg1-6
* Apply upstream patch to free /proc entries in the correct order.
  Thanks, Marc Dionne.  (Closes: #493914)
* Apply upstream deltas to support 2.6.27 kernels and to stop using
  COMMON_KERN_CFLAGS for all 2.6 kernels uniformly, which fixes
  problems on amd64 with newer kernels.  Thanks, Björn Torkelsson.
  (LP: #267504)
* Translation updates:
  - Swedish, thanks Martin Bagge.  (Closes: #493120)

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#include <afs/param.h>
12
12
 
13
13
RCSID
14
 
    ("$Header: /cvs/openafs/src/venus/twiddle.c,v 1.7 2003/07/15 23:17:22 shadow Exp $");
 
14
    ("$Header: /cvs/openafs/src/venus/twiddle.c,v 1.7.2.3 2008/03/08 01:15:37 shadow Exp $");
15
15
 
16
16
#include <rx/xdr.h>
17
17
#include <sys/ioctl.h>
32
32
#include "afs/prs_fs.h"
33
33
#include <afs/afsint.h>
34
34
#include <afs/auth.h>>
35
 
#include <errno.h
 
35
#include <errno.h>
36
36
#include <afs/cellconfig.h>
37
37
#include <afs/cmd.h>
38
38
#include <strings.h>
39
 
 
 
39
#include <afs/com_err.h>
40
40
 
41
41
#define MAXSIZE 2048
42
42
#define MAXINSIZE 1300          /* pioctl complains if data is larger than this */
47
47
static struct ubik_client *uclient;
48
48
 
49
49
 
50
 
extern struct cmd_syndesc *cmd_CreateSyntax();
51
50
static char pn[] = "fs";
52
51
static int rxInitDone = 0;
53
52
 
54
 
static
55
 
Twiddle(as)
56
 
     struct cmd_syndesc *as;
 
53
static int
 
54
Twiddle(struct cmd_syndesc *as, void *arock)
57
55
{
58
56
    afs_int32 code;
59
57
    struct ViceIoctl blob;
154
152
    /* try to find volume location information */
155
153
 
156
154
 
157
 
    ts = cmd_CreateSyntax(NULL, Twiddle, 0, "adjust rx parms");
 
155
    ts = cmd_CreateSyntax(NULL, Twiddle, NULL, "adjust rx parms");
158
156
    cmd_AddParm(ts, "-initReceiveWindow ", CMD_SINGLE, CMD_OPTIONAL, "16");
159
157
    cmd_AddParm(ts, "-maxReceiveWindow ", CMD_SINGLE, CMD_OPTIONAL, "16");
160
158
    cmd_AddParm(ts, "-initSendWindow ", CMD_SINGLE, CMD_OPTIONAL, "8");
206
204
            fprintf(stderr, "%s:'%s'", pn, filename);
207
205
        else
208
206
            fprintf(stderr, "%s", pn);
209
 
        fprintf(stderr, ": %s\n", error_message(errno));
 
207
        fprintf(stderr, ": %s\n", afs_error_message(errno));
210
208
    }
211
209
}                               /*Die */