Merge "libsparse: Don't spam errors in sparse_file_import_auto." am: bed6eea329
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2113794 Change-Id: I80ad198d682f7884aaf8b1546e250707a734f4e1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
5b8a2a6e55
1 changed files with 4 additions and 1 deletions
|
|
@ -670,7 +670,7 @@ struct sparse_file* sparse_file_import_auto(int fd, bool crc, bool verbose) {
|
|||
int64_t len;
|
||||
int ret;
|
||||
|
||||
s = sparse_file_import(fd, verbose, crc);
|
||||
s = sparse_file_import(fd, false, crc);
|
||||
if (s) {
|
||||
return s;
|
||||
}
|
||||
|
|
@ -686,6 +686,9 @@ struct sparse_file* sparse_file_import_auto(int fd, bool crc, bool verbose) {
|
|||
if (!s) {
|
||||
return nullptr;
|
||||
}
|
||||
if (verbose) {
|
||||
sparse_file_verbose(s);
|
||||
}
|
||||
|
||||
ret = sparse_file_read_normal(s, fd);
|
||||
if (ret < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue