]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/qemu-xen.git/commit
hw/9pfs: make get_st_gen() return ENOTTY error on special files
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Tue, 28 Jan 2014 15:08:26 +0000 (17:08 +0200)
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sun, 2 Feb 2014 16:39:04 +0000 (22:09 +0530)
commit1a9978a51a17a26fd07e1b46f31ceeb9772fc191
treed63ea3833b5de533042e4bf9e35638201e7f6ea1
parentb9317661d13230ec9fd1162625b7f812c0cacd37
hw/9pfs: make get_st_gen() return ENOTTY error on special files

Currently we silently ignore getversion requests for anything except
file or directory. Let's instead return ENOTTY error to indicate that
getversion is not supported. It makes implementation consistent on
all not-supported cases.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
hw/9pfs/virtio-9p-handle.c
hw/9pfs/virtio-9p-local.c
hw/9pfs/virtio-9p-proxy.c