Skip to content

IO Error on BTRFS #22964

@axet

Description

@axet

qBittorrent & operating system versions

qbittorrent 5.1.0-1
debian trixie

What is the problem?

When data got corrupted on drive most FS will return bad data back to the user without any errors. But BTRFS will report IOERROR and prevent file to be readed if underlaying data is corrupted. That different FS behavior breaks qBittorrent.

When qBittorrent failed to read data with IO Error it:

  1. prevent data to be 'Force checked' again. You have to restart qbitttorent app to do so.
  2. does not try to locate bad blocks and re download the blocks instead lock torrent from downloads / checking.

I hope qBittorrent can detect bad blocks which is failed to read with IO errors and redownload them.

Issue hard to reproduce, since it required to have corrupted BTRFS with bad data crc.

Steps to reproduce

  1. download torrent
  2. corrupt btrfs
  3. force check on that torrent

Additional context

No response

Log(s) & preferences file(s)

05.07.2025 09:43 - File error alert. Torrent: "Starfield.Digital.Premium.Edition-InsaneRamZes 1.15.216.0". File: "". Reason: "Starfield.Digital.Premium.Edition-InsaneRamZes exception () error: Bad address"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions