Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232686
b: refs/heads/master
c: ad3d2ee
h: refs/heads/master
v: v3
  • Loading branch information
Jesper Juhl authored and Trond Myklebust committed Jan 25, 2011
1 parent 3bd04db commit 9e1540e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 0da2a4ac33c291728d8be5bdb865467dcb078d13
refs/heads/master: ad3d2eedf0ed3611f5f86b9e4d0d15cc76c63465
9 changes: 7 additions & 2 deletions trunk/fs/nfs/nfs4filelayoutdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ decode_and_add_ds(__be32 **pp, struct inode *inode)

/* ipv6 length plus port is legal */
if (rlen > INET6_ADDRSTRLEN + 8) {
dprintk("%s Invalid address, length %d\n", __func__,
dprintk("%s: Invalid address, length %d\n", __func__,
rlen);
goto out_err;
}
Expand All @@ -225,6 +225,11 @@ decode_and_add_ds(__be32 **pp, struct inode *inode)
/* replace the port dots with dashes for the in4_pton() delimiter*/
for (i = 0; i < 2; i++) {
char *res = strrchr(buf, '.');
if (!res) {
dprintk("%s: Failed finding expected dots in port\n",
__func__);
goto out_free;
}
*res = '-';
}

Expand All @@ -240,7 +245,7 @@ decode_and_add_ds(__be32 **pp, struct inode *inode)
port = htons((tmp[0] << 8) | (tmp[1]));

ds = nfs4_pnfs_ds_add(inode, ip_addr, port);
dprintk("%s Decoded address and port %s\n", __func__, buf);
dprintk("%s: Decoded address and port %s\n", __func__, buf);
out_free:
kfree(buf);
out_err:
Expand Down

0 comments on commit 9e1540e

Please sign in to comment.