Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211389
b: refs/heads/master
c: bba0cd0
h: refs/heads/master
i:
  211387: e5e19b5
v: v3
  • Loading branch information
Aneesh Kumar K.V authored and Sage Weil committed Oct 7, 2010
1 parent bd322fb commit c561c2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 92923dcbfcad107b0e0469f579a2455729ccf10e
refs/heads/master: bba0cd0e3d97472855840af817b766e3f632a501
5 changes: 4 additions & 1 deletion trunk/fs/ceph/export.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,16 @@ static int ceph_encode_fh(struct dentry *dentry, u32 *rawfh, int *max_len,
*max_len = connected_handle_length;
type = 2;
} else if (*max_len >= handle_length) {
if (connectable)
if (connectable) {
*max_len = connected_handle_length;
return 255;
}
dout("encode_fh %p\n", dentry);
fh->ino = ceph_ino(dentry->d_inode);
*max_len = handle_length;
type = 1;
} else {
*max_len = handle_length;
return 255;
}
return type;
Expand Down

0 comments on commit c561c2f

Please sign in to comment.