~ubuntu-branches/debian/experimental/nfs-utils/experimental

« back to all changes in this revision

Viewing changes to utils/mountd/mountd.c

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2006-07-08 14:26:40 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060708142640-r171kjj2a13gy2kz
Tags: 1:1.0.9-1
* Updated co-mantainer mail address.
* New upstream release.
  - Added 'mount.nfs' utility which can be used as a mount helper
    to mount nfs filesystems. It does not yet support 'user' mounts.
  - Makefile/autoconf tidyups
  - No compiles with no warnings
  - deleted debian/* at request of debian maintainer
  - deleted assorted other unused files
  - mountd can be run multi-threaded for configurations with many hundreds
    of clients (mountd -t 20).  Default is single-threaded
  - Support for selection NFS version to be exported, and protocol to
    use.  This requires kernel patches that should be in linux 2.6.19.
  - Use 65534 rather than -2 for default anon.  This makes no difference in many
    cases, but is important in some.
  - New utility 'rpcdebug' for controlled kernel 'debug' options for nfs and nfsd.
  - nfsstat reports NFSv4 operation statistics that should be available in
    linux 2.6.18.
  - assorted other fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
static void             usage(const char *, int exitcode);
37
37
static exports          get_exportlist(void);
38
 
static struct nfs_fh_len *get_rootfh(struct svc_req *, dirpath *, int *, int v3);
 
38
static struct nfs_fh_len *get_rootfh(struct svc_req *, dirpath *, mountstat3 *, int v3);
39
39
 
40
40
int new_cache = 0;
41
41
 
346
346
        struct nfs_fh_len *fh;
347
347
 
348
348
        xlog(D_CALL, "MNT3(%s) called", *path);
349
 
        if ((fh = get_rootfh(rqstp, path, (int *) &res->fhs_status, 1)) != NULL) {
 
349
        if ((fh = get_rootfh(rqstp, path, &res->fhs_status, 1)) != NULL) {
350
350
                struct mountres3_ok     *ok = &res->mountres3_u.mountinfo;
351
351
 
352
352
                ok->fhandle.fhandle3_len = fh->fh_size;
353
 
                ok->fhandle.fhandle3_val = fh->fh_handle;
 
353
                ok->fhandle.fhandle3_val = (char *)fh->fh_handle;
354
354
                ok->auth_flavors.auth_flavors_len
355
355
                        = sizeof(flavors)/sizeof(flavors[0]);
356
356
                ok->auth_flavors.auth_flavors_val = flavors;
359
359
}
360
360
 
361
361
static struct nfs_fh_len *
362
 
get_rootfh(struct svc_req *rqstp, dirpath *path, int *error, int v3)
 
362
get_rootfh(struct svc_req *rqstp, dirpath *path, mountstat3 *error, int v3)
363
363
{
364
364
        struct sockaddr_in *sin =
365
365
                (struct sockaddr_in *) svc_getcaller(rqstp->rq_xprt);