[lkml]   [2011]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 1/2 v2] fs: add SEEK_HOLE and SEEK_DATA flags
    On 05/04/2011 03:04 PM, wrote:
    > On Wed, 04 May 2011 13:58:39 EDT, Josef Bacik said:
    >> -SEEK_HOLE: this moves the file pos to the nearest hole in the file from the
    >> given position.
    > Nearest, or next? Solaris defines it as "next", for a good reason - otherwise
    > you can get stuck in a case where the "nearest" hole is back towards the
    > start of the file - and "seek data" will bounce back to the next byte at
    > the other end of the hole.

    Yeah sorry the log says "nearest" but the code says "next", if you look
    at it thats how it works. Thanks,


     \ /
      Last update: 2011-05-04 21:13    [W:0.039 / U:19.888 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site