Re: [PATCH 1/3] fs: add SEEK_HOLE and SEEK_DATA flags V4

2011-05-25 Thread Andreas Dilger
On May 23, 2011, at 15:43, Josef Bacik wrote: This just gets us ready to support the SEEK_HOLE and SEEK_DATA flags. Turns out using fiemap in things like cp cause more problems than it solves, so lets try and give userspace an interface that doesn't suck. We need to match solaris here, and

[PATCH 1/3] fs: add SEEK_HOLE and SEEK_DATA flags V4

2011-05-23 Thread Josef Bacik
This just gets us ready to support the SEEK_HOLE and SEEK_DATA flags. Turns out using fiemap in things like cp cause more problems than it solves, so lets try and give userspace an interface that doesn't suck. We need to match solaris here, and the definitions are *o* If /whence/ is SEEK_HOLE,