Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167139
b: refs/heads/master
c: 517be09
h: refs/heads/master
i:
  167137: 7891771
  167135: 4e878a9
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Oct 6, 2009
1 parent 78e7fad commit d2ca3b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: f4373bf9e67e4a653c8854acd7b02dac9714c98a
refs/heads/master: 517be09def6cd7bc231222ee756fde8ea245a6fe
12 changes: 6 additions & 6 deletions trunk/fs/nfs/nfs4namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static struct vfsmount *try_location(struct nfs_clone_mount *mountdata,

mnt_path = nfs4_pathname_string(&location->rootpath, page2, PAGE_SIZE);
if (IS_ERR(mnt_path))
return mnt;
return ERR_CAST(mnt_path);
mountdata->mnt_path = mnt_path;
maxbuflen = mnt_path - 1 - page2;

Expand All @@ -132,15 +132,15 @@ static struct vfsmount *try_location(struct nfs_clone_mount *mountdata,
if (buf->len <= 0 || buf->len >= maxbuflen)
continue;

mountdata->addr = (struct sockaddr *)&addr;

if (memchr(buf->data, IPV6_SCOPE_DELIMITER, buf->len))
continue;
mountdata->addrlen = nfs_parse_server_name(buf->data,
buf->len,
mountdata->addr, mountdata->addrlen);

mountdata->addrlen = nfs_parse_server_name(buf->data, buf->len,
(struct sockaddr *)&addr, sizeof(addr));
if (mountdata->addrlen == 0)
continue;

mountdata->addr = (struct sockaddr *)&addr;
rpc_set_port(mountdata->addr, NFS_PORT);

memcpy(page2, buf->data, buf->len);
Expand Down

0 comments on commit d2ca3b6

Please sign in to comment.