Searched hist:"669 ced09" (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/hw/9pfs/ |
H A D | 9p.c | 669ced09 Wed Sep 22 08:13:31 CDT 2021 Christian Schoenebeck <qemu_oss@crudebyte.com> 9pfs: fix wrong I/O block size in Rgetattr
When client sent a 9p Tgetattr request then the wrong I/O block size value was returned by 9p server; instead of host file system's I/O block size it should rather return an I/O block size according to 9p session's 'msize' value, because the value returned to client should be an "optimum" block size for I/O (i.e. to maximize performance), it should not reflect the actual physical block size of the underlying storage media.
The I/O block size of a host filesystem is typically 4k, so the value returned was far too low for good 9p I/O performance.
This patch adds stat_to_iounit() with a similar approach as the existing get_iounit() function.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Reviewed-by: Greg Kurz <groug@kaod.org> Message-Id: <E1mT2Js-0000DW-OH@lizzy.crudebyte.com>
|