Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124714
b: refs/heads/master
c: 50a737f
h: refs/heads/master
v: v3
  • Loading branch information
Chuck Lever authored and Trond Myklebust committed Dec 23, 2008
1 parent 0a10c49 commit 8d6b4b3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d740351bf0960e89ce1aef45cfe00167cb0f9e5b
refs/heads/master: 50a737f86dbf99daf3a8dcbdf778a3be36bb2a39
1 change: 1 addition & 0 deletions trunk/fs/nfs/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ struct nfs_mount_request {
u32 version;
unsigned short protocol;
struct nfs_fh *fh;
int noresvport;
};

extern int nfs_mount(struct nfs_mount_request *info);
Expand Down
4 changes: 3 additions & 1 deletion trunk/fs/nfs/mount_clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ int nfs_mount(struct nfs_mount_request *info)
.program = &mnt_program,
.version = info->version,
.authflavor = RPC_AUTH_UNIX,
.flags = 0,
};
struct rpc_clnt *mnt_clnt;
int status;
Expand All @@ -59,6 +58,9 @@ int nfs_mount(struct nfs_mount_request *info)
(info->hostname ? info->hostname : "server"),
info->dirpath);

if (info->noresvport)
args.flags |= RPC_CLNT_CREATE_NONPRIVPORT;

mnt_clnt = rpc_create(&args);
if (IS_ERR(mnt_clnt))
goto out_clnt_err;
Expand Down
1 change: 1 addition & 0 deletions trunk/fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1345,6 +1345,7 @@ static int nfs_try_mount(struct nfs_parsed_mount_data *args,
.dirpath = args->nfs_server.export_path,
.protocol = args->mount_server.protocol,
.fh = root_fh,
.noresvport = args->flags & NFS_MOUNT_NORESVPORT,
};
int status;

Expand Down

0 comments on commit 8d6b4b3

Please sign in to comment.