| Submitter | Anthony Liguori |
|---|---|
| Date | March 3, 2010, 7:01 p.m. |
| Message ID | <1267642874-15001-18-git-send-email-aliguori@us.ibm.com> |
| Download | mbox | patch |
| Permalink | /patch/46862/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hw/virtio-9p.c b/hw/virtio-9p.c index 65f5827..8a96645 100644 --- a/hw/virtio-9p.c +++ b/hw/virtio-9p.c @@ -676,6 +676,9 @@ static void stat_to_v9stat(V9fsState *s, V9fsString *name, v9fs_string_sprintf(&v9stat->extension, "%c %u %u", S_ISCHR(stbuf->st_mode) ? 'c' : 'b', major(stbuf->st_rdev), minor(stbuf->st_rdev)); + } else if (S_ISDIR(stbuf->st_mode) || S_ISREG(stbuf->st_mode)) { + v9fs_string_sprintf(&v9stat->extension, "%s %u", + "HARDLINKCOUNT", stbuf->st_nlink); } }