qemu-e2k/hw/9pfs
Gabriel de Perthuis db431f6adc hw/9pfs: Be robust against paths without FS_IOC_GETVERSION
9P optionally uses the FS_IOC_GETVERSION ioctl to get information about
a file's version (sometimes called generation number).

The code checks for supported filesystems at mount time, but some paths
may come from other mounted filesystems.

Change it to treat unsupported paths the same as unsupported
filesystems, returning 0 in both cases.

Note: ENOTTY is the error code for an unsupported ioctl.

This fix allows booting a linux kernel with the same / filesystem as the
host; otherwise the boot fails when mounting devtmpfs.

Signed-off-by: Gabriel de Perthuis <g2p.code@gmail.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
2013-05-28 15:23:12 +05:30
..
codir.c
cofile.c hw/9pfs: Be robust against paths without FS_IOC_GETVERSION 2013-05-28 15:23:12 +05:30
cofs.c
coxattr.c
Makefile.objs
virtio-9p-coth.c
virtio-9p-coth.h
virtio-9p-device.c virtio: remove the function pointer. 2013-04-24 11:50:20 -05:00
virtio-9p-handle.c hw: move headers to include/ 2013-04-08 18:13:10 +02:00
virtio-9p-local.c hw/9pfs: Use O_NOFOLLOW when opening files on server 2013-05-28 15:23:12 +05:30
virtio-9p-posix-acl.c hw: move headers to include/ 2013-04-08 18:13:10 +02:00
virtio-9p-proxy.c hw: move headers to include/ 2013-04-08 18:13:10 +02:00
virtio-9p-proxy.h
virtio-9p-synth.c hw: move headers to include/ 2013-04-08 18:13:10 +02:00
virtio-9p-synth.h
virtio-9p-xattr-user.c hw: move headers to include/ 2013-04-08 18:13:10 +02:00
virtio-9p-xattr.c hw: move headers to include/ 2013-04-08 18:13:10 +02:00
virtio-9p-xattr.h
virtio-9p.c hw/9pfs: Fix segfault with 9p2000.u 2013-05-28 15:23:12 +05:30
virtio-9p.h virtio-9p: cleanup: QOM casts. 2013-04-23 10:37:49 -05:00