aboutsummaryrefslogtreecommitdiff
path: root/fsdev/file-op-9p.h
diff options
context:
space:
mode:
authorVenkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>2011-06-01 12:35:14 +0530
committerVenkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>2011-06-01 10:25:17 -0700
commitfaa44e3d3e986f29579e0d0d07b7aef771184e8c (patch)
treeeed23e2305a7d683f6f10ce6e68ee87a312fc27d /fsdev/file-op-9p.h
parent873c32139354caef3cc1013f00963cc740a6a727 (diff)
downloadqemu-faa44e3d3e986f29579e0d0d07b7aef771184e8c.zip
qemu-faa44e3d3e986f29579e0d0d07b7aef771184e8c.tar.gz
qemu-faa44e3d3e986f29579e0d0d07b7aef771184e8c.tar.bz2
[virtio-9p] Make rpath thread safe
Current rpath inline function is heavily used in all system calls. This function has a static buffer making it a non-thread safe function. This patch introduces new thread-safe routine and makes use of it. Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Diffstat (limited to 'fsdev/file-op-9p.h')
-rw-r--r--fsdev/file-op-9p.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/fsdev/file-op-9p.h b/fsdev/file-op-9p.h
index 126e60e..af9daf7 100644
--- a/fsdev/file-op-9p.h
+++ b/fsdev/file-op-9p.h
@@ -97,11 +97,4 @@ typedef struct FileOperations
void *opaque;
} FileOperations;
-static inline const char *rpath(FsContext *ctx, const char *path)
-{
- /* FIXME: so wrong... */
- static char buffer[4096];
- snprintf(buffer, sizeof(buffer), "%s/%s", ctx->fs_root, path);
- return buffer;
-}
#endif