9pfs: rename virtio-9p-coth.{c,h} to coth.{c,h}
Those two files are not virtio specific. Rename them to use generic names. Fix includes in various C files. Change define guards and comments in header files. Signed-off-by: Wei Liu <wei.liu2@citrix.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
This commit is contained in:
parent
a7e00e2536
commit
fe52840c87
@ -1,7 +1,7 @@
|
|||||||
common-obj-y = virtio-9p.o
|
common-obj-y = virtio-9p.o
|
||||||
common-obj-y += virtio-9p-local.o virtio-9p-xattr.o
|
common-obj-y += virtio-9p-local.o virtio-9p-xattr.o
|
||||||
common-obj-y += virtio-9p-xattr-user.o virtio-9p-posix-acl.o
|
common-obj-y += virtio-9p-xattr-user.o virtio-9p-posix-acl.o
|
||||||
common-obj-y += virtio-9p-coth.o cofs.o codir.o cofile.o
|
common-obj-y += coth.o cofs.o codir.o cofile.o
|
||||||
common-obj-y += coxattr.o virtio-9p-synth.o
|
common-obj-y += coxattr.o virtio-9p-synth.o
|
||||||
common-obj-$(CONFIG_OPEN_BY_HANDLE) += virtio-9p-handle.o
|
common-obj-$(CONFIG_OPEN_BY_HANDLE) += virtio-9p-handle.o
|
||||||
common-obj-y += virtio-9p-proxy.o
|
common-obj-y += virtio-9p-proxy.o
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#include "fsdev/qemu-fsdev.h"
|
#include "fsdev/qemu-fsdev.h"
|
||||||
#include "qemu/thread.h"
|
#include "qemu/thread.h"
|
||||||
#include "qemu/coroutine.h"
|
#include "qemu/coroutine.h"
|
||||||
#include "virtio-9p-coth.h"
|
#include "coth.h"
|
||||||
|
|
||||||
int v9fs_co_readdir_r(V9fsPDU *pdu, V9fsFidState *fidp, struct dirent *dent,
|
int v9fs_co_readdir_r(V9fsPDU *pdu, V9fsFidState *fidp, struct dirent *dent,
|
||||||
struct dirent **result)
|
struct dirent **result)
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#include "fsdev/qemu-fsdev.h"
|
#include "fsdev/qemu-fsdev.h"
|
||||||
#include "qemu/thread.h"
|
#include "qemu/thread.h"
|
||||||
#include "qemu/coroutine.h"
|
#include "qemu/coroutine.h"
|
||||||
#include "virtio-9p-coth.h"
|
#include "coth.h"
|
||||||
|
|
||||||
int v9fs_co_st_gen(V9fsPDU *pdu, V9fsPath *path, mode_t st_mode,
|
int v9fs_co_st_gen(V9fsPDU *pdu, V9fsPath *path, mode_t st_mode,
|
||||||
V9fsStatDotl *v9stat)
|
V9fsStatDotl *v9stat)
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#include "fsdev/qemu-fsdev.h"
|
#include "fsdev/qemu-fsdev.h"
|
||||||
#include "qemu/thread.h"
|
#include "qemu/thread.h"
|
||||||
#include "qemu/coroutine.h"
|
#include "qemu/coroutine.h"
|
||||||
#include "virtio-9p-coth.h"
|
#include "coth.h"
|
||||||
|
|
||||||
static ssize_t __readlink(V9fsState *s, V9fsPath *path, V9fsString *buf)
|
static ssize_t __readlink(V9fsState *s, V9fsPath *path, V9fsString *buf)
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Virtio 9p backend
|
* 9p backend
|
||||||
*
|
*
|
||||||
* Copyright IBM, Corp. 2010
|
* Copyright IBM, Corp. 2010
|
||||||
*
|
*
|
||||||
@ -16,7 +16,7 @@
|
|||||||
#include "block/thread-pool.h"
|
#include "block/thread-pool.h"
|
||||||
#include "qemu/coroutine.h"
|
#include "qemu/coroutine.h"
|
||||||
#include "qemu/main-loop.h"
|
#include "qemu/main-loop.h"
|
||||||
#include "virtio-9p-coth.h"
|
#include "coth.h"
|
||||||
|
|
||||||
/* Called from QEMU I/O thread. */
|
/* Called from QEMU I/O thread. */
|
||||||
static void coroutine_enter_cb(void *opaque, int ret)
|
static void coroutine_enter_cb(void *opaque, int ret)
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Virtio 9p backend
|
* 9p backend
|
||||||
*
|
*
|
||||||
* Copyright IBM, Corp. 2010
|
* Copyright IBM, Corp. 2010
|
||||||
*
|
*
|
||||||
@ -12,8 +12,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _QEMU_VIRTIO_9P_COTH_H
|
#ifndef _QEMU_9P_COTH_H
|
||||||
#define _QEMU_VIRTIO_9P_COTH_H
|
#define _QEMU_9P_COTH_H
|
||||||
|
|
||||||
#include "qemu/thread.h"
|
#include "qemu/thread.h"
|
||||||
#include "qemu/coroutine.h"
|
#include "qemu/coroutine.h"
|
@ -15,7 +15,7 @@
|
|||||||
#include "fsdev/qemu-fsdev.h"
|
#include "fsdev/qemu-fsdev.h"
|
||||||
#include "qemu/thread.h"
|
#include "qemu/thread.h"
|
||||||
#include "qemu/coroutine.h"
|
#include "qemu/coroutine.h"
|
||||||
#include "virtio-9p-coth.h"
|
#include "coth.h"
|
||||||
|
|
||||||
int v9fs_co_llistxattr(V9fsPDU *pdu, V9fsPath *path, void *value, size_t size)
|
int v9fs_co_llistxattr(V9fsPDU *pdu, V9fsPath *path, void *value, size_t size)
|
||||||
{
|
{
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#include "virtio-9p.h"
|
#include "virtio-9p.h"
|
||||||
#include "fsdev/qemu-fsdev.h"
|
#include "fsdev/qemu-fsdev.h"
|
||||||
#include "virtio-9p-xattr.h"
|
#include "virtio-9p-xattr.h"
|
||||||
#include "virtio-9p-coth.h"
|
#include "coth.h"
|
||||||
#include "hw/virtio/virtio-access.h"
|
#include "hw/virtio/virtio-access.h"
|
||||||
|
|
||||||
static uint64_t virtio_9p_get_features(VirtIODevice *vdev, uint64_t features,
|
static uint64_t virtio_9p_get_features(VirtIODevice *vdev, uint64_t features,
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#include "virtio-9p.h"
|
#include "virtio-9p.h"
|
||||||
#include "fsdev/qemu-fsdev.h"
|
#include "fsdev/qemu-fsdev.h"
|
||||||
#include "virtio-9p-xattr.h"
|
#include "virtio-9p-xattr.h"
|
||||||
#include "virtio-9p-coth.h"
|
#include "coth.h"
|
||||||
#include "trace.h"
|
#include "trace.h"
|
||||||
#include "migration/migration.h"
|
#include "migration/migration.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user