]> granicus.if.org Git - transmission/commit
#5369: Improve file allocation error checking (initial patch by g.proskurin)
authorMike Gelfand <mikedld@mikedld.com>
Wed, 10 Dec 2014 18:23:11 +0000 (18:23 +0000)
committerMike Gelfand <mikedld@mikedld.com>
Wed, 10 Dec 2014 18:23:11 +0000 (18:23 +0000)
commita3fdd5f029768273ae3418ef455bab5e04134d56
treee624a6368907840da6e666f3887c1ddf26ead23b
parent1560ebd3ff94a9d78a8e6a0f44a50c43e403e412
#5369: Improve file allocation error checking (initial patch by g.proskurin)

Additionally,
* always close file descriptor on error in cached_file_open (FD leak),
* only store file descriptor to tr_cached_file on success,
* call ftruncate after xfsctl-based preallocation so that correct size
  is reported by the system.
libtransmission/CMakeLists.txt
libtransmission/Makefile.am
libtransmission/error-types.h [new file with mode: 0644]
libtransmission/fdlimit.c
libtransmission/file-posix.c