Opened 15 years ago

Closed 15 years ago

#318 closed Bug (fixed)

ftruncate file (to extend size) on vfat filesystem

Reported by: Diraison Owned by: charles
Priority: Normal Milestone: 0.90
Component: libtransmission Version: 0.80
Severity: Normal Keywords:
Cc:

Description

vfat ftrunctate doesn't work properly to extend file size with some linux kernels (as 2.6.8.1). The function always returns EPERM errno and Transmission stop the torrent. This problem may be related to Ticket #285 with file creation over samba share.

A solution is to extend file by writing a single byte at the desired end of the file.

Attachments (1)

Transmission-ftruncate_vfat-r2921.patch (1.1 KB) - added by Diraison 15 years ago.
simple patch

Download all attachments as: .zip

Change History (3)

Changed 15 years ago by Diraison

simple patch

comment:1 Changed 15 years ago by charles

  • Milestone changed from 0.81 to 0.90
  • Owner set to charles
  • Status changed from new to assigned

comment:2 Changed 15 years ago by charles

  • Resolution set to fixed
  • Status changed from assigned to closed

as of r3172, ensureMinimumFileSize() is only used on WIN32 machines

Note: See TracTickets for help on using tickets.