Skip to content
Snippets Groups Projects
  1. Oct 27, 2021
    • Christian Schoenebeck's avatar
      9pfs: fix wrong I/O block size in Rgetattr · 669ced09
      Christian Schoenebeck authored
      
      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: default avatarChristian Schoenebeck <qemu_oss@crudebyte.com>
      Reviewed-by: default avatarGreg Kurz <groug@kaod.org>
      Message-Id: <E1mT2Js-0000DW-OH@lizzy.crudebyte.com>
      669ced09
  2. Oct 26, 2021
  3. Oct 25, 2021
  4. Oct 23, 2021
  5. Oct 22, 2021
Loading