Merge "libsparse: Don't spam errors in sparse_file_import_auto."
This commit is contained in:
commit
bed6eea329
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…
Reference in a new issue