Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188020
b: refs/heads/master
c: fae4528
h: refs/heads/master
v: v3
  • Loading branch information
Aneesh Kumar K.V authored and Eric Van Hensbergen committed Mar 13, 2010
1 parent dffc7f5 commit 991e520
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 86c8437383acd85c05ec7c9a004f59fe7ac9821a
refs/heads/master: fae4528b2341f2ab0c86c191e24d9cdd93624c60
11 changes: 10 additions & 1 deletion trunk/fs/9p/vfs_dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ static inline int dt_type(struct p9_wstat *mistat)
return rettype;
}

static void p9stat_init(struct p9_wstat *stbuf)
{
stbuf->name = NULL;
stbuf->uid = NULL;
stbuf->gid = NULL;
stbuf->muid = NULL;
stbuf->extension = NULL;
}

/**
* v9fs_dir_readdir - read a directory
* @filp: opened file structure
Expand Down Expand Up @@ -131,8 +140,8 @@ static int v9fs_dir_readdir(struct file *filp, void *dirent, filldir_t filldir)
rdir->head = 0;
rdir->tail = err;
}

while (rdir->head < rdir->tail) {
p9stat_init(&st);
err = p9stat_read(rdir->buf + rdir->head,
buflen - rdir->head, &st,
fid->clnt->proto_version);
Expand Down

0 comments on commit 991e520

Please sign in to comment.