From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dongjun Shin" Subject: Re: Proposal to improve filesystem/block snapshot interaction Date: Tue, 30 Oct 2007 19:49:09 +0900 Message-ID: <7fe698080710300349x5df5d9b9kb3bd69a3077940bc@mail.gmail.com> References: <20070927063113.GD2989@sgi.com> <20071030010453.GF27385@sgi.com> <7fe698080710300235v3ce49613nfe3c5e733f1b6f5b@mail.gmail.com> <200710301115.30376.arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "Greg Banks" , "Linux Filesystem Mailing List" , "David Chinner" , "Donald Douwsma" , "Christoph Hellwig" , "Roger Strassburg" , "Mark Goodwin" , "Brett Jon Grandbois" To: "Arnd Bergmann" Return-path: Received: from rn-out-0910.google.com ([64.233.170.185]:21618 "EHLO rn-out-0102.google.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751031AbXJ3KtM (ORCPT ); Tue, 30 Oct 2007 06:49:12 -0400 Received: by rn-out-0102.google.com with SMTP id s46so1649188rnb for ; Tue, 30 Oct 2007 03:49:11 -0700 (PDT) In-Reply-To: <200710301115.30376.arnd@arndb.de> Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On 10/30/07, Arnd Bergmann wrote: > This make me curious, why would t13 want to invent a new command when > there is already the erase command from CFA? > > It's not exactly the same, but close enough that the proposed BIO_HINT_RELEASE > should probably be mapped to CFA_ERASE (0xc0) on drives that support it: > http://t13.org/Documents/UploadedDocuments/technical/d97116r1.pdf > I'm not sure about the background. However, it's definitely a sign that passing the deleted block info to the flash-based storage is useful. Anyway, BIO_HINT_RELEASE could destroy the content of the blocks after being passed to the device. I think that other bio should not be reordered accross that hint (just like barrier). Dongjun