]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
9pfs: rename virtio-9p-xattr{,-user}.{c,h} to 9p-xattr{,-user}.{c,h}
authorWei Liu <wei.liu2@citrix.com>
Wed, 18 Nov 2015 18:31:52 +0000 (18:31 +0000)
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Fri, 8 Jan 2016 07:17:35 +0000 (12:47 +0530)
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>
hw/9pfs/9p-handle.c
hw/9pfs/9p-local.c
hw/9pfs/9p-posix-acl.c
hw/9pfs/9p-synth.c
hw/9pfs/9p-xattr-user.c [moved from hw/9pfs/virtio-9p-xattr-user.c with 97% similarity]
hw/9pfs/9p-xattr.c [moved from hw/9pfs/virtio-9p-xattr.c with 97% similarity]
hw/9pfs/9p-xattr.h [moved from hw/9pfs/virtio-9p-xattr.h with 97% similarity]
hw/9pfs/Makefile.objs
hw/9pfs/virtio-9p-device.c
hw/9pfs/virtio-9p.c

index a48dbc9e8d373ae744e51f373c21f2bda60d25f6..51a9d15fee0ddce2c7d72f946d251737c1e6d883 100644 (file)
@@ -12,7 +12,7 @@
  */
 
 #include "virtio-9p.h"
-#include "virtio-9p-xattr.h"
+#include "9p-xattr.h"
 #include <arpa/inet.h>
 #include <pwd.h>
 #include <grp.h>
index 877ad86c7ab852a389c49eb66b5728c1917116e3..ac553e0db745a3fcf76a0b63474bc00fa6806c03 100644 (file)
@@ -12,7 +12,7 @@
  */
 
 #include "virtio-9p.h"
-#include "virtio-9p-xattr.h"
+#include "9p-xattr.h"
 #include "fsdev/qemu-fsdev.h"   /* local_ops */
 #include <arpa/inet.h>
 #include <pwd.h>
index 1ee7bdc807ada25f5e39992bfab9d60083b3fc30..073af39983ca9b522ec16c1b49f070c74b05a343 100644 (file)
@@ -15,7 +15,7 @@
 #include "qemu/xattr.h"
 #include "virtio-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_DEFAULT "user.virtfs.system.posix_acl_default"
index 6d34b89eef8d85b79ae4ca7c9032725806be77ec..b1064e3aeaeb7c6b9f0f746be946db0d4a5b3c64 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "hw/virtio/virtio.h"
 #include "virtio-9p.h"
-#include "virtio-9p-xattr.h"
+#include "9p-xattr.h"
 #include "fsdev/qemu-fsdev.h"
 #include "9p-synth.h"
 #include "qemu/rcu.h"
similarity index 97%
rename from hw/9pfs/virtio-9p-xattr-user.c
rename to hw/9pfs/9p-xattr-user.c
index 46133e06dbdfbc05a199911c7d5dae8d32d6675c..163b158362d9cadd9eac7c3cda9f5dc3bf9a4555 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Virtio 9p user. xattr callback
+ * 9p user. xattr callback
  *
  * Copyright IBM, Corp. 2010
  *
  */
 
 #include <sys/types.h>
-#include "hw/virtio/virtio.h"
 #include "virtio-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,
similarity index 97%
rename from hw/9pfs/virtio-9p-xattr.c
rename to hw/9pfs/9p-xattr.c
index 07183887c5eee0778e39d94e6b64dec986191eab..1d7861b27be13cb63d3c0b09e445e852de6be50c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Virtio 9p  xattr callback
+ * 9p  xattr callback
  *
  * Copyright IBM, Corp. 2010
  *
  *
  */
 
-#include "hw/virtio/virtio.h"
 #include "virtio-9p.h"
 #include "fsdev/file-op-9p.h"
-#include "virtio-9p-xattr.h"
+#include "9p-xattr.h"
 
 
 static XattrOperations *get_xattr_operations(XattrOperations **h,
similarity index 97%
rename from hw/9pfs/virtio-9p-xattr.h
rename to hw/9pfs/9p-xattr.h
index 327b32b5aa9ef3ab7303d3c3067a52ab3d8edd06..4d39a20262ad2aba7e652725e3991a819ead96f4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Virtio 9p
+ * 9p
  *
  * Copyright IBM, Corp. 2010
  *
@@ -10,8 +10,8 @@
  * the COPYING file in the top-level directory.
  *
  */
-#ifndef _QEMU_VIRTIO_9P_XATTR_H
-#define _QEMU_VIRTIO_9P_XATTR_H
+#ifndef _QEMU_9P_XATTR_H
+#define _QEMU_9P_XATTR_H
 
 #include "qemu/xattr.h"
 
index ba62571d570685fac8faeea8249c13634ce17a7e..838c5e1eb951657812d9e851080ae303ecbe7f42 100644 (file)
@@ -1,6 +1,6 @@
 common-obj-y  = virtio-9p.o
-common-obj-y += 9p-local.o virtio-9p-xattr.o
-common-obj-y += virtio-9p-xattr-user.o 9p-posix-acl.o
+common-obj-y += 9p-local.o 9p-xattr.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 += coxattr.o 9p-synth.o
 common-obj-$(CONFIG_OPEN_BY_HANDLE) +=  9p-handle.o
index 667b54aeb82966a1ca5f0e30570330b4b62830f8..92ac19b24b834432ef7d06608bc2dfebf140da6d 100644 (file)
@@ -17,7 +17,7 @@
 #include "qemu/sockets.h"
 #include "virtio-9p.h"
 #include "fsdev/qemu-fsdev.h"
-#include "virtio-9p-xattr.h"
+#include "9p-xattr.h"
 #include "coth.h"
 #include "hw/virtio/virtio-access.h"
 
index 0f178dec32f3f2f553f0c9700aee7d823dce22f5..30ff82865ea456e9e90239f59a1cdae9aa004d10 100644 (file)
@@ -18,7 +18,7 @@
 #include "qemu/sockets.h"
 #include "virtio-9p.h"
 #include "fsdev/qemu-fsdev.h"
-#include "virtio-9p-xattr.h"
+#include "9p-xattr.h"
 #include "coth.h"
 #include "trace.h"
 #include "migration/migration.h"