From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin K. Petersen" Subject: Re: [PATCH 2/2] block: create ioctl to discard-or-zeroout a range of blocks Date: Thu, 03 Mar 2016 13:54:54 -0500 Message-ID: References: <20160302040932.16685.62789.stgit@birch.djwong.org> <20160302040947.16685.42926.stgit@birch.djwong.org> <20160302225601.GB21890@birch.djwong.org> <20160303180924.GA4116@infradead.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <20160303180924.GA4116@infradead.org> (Christoph Hellwig's message of "Thu, 3 Mar 2016 10:09:24 -0800") Sender: linux-kernel-owner@vger.kernel.org To: Christoph Hellwig Cc: "Martin K. Petersen" , Linus Torvalds , "Darrick J. Wong" , Jens Axboe , Andrew Morton , Linux API , Linux Kernel Mailing List , shane.seymour@hpe.com, Bruce Fields , linux-fsdevel , Jeff Layton List-Id: linux-api@vger.kernel.org >>>>> "Christoph" == Christoph Hellwig writes: Christoph> - FALLOC_FL_PUNCH_HOLE assures zeroes are returned, but Christoph> space is deallocated as much as possible - Christoph> FALLOC_FL_ZERO_RANGE assures zeroes are returned, AND blocks Christoph> are actually allocated That works for me. I think it would be great if we could have consistent interfaces for fs and block. The more commonality the merrier. -- Martin K. Petersen Oracle Linux Engineering