diff options
| author | 2006-01-03 09:55:41 +0100 | |
|---|---|---|
| committer | 2006-01-06 14:58:52 -0500 | |
| commit | a72b44222d222749d54b3e370d825094352e389f (patch) | |
| tree | d64815b696d207927a4154a2cbc649552708c6f2 /fs/nfs/callback.c | |
| parent | NFS: Clean up weak cache consistency code (diff) | |
| download | linux-dev-a72b44222d222749d54b3e370d825094352e389f.tar.xz linux-dev-a72b44222d222749d54b3e370d825094352e389f.zip | |
NFSv4: Allow user to set the port used by the NFSv4 callback channel
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/callback.c')
| -rw-r--r-- | fs/nfs/callback.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/callback.c b/fs/nfs/callback.c index 30cae3602867..fcd97406a778 100644 --- a/fs/nfs/callback.c +++ b/fs/nfs/callback.c @@ -34,6 +34,7 @@ static struct nfs_callback_data nfs_callback_info; static DECLARE_MUTEX(nfs_callback_sema); static struct svc_program nfs4_callback_program; +unsigned int nfs_callback_set_tcpport; unsigned short nfs_callback_tcpport; /* @@ -98,7 +99,7 @@ int nfs_callback_up(void) if (!serv) goto out_err; /* FIXME: We don't want to register this socket with the portmapper */ - ret = svc_makesock(serv, IPPROTO_TCP, 0); + ret = svc_makesock(serv, IPPROTO_TCP, nfs_callback_set_tcpport); if (ret < 0) goto out_destroy; if (!list_empty(&serv->sv_permsocks)) { |
