[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH -v2 16/22] virtio-9p: Add support for hardlink
From: |
Aneesh Kumar K.V |
Subject: |
[Qemu-devel] [PATCH -v2 16/22] virtio-9p: Add support for hardlink |
Date: |
Tue, 16 Mar 2010 14:45:14 +0530 |
link count for files and directories are encoded as
a tagged string in the extension field for a .u protocol
extension.
Signed-off-by: Aneesh Kumar K.V <address@hidden>
---
hw/virtio-9p.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/hw/virtio-9p.c b/hw/virtio-9p.c
index e8a9eeb..3ddf2b9 100644
--- a/hw/virtio-9p.c
+++ b/hw/virtio-9p.c
@@ -674,6 +674,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);
}
}
--
1.7.0.2.273.gc2413
- [Qemu-devel] [PATCH -v2 08/22] virtio-9p: Implement P9_TCLUNK, (continued)
- [Qemu-devel] [PATCH -v2 08/22] virtio-9p: Implement P9_TCLUNK, Aneesh Kumar K.V, 2010/03/16
- [Qemu-devel] [PATCH -v2 05/22] virtio-9p: Implement P9_TWALK, Aneesh Kumar K.V, 2010/03/16
- [Qemu-devel] [PATCH -v2 09/22] virtio-9p: Implement P9_TWRITE, Aneesh Kumar K.V, 2010/03/16
- [Qemu-devel] [PATCH -v2 06/22] virtio-9p: Implement P9_TOPEN, Aneesh Kumar K.V, 2010/03/16
- [Qemu-devel] [PATCH -v2 07/22] virtio-9p: Implement P9_TREAD, Aneesh Kumar K.V, 2010/03/16
- [Qemu-devel] [PATCH -v2 11/22] virtio-9p: Implement P9_TWSTAT, Aneesh Kumar K.V, 2010/03/16
- [Qemu-devel] [PATCH -v2 14/22] virtio-9p: Add multiple mount point support, Aneesh Kumar K.V, 2010/03/16
- [Qemu-devel] [PATCH -v2 18/22] virtio-9p: Fix sg usage in the code, Aneesh Kumar K.V, 2010/03/16
- [Qemu-devel] [PATCH -v2 12/22] virtio-9p: Implement P9_TREMOVE, Aneesh Kumar K.V, 2010/03/16
- [Qemu-devel] [PATCH -v2 17/22] Implement sync support in 9p server, Aneesh Kumar K.V, 2010/03/16
- [Qemu-devel] [PATCH -v2 16/22] virtio-9p: Add support for hardlink,
Aneesh Kumar K.V <=
- [Qemu-devel] [PATCH -v2 21/22] virtio-9p: Remove unnecessary definition of fid, Aneesh Kumar K.V, 2010/03/16
- [Qemu-devel] [PATCH -v2 22/22] virtio-9p: Update existing fid path on rename, Aneesh Kumar K.V, 2010/03/16
- [Qemu-devel] [PATCH -v2 10/22] virtio-9p: Implement P9_TCREATE, Aneesh Kumar K.V, 2010/03/16
- [Qemu-devel] [PATCH -v2 15/22] virtio-9p: Use little endian format on virtio, Aneesh Kumar K.V, 2010/03/16
- [Qemu-devel] [PATCH -v2 20/22] virtio-9p: Remove BUG_ON and add proper error handling, Aneesh Kumar K.V, 2010/03/16
- [Qemu-devel] [PATCH -v2 19/22] virtio-9p: Get the correct count values from the pdu, Aneesh Kumar K.V, 2010/03/16
- [Qemu-devel] [PATCH -v2 13/22] virtio-9p: Implement P9_TFLUSH, Aneesh Kumar K.V, 2010/03/16
- Re: [Qemu-devel] [PATCH -V2 00/22] virtio-9p: paravirtual file system passthrough, Luiz Capitulino, 2010/03/23