History | View | Annotate | Download (18.8 kB)
hw/virtio9p: Use appropriate debug print functions in TLINK path
Running fsstress with debug enabled causes assertion failurebecause of inappropriate usage of debug print functions.With this patch, fsstress passes without assertion failure.
Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>...
[virto-9p] Implement TLOCK
Synopsis
size[4] TLock tag[2] fid[4] flock[n] size[4] RLock tag[2] status[1]
Description
Tlock is used to acquire/release byte range posix locks on a fileidentified by given fid. The reply contains status of the lock request...
qemu-virtio9p: Implement TGETLOCK
size[4] TGetlock tag[2] fid[4] getlock[n] size[4] RGetlock tag[2] getlock[n]
TGetlock is used to test for the existence of byte range posix locks ona file identified by given fid. The reply contains getlock structure. If...
[virtio-9p] Introduce server side TFSYNC/RFSYNC for dotl
SYNOPSIS size4 Tfsync tag2 fid4
size[4] Rfsync tag[2]
DESCRIPTION
The Tfsync transaction transfers ("flushes") all modified in-core data offile identified by fid to the disk device (or other permanent storage...
qemu-virtio-9p: Implement TREADLINK operation for 9p2000.L
size[4] TReadlink tag[2] fid[4] size[4] RReadlink tag[2] target[s]
Description Readlink is used to return the contents of the symoblic link referred by fid. Contents of symboic link is returned as a...
[virtio-9p] Remove all instances of unnecessary dotu variable.
Signed-off-by: Arun R Bharadwaj <arun@linux.vnet.ibm.com>Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
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 beused to get read the xattr value. If name is NULL the fid returned...
virtio-9p: Implement TXATTRCREATE
TXATTRCREATE: Prepare a fid for setting xattr value on a file system object.
size[4] TXATTRCREATE tag[2] fid[4] name[s] attr_size[8] flags[4] size[4] RXATTRWALK tag[2]
txattrcreate gets a fid pointing to xattr. This fid can later be...
[virtio-9p] Implement TLINK for 9P2000.L
Create a Hardlink.
SYNOPSIS
size4 Tlink tag2 dfid4 oldfid4 newpath[s]
size4 Rlink tag2
Create a link 'newpath' in directory pointed by dfid linking to oldfid path.
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
[virtio-9p] Define and implement TSYMLINK for 9P2000.L
This patch implements creating a symlink for TSYMLINK requestand responds with RSYMLINK. In the case of error, we return RERROR.
size[4] Tsymlink tag[2] fid[4] name[s] symtgt[s] gid[4]...
[virtio-9p] This patch implements TLCREATE for 9p2000.L protocol.
size[4] Tlcreate tag[2] fid[4] name[s] flags[4] mode[4] gid[4]
size[4] Rlcreate tag[2] qid[13] iounit[4]
The Tlreate request asks the file server to create a new regular file with the...
qemu: virtio-9p: Implement TMKNOD
Implement TMKNOD as part of 2000.L Work
size[4] Tmknod tag[2] fid[4] name[s] mode[4] major[4] minor[4] gid[4]
size[4] Rmknod tag[2] qid[13]
mknod asks the file server to create a device node with given device...
qemu: virtio-9p: Implement TMKDIR
size[4] Tmkdir tag[2] fid[4] name[s] mode[4] gid[4]
size[4] Rmkdir tag[2] qid[13]
mkdir asks the file server to create a directory with given name, mode and gid. The qid for the new directory is returned with...
[V4] virtio-9p: readdir implementation for 9p2000.L
This patch implements the server part of readdir() implementation for9p2000.L
size[4] Treaddir tag[2] fid[4] offset[8] count[4] size[4] Rreaddir tag[2] count[4] data[count]
DESCRIPTION...
virtio-9p: getattr server implementation for 9P2000.L protocol.
size[4] Tgetattr tag[2] fid[4] request_mask[8]
size[4] Rgetattr tag[2] lstat[n]
The getattr transaction inquires about the file identified by fid....
virtio-9p: Avoid SEGV when log file couldn't be opened
While running in debug mode if 9P server is unable to open the log fileit results in a SEGV deep down in glibc:
Program received signal SIGSEGV, Segmentation fault.0x008fca8c in fwrite () from /lib/libc.so.6...
Flush the debug message out to the log file.
This patch fluesh the debug messages to the log file at the end of eachdebug message.
Changes from V1:Used fflush instead fseek for the flush.
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>...
virtio-9p: Add a virtio 9p device to qemu
This patch doesn't implement the 9p protocol handlingcode. It adds a simple device which dump the protocol data.
[jvrao@linux.vnet.ibm.com: Little-Endian to host format conversion][aneesh.kumar@linux.vnet.ibm.com: Multiple-mounts support]...