Skip to content

Add Piece writes more than needed #1372

Closed
@ortyomka

Description

@ortyomka

Description

If we transfer a file with size N to add_piece and ask to write M bytes (where N > M)

Then the function will write N bytes. It seems like overkill.

I think add_piece should write M bytes only

Acceptance criteria

add_piece function writes piece_size bytes

Risks + pitfalls

If you pass /dev/zero file, then the copy will be infinite.

Where to begin

Here

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions