[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Accepted dpkg (source all amd64)

On Mon, Dec 20, 2010 at 02:32:17 +0000, Guillem Jover wrote:

>    * On Linux use sync_file_range() to initiate asynchronous writeback
>      of just unpacked files. Suggested by Ted Ts'o <tytso@mit.edu>.
>      Thanks to Jonathan Nieder <jrnieder@gmail.com>. Closes: #605009
>    * On non-Linux use posix_fadvise(POSIX_FADV_DONTNEED) to notify the kernel
>      dpkg does not need the unpacked files any longer, and that it can start
>      writeback to be able to evict them from the cache at a later point.

You're ignoring the return value of sync_file_range (and posix_fadvise).
While that may be ok for SYNC_FILE_RANGE_WRITE, I don't think it is for


Attachment: signature.asc
Description: Digital signature

Reply to: