platform_system_core/fastboot/device
Konstantin Vyshetsky d5f3da8dc5 fastbootd: use O_DIRECT for write partition
Direct writes for partition flashing significantly increase performance.
Use O_DIRECT flag when opening partition for flashing. Additionally use
a 4096b aligned buffer which is required for O_DIRECT.
Switch from using 8MB write buffer to 1MB write buffer, as the extra
allocation has no performance impact.

Test: flash locally and reach home screen
Bug: 205151372
Signed-off-by: Konstantin Vyshetsky <vkon@google.com>
Change-Id: I060f438cf698d0fda1e59e35338bb5dc1cd05b51
2021-11-04 13:24:33 -07:00
..
commands.cpp fastbootd: allow passage of flags to open partition 2021-11-04 12:05:48 -07:00
commands.h fastbootd: Add fetch command on device 2021-03-17 15:38:06 -07:00
fastboot_device.cpp fastbootd: Add fetch command on device 2021-03-17 15:38:06 -07:00
fastboot_device.h fastbootd: Add fetch command on device 2021-03-17 15:38:06 -07:00
flashing.cpp fastbootd: use O_DIRECT for write partition 2021-11-04 13:24:33 -07:00
flashing.h fastbootd: Remove metadata merging code. 2018-10-26 13:34:40 -07:00
main.cpp
tcp_client.cpp fastbootd: Support TCP protocol. 2020-05-19 19:11:25 +00:00
tcp_client.h fastbootd: Support TCP protocol. 2020-05-19 19:11:25 +00:00
usb.cpp fastboot device: Disallow implicit conversion from unique_fd to int. 2021-03-22 19:30:59 -07:00
usb.h Move adbd's legacy USB implementation to fastboot. 2020-03-31 16:05:36 -07:00
usb_client.cpp fastbootd: Fix USB transport data is repeated every 256K 2021-03-05 19:45:00 -08:00
usb_client.h Move adbd's legacy USB implementation to fastboot. 2020-03-31 16:05:36 -07:00
utility.cpp fastbootd: allow passage of flags to open partition 2021-11-04 12:05:48 -07:00
utility.h fastbootd: allow passage of flags to open partition 2021-11-04 12:05:48 -07:00
variables.cpp fastbootd: Add getvar max-fetch-size. 2021-03-17 15:38:06 -07:00
variables.h fastbootd: Add getvar max-fetch-size. 2021-03-17 15:38:06 -07:00