]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Fix nfs4_init_uniform_client_string for net namespaces
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 24 Jul 2013 20:36:35 +0000 (16:36 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 24 Jul 2013 20:47:04 +0000 (16:47 -0400)
commit41188abfababdf1690203cc12507f5c4c31952c5
tree9d73d710561406a2097440e065bd5a9aad5e4591
parenta1d2940392aa5b1247ca8c80583b5edd71785e06
NFSv4: Fix nfs4_init_uniform_client_string for net namespaces

Commit ae988482e (NFS: Add nfs4_unique_id boot parameter) introduces a
boot parameter that allows client administrators to set a string
identifier for use by the EXCHANGE_ID and SETCLIENTID arguments in order
to make them more globally unique.

Unfortunately, that uniquifier is no longer globally unique in the presence
of net namespaces, since each container expects to be able to set up their
own lease when mounting a new NFSv4/4.1 partition.
The fix is to add back in the container-specific hostname in addition to
the unique id.

Cc: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c