Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127480
b: refs/heads/master
c: 54224f0
h: refs/heads/master
v: v3
  • Loading branch information
Chuck Lever authored and J. Bruce Fields committed Jan 6, 2009
1 parent 688eef0 commit 926ef42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: b046ccdc1f8171f6d0129dcc2a28d49187b4bf69
refs/heads/master: 54224f04ae95d86b27c0673cd773ebb120d86876
9 changes: 6 additions & 3 deletions trunk/fs/nfsd/nfsctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,13 @@ static ssize_t write_filehandle(struct file *file, char *buf, size_t size)

dname = mesg;
len = qword_get(&mesg, dname, size);
if (len <= 0) return -EINVAL;
if (len <= 0)
return -EINVAL;

path = dname+len+1;
len = qword_get(&mesg, path, size);
if (len <= 0) return -EINVAL;
if (len <= 0)
return -EINVAL;

len = get_int(&mesg, &maxsize);
if (len)
Expand All @@ -418,7 +420,8 @@ static ssize_t write_filehandle(struct file *file, char *buf, size_t size)
if (len)
return len;

mesg = buf; len = SIMPLE_TRANSACTION_LIMIT;
mesg = buf;
len = SIMPLE_TRANSACTION_LIMIT;
qword_addhex(&mesg, &len, (char*)&fh.fh_base, fh.fh_size);
mesg[-1] = '\n';
return mesg - buf;
Expand Down

0 comments on commit 926ef42

Please sign in to comment.