NFS: Do some tidying of the parsing code
Do some tidying of the parsing code, including: (*) Returning 0/error rather than true/false. (*) Putting the nfs_fs_context pointer first in some arg lists. (*) Unwrap some lines that will now fit on one line. (*) Provide unioned sockaddr/sockaddr_storage fields to avoid casts. (*) nfs_parse_devname() can paste its return values directly into the nfs_fs_context struct as that's where the caller puts them. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:

committed by
Anna Schumaker

parent
48be8a66cf
commit
e558100fda
@@ -816,7 +816,7 @@ static int nfs_request_mount(struct nfs_fs_context *cfg,
|
||||
/*
|
||||
* Construct the mount server's address.
|
||||
*/
|
||||
if (cfg->mount_server.address.ss_family == AF_UNSPEC) {
|
||||
if (cfg->mount_server.address.sa_family == AF_UNSPEC) {
|
||||
memcpy(request.sap, &cfg->nfs_server.address,
|
||||
cfg->nfs_server.addrlen);
|
||||
cfg->mount_server.addrlen = cfg->nfs_server.addrlen;
|
||||
|
Reference in New Issue
Block a user