do not read/write/set_len to padding files

This commit is contained in:
Igor Katson 2024-10-14 15:51:25 +01:00
parent 32d658e2d9
commit af7a0ddb4f
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 36 additions and 17 deletions

View file

@ -245,6 +245,9 @@ impl TorrentStateInitializing {
.unwrap_or(true)
{
let now = Instant::now();
if fi.attrs.padding {
continue;
}
if let Err(err) = self.files.ensure_file_length(idx, fi.len) {
warn!(
"Error setting length for file {:?} to {}: {:#?}",