Skip to contentSkip to conversation

VirtFS update

GIT PULL Aneesh Kumar K.V 2 participants 2 messages May 29, 2013 – May 31, 2013

lore
Share & tools
lore
#0 lore raw

The following changes since commit 371386fb60961e0afc02f03c817dff79633e323e:

Update version for 1.5.0 release. (2013-05-20 08:20:08 -0500)

are available in the git repository at:

git://github.com/kvaneesh/qemu.git for-upstream

for you to fetch changes up to db431f6adc881a0758512cd765b3108209013512:

hw/9pfs: Be robust against paths without FS_IOC_GETVERSION (2013-05-28 15:23:12 +0530)

----------------------------------------------------------------
Aneesh Kumar K.V (3):
hw/9pfs: Fix segfault with 9p2000.u
hw/9pfs: use O_NOFOLLOW for mapped readlink operation hw/9pfs: Use O_NOFOLLOW when opening files on server

Gabriel de Perthuis (1):
hw/9pfs: Be robust against paths without FS_IOC_GETVERSION

 hw/9pfs/cofile.c          |  4 ++++
 hw/9pfs/virtio-9p-local.c | 50 +++++++++++++++++++++++++++++++++++++++--------
 hw/9pfs/virtio-9p.c       |  2 +-
 3 files changed, 47 insertions(+), 9 deletions(-)
hw/9pfs/cofile.c +4 -0
index 2efebf3..194c130 100644
@@ -38,6 +38,10 @@ int v9fs_co_st_gen(V9fsPDU *pdu, V9fsPath *path, mode_t st_mode,
             });
         v9fs_path_unlock(s);
     }
+    /* The ioctl may not be supported depending on the path */
+    if (err == -ENOTTY) {
+        err = 0;
+    }
     return err;
 }
 
hw/9pfs/virtio-9p-local.c +42 -8

104 lines not on this page · raw message

hw/9pfs/virtio-9p.c +1 -1
index 296f66f..8cbb8ae 100644
@@ -658,7 +658,7 @@ static mode_t v9mode_to_mode(uint32_t mode, V9fsString *extension)
         ret |= S_IFIFO;
     }
     if (mode & P9_STAT_MODE_DEVICE) {
-        if (extension && extension->data[0] == 'c') {
+        if (extension->size && extension->data[0] == 'c') {
             ret |= S_IFCHR;
         } else {
             ret |= S_IFBLK;