summaryrefslogtreecommitdiffstats
path: root/hw/file-op-9p.h
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2010-09-02 11:09:06 +0530
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2010-09-08 22:56:41 +0530
commitfa32ef88792a21b68f06c506c079560151fb5847 (patch)
treea7c575d0e8d6a239552315b83552a983f1ce7556 /hw/file-op-9p.h
parentd62dbb51f76ddcec95822fe196813edd46ef35b9 (diff)
downloadhqemu-fa32ef88792a21b68f06c506c079560151fb5847.zip
hqemu-fa32ef88792a21b68f06c506c079560151fb5847.tar.gz
virtio-9p: Implement TXATTRWALK
TXATTRWALK: Descend a ATTR namespace size[4] TXATTRWALK tag[2] fid[4] newfid[4] name[s] size[4] RXATTRWALK tag[2] size[8] txattrwalk gets a fid pointing to xattr. This fid can later be used to get read the xattr value. If name is NULL the fid returned can be used to get the list of extended attribute associated to the file system object. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Diffstat (limited to 'hw/file-op-9p.h')
-rw-r--r--hw/file-op-9p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/file-op-9p.h b/hw/file-op-9p.h
index 120c803..3a21cbe 100644
--- a/hw/file-op-9p.h
+++ b/hw/file-op-9p.h
@@ -75,6 +75,9 @@ typedef struct FileOperations
int (*truncate)(FsContext *, const char *, off_t);
int (*fsync)(FsContext *, int);
int (*statfs)(FsContext *s, const char *path, struct statfs *stbuf);
+ ssize_t (*lgetxattr)(FsContext *, const char *,
+ const char *, void *, size_t);
+ ssize_t (*llistxattr)(FsContext *, const char *, void *, size_t);
void *opaque;
} FileOperations;
#endif
OpenPOWER on IntegriCloud