Re: [Qemu-devel] [PATCH -V3 4/8] hw/9pfs: Implement syncfs

2011-03-13 Thread Stefan Hajnoczi
On Sat, Mar 5, 2011 at 5:52 PM, Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com wrote: +static void v9fs_post_do_syncfs(V9fsState *s, V9fsPDU *pdu, int err) +{ +    if (err == -1) { +        err = -errno; +    } errno may have been clobbered by any standard library function/syscall invoked

Re: [Qemu-devel] [PATCH -V3 4/8] hw/9pfs: Implement syncfs

2011-03-13 Thread Aneesh Kumar K. V
On Sun, 13 Mar 2011 16:24:13 +, Stefan Hajnoczi stefa...@gmail.com wrote: On Sat, Mar 5, 2011 at 5:52 PM, Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com wrote: +static void v9fs_post_do_syncfs(V9fsState *s, V9fsPDU *pdu, int err) +{ +    if (err == -1) { +        err = -errno; +  

[Qemu-devel] [PATCH -V3 4/8] hw/9pfs: Implement syncfs

2011-03-05 Thread Aneesh Kumar K.V
SYNOPSIS size[4] Tsyncfs tag[2] fid[4] size[4] Rsyncfs tag[2] DESCRIPTION The Tsyncfs transaction transfers (flushes) all modified data of file system identified by fid to the disk device. The operation is equivalent to calling sync() on the file system. Signed-off-by: