sapling/eden/fs
Wez Furlong 950c81858c eden: fix buffer advance in FileDescriptor::wrapFull
Summary:
The loop took care to advance `b` to match the amount
of data that it had processed, but was still passing `buf`
(the unadjusted start of the buffer) to the syscalls.

This meant that in situations where a `readFull` might
encounter a partial read, it would scribble over the start
of the buffer and leave junk at the end.

For example:

write("hell");
write("o");

could produce "oell?" in the buffer when `readFull` consumes
the other end of the pipe.

Reviewed By: xavierd

Differential Revision: D23486270

fbshipit-source-id: 0848f6789b44421b609b91fe08890768ff59f7f5
2020-09-02 23:38:18 -07:00
..
benchharness add 4k random writes benchmark 2020-07-14 16:13:37 -07:00
benchmarks add 4k random writes benchmark 2020-07-14 16:13:37 -07:00
cli move is_system_idle to UnixProcUtils 2020-09-02 20:19:49 -07:00
config allow multiple prefixes for paths to be logged 2020-09-02 22:54:23 -07:00
docs Some minor modifications to verbiage in documentation 2020-07-06 22:20:17 -07:00
fuse telemetry: consolidate Fuse/PrjFS stats in ChannelThreadStats 2020-09-02 15:28:39 -07:00
inodes Migrate to field_ref Thrift API 2020-09-02 18:05:47 -07:00
journal Migrate to field_ref Thrift API 2020-07-28 14:32:44 -07:00
model model: report symlink/executable as regular files on Windows 2020-05-12 08:46:35 -07:00
monitor eden: introduce SpawnedProcess 2020-09-01 13:31:32 -07:00
notifications eden: introduce SpawnedProcess 2020-09-01 13:31:32 -07:00
py fix eden thrift legacy dependencies 2020-08-31 07:55:27 -07:00
rocksdb Remove dead includes in eden 2019-10-11 16:45:01 -07:00
service eden: introduce SpawnedProcess 2020-09-01 13:31:32 -07:00
sqlite silence some msvc warnings from sqlite.{h,cpp} 2020-04-26 21:14:24 -07:00
store allow multiple prefixes for paths to be logged 2020-09-02 22:54:23 -07:00
takeover Migrate to field_ref Thrift API 2020-07-21 11:23:35 -07:00
telemetry telemetry: consolidate Fuse/PrjFS stats in ChannelThreadStats 2020-09-02 15:28:39 -07:00
testharness fuse: cleanup some include of RequestData 2020-09-02 12:15:48 -07:00
third-party eden: support NO_OPEN support on macOS 2020-07-27 17:53:03 -07:00
utils eden: fix buffer advance in FileDescriptor::wrapFull 2020-09-02 23:38:18 -07:00
win eden: introduce SpawnedProcess 2020-09-01 13:31:32 -07:00
CMakeLists.txt revert: Run Eden as a Windows service 2020-05-28 09:01:03 -07:00