diff options
| author | Connor O'Brien <connoro@google.com> | 2017-11-01 17:37:32 -0700 |
|---|---|---|
| committer | Connor O'Brien <connoro@google.com> | 2017-11-02 12:51:46 -0700 |
| commit | e31c24432b8c9d5597cfb9a39cc09ec4d13d8535 (patch) | |
| tree | f9e956d66605a4a14c9655f622894e0c5673f55c /libcutils/socket_network_client_unix.cpp | |
| parent | 54723bf5a05a46ad39b92e4881ae3bd70978f631 (diff) | |
fastboot: handle small flash block sizes correctly
Erase block sizes smaller than the ext4 block size may be valid, but
can incorrectly result in a stripe width smaller than the stride
size. Instead of reporting these sizes as invalid, add a check to
enforce that raid_stripe_width >= raid_stride.
Bug: 68770797
Test: Hack fb_getvar to report small erase block size, run fastboot
-w and confirm it does not print a warning or set stripe_width smaller
than stride.
Signed-off-by: Connor O'Brien <connoro@google.com>
Change-Id: I689ce4bdd5b38bd0952bb6de54785cca39176010
Diffstat (limited to 'libcutils/socket_network_client_unix.cpp')
0 files changed, 0 insertions, 0 deletions
