lkml.org 
[lkml]   [2016]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 3/3] block: implement (some of) fallocate for block devices
From
On Fri, Mar 4, 2016 at 4:56 PM, Darrick J. Wong <darrick.wong@oracle.com> wrote:
> + /* Only punch if the device can do zeroing discard. */
> + if ((mode & FALLOC_FL_PUNCH_HOLE) &&
> + (!blk_queue_discard(q) || !q->limits.discard_zeroes_data))
> + return -EOPNOTSUPP;

I'm ok with this, but suspect that some users would prefer to just
turn this into ZERO_RANGE silently.

Comments from people who would be expected to use this?

Linus

\
 
 \ /
  Last update: 2016-03-05 04:41    [W:0.673 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site