Commit Graph

12 Commits (c02e24f8cebac6093014cb15aec2077495751a56)

Author SHA1 Message Date
Vitaliy Filippov c818f6216b Implement vectored read support
Read requests can now take vectored responses from the filesystem
implementation and send them to FUSE device via the writev() system call.

This allows file systems to send data without copying it into the
library-provided buffer if the data is already in memory.
2022-03-03 09:25:18 +01:00
Oliver Le Zhuang 8da59ba998
InMessage is initialized with a storage allocated before reads (#110)
Fixes #109. In #102, the storage of the InMessage gets allocated every
time it's being read, which is expensive and caused issues like
https://github.com/GoogleCloudPlatform/gcsfuse/issues/563. So, this
change moves the allocation to its own function, called only once when
the struct is initialized before the reads.
2021-10-28 23:41:51 +02:00
Andrew Gaul 7782064498
Calculate pageSize and bufSize at run-time (#102)
ARM-based macOS uses 16 KB pages instead of 4 KB.  Fixes
GoogleCloudPlatform/gcsfuse#548.
2021-08-11 21:31:10 +02:00
Michael Stapelberg ae5da07e4c
remove naked returns across the code base (#75)
fixes #73
2020-01-28 10:10:08 +01:00
Aaron Jacobs 59962d69e6 Fixed a bug. 2015-07-24 15:10:28 +10:00
Aaron Jacobs f2e8a5d806 Connection.readMessage 2015-07-24 15:04:28 +10:00
Aaron Jacobs 9ea4360f19 InMessage.Init 2015-07-24 14:57:18 +10:00
Aaron Jacobs b550b092fe Implemented some other InMessage methods. 2015-07-24 14:55:35 +10:00
Aaron Jacobs e0d989cba3 InMessage.Header 2015-07-24 14:52:54 +10:00
Aaron Jacobs b8110bf8a7 Added a buffer field. 2015-07-24 14:45:47 +10:00
Aaron Jacobs 64f4827424 Fixed some build errors. 2015-07-24 14:36:59 +10:00
Aaron Jacobs 2e8b1546be Declared InMessage. 2015-07-24 14:27:14 +10:00