diff options
| author | Christian Schoenebeck <qemu_oss@crudebyte.com> | 2021-09-22 15:13:31 +0200 |
|---|---|---|
| committer | Christian Schoenebeck <qemu_oss@crudebyte.com> | 2021-10-27 14:45:22 +0200 |
| commit | 669ced09b3b6070d478acce51810591b78ab0ccd (patch) | |
| tree | 42dc8961696cfca1bf96b5ea638d0db0f78c6725 /fsdev/p9array.h | |
| parent | 931ce30859176f0f7daac6bac255dae5eb21284e (diff) | |
| download | focaccia-qemu-669ced09b3b6070d478acce51810591b78ab0ccd.tar.gz focaccia-qemu-669ced09b3b6070d478acce51810591b78ab0ccd.zip | |
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>
Diffstat (limited to 'fsdev/p9array.h')
0 files changed, 0 insertions, 0 deletions