9pfs: rename virtio-9p-xattr{,-user}.{c,h} to 9p-xattr{,-user}.{c,h}

These three files are not virtio specific. Rename them to generic
names.

Fix comments and header inclusion in various 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:
Wei Liu 2015-11-18 18:31:52 +00:00 committed by Aneesh Kumar K.V
parent 364031f179
commit 267ae092e2
10 changed files with 15 additions and 17 deletions

View File

@ -12,7 +12,7 @@
*/ */
#include "virtio-9p.h" #include "virtio-9p.h"
#include "virtio-9p-xattr.h" #include "9p-xattr.h"
#include <arpa/inet.h> #include <arpa/inet.h>
#include <pwd.h> #include <pwd.h>
#include <grp.h> #include <grp.h>

View File

@ -12,7 +12,7 @@
*/ */
#include "virtio-9p.h" #include "virtio-9p.h"
#include "virtio-9p-xattr.h" #include "9p-xattr.h"
#include "fsdev/qemu-fsdev.h" /* local_ops */ #include "fsdev/qemu-fsdev.h" /* local_ops */
#include <arpa/inet.h> #include <arpa/inet.h>
#include <pwd.h> #include <pwd.h>

View File

@ -15,7 +15,7 @@
#include "qemu/xattr.h" #include "qemu/xattr.h"
#include "virtio-9p.h" #include "virtio-9p.h"
#include "fsdev/file-op-9p.h" #include "fsdev/file-op-9p.h"
#include "virtio-9p-xattr.h" #include "9p-xattr.h"
#define MAP_ACL_ACCESS "user.virtfs.system.posix_acl_access" #define MAP_ACL_ACCESS "user.virtfs.system.posix_acl_access"
#define MAP_ACL_DEFAULT "user.virtfs.system.posix_acl_default" #define MAP_ACL_DEFAULT "user.virtfs.system.posix_acl_default"

View File

@ -14,7 +14,7 @@
#include "hw/virtio/virtio.h" #include "hw/virtio/virtio.h"
#include "virtio-9p.h" #include "virtio-9p.h"
#include "virtio-9p-xattr.h" #include "9p-xattr.h"
#include "fsdev/qemu-fsdev.h" #include "fsdev/qemu-fsdev.h"
#include "9p-synth.h" #include "9p-synth.h"
#include "qemu/rcu.h" #include "qemu/rcu.h"

View File

@ -1,5 +1,5 @@
/* /*
* Virtio 9p user. xattr callback * 9p user. xattr callback
* *
* Copyright IBM, Corp. 2010 * Copyright IBM, Corp. 2010
* *
@ -12,10 +12,9 @@
*/ */
#include <sys/types.h> #include <sys/types.h>
#include "hw/virtio/virtio.h"
#include "virtio-9p.h" #include "virtio-9p.h"
#include "fsdev/file-op-9p.h" #include "fsdev/file-op-9p.h"
#include "virtio-9p-xattr.h" #include "9p-xattr.h"
static ssize_t mp_user_getxattr(FsContext *ctx, const char *path, static ssize_t mp_user_getxattr(FsContext *ctx, const char *path,

View File

@ -1,5 +1,5 @@
/* /*
* Virtio 9p xattr callback * 9p xattr callback
* *
* Copyright IBM, Corp. 2010 * Copyright IBM, Corp. 2010
* *
@ -11,10 +11,9 @@
* *
*/ */
#include "hw/virtio/virtio.h"
#include "virtio-9p.h" #include "virtio-9p.h"
#include "fsdev/file-op-9p.h" #include "fsdev/file-op-9p.h"
#include "virtio-9p-xattr.h" #include "9p-xattr.h"
static XattrOperations *get_xattr_operations(XattrOperations **h, static XattrOperations *get_xattr_operations(XattrOperations **h,

View File

@ -1,5 +1,5 @@
/* /*
* Virtio 9p * 9p
* *
* Copyright IBM, Corp. 2010 * Copyright IBM, Corp. 2010
* *
@ -10,8 +10,8 @@
* the COPYING file in the top-level directory. * the COPYING file in the top-level directory.
* *
*/ */
#ifndef _QEMU_VIRTIO_9P_XATTR_H #ifndef _QEMU_9P_XATTR_H
#define _QEMU_VIRTIO_9P_XATTR_H #define _QEMU_9P_XATTR_H
#include "qemu/xattr.h" #include "qemu/xattr.h"

View File

@ -1,6 +1,6 @@
common-obj-y = virtio-9p.o common-obj-y = virtio-9p.o
common-obj-y += 9p-local.o virtio-9p-xattr.o common-obj-y += 9p-local.o 9p-xattr.o
common-obj-y += virtio-9p-xattr-user.o 9p-posix-acl.o common-obj-y += 9p-xattr-user.o 9p-posix-acl.o
common-obj-y += coth.o cofs.o codir.o cofile.o common-obj-y += coth.o cofs.o codir.o cofile.o
common-obj-y += coxattr.o 9p-synth.o common-obj-y += coxattr.o 9p-synth.o
common-obj-$(CONFIG_OPEN_BY_HANDLE) += 9p-handle.o common-obj-$(CONFIG_OPEN_BY_HANDLE) += 9p-handle.o

View File

@ -17,7 +17,7 @@
#include "qemu/sockets.h" #include "qemu/sockets.h"
#include "virtio-9p.h" #include "virtio-9p.h"
#include "fsdev/qemu-fsdev.h" #include "fsdev/qemu-fsdev.h"
#include "virtio-9p-xattr.h" #include "9p-xattr.h"
#include "coth.h" #include "coth.h"
#include "hw/virtio/virtio-access.h" #include "hw/virtio/virtio-access.h"

View File

@ -18,7 +18,7 @@
#include "qemu/sockets.h" #include "qemu/sockets.h"
#include "virtio-9p.h" #include "virtio-9p.h"
#include "fsdev/qemu-fsdev.h" #include "fsdev/qemu-fsdev.h"
#include "virtio-9p-xattr.h" #include "9p-xattr.h"
#include "coth.h" #include "coth.h"
#include "trace.h" #include "trace.h"
#include "migration/migration.h" #include "migration/migration.h"