From: JP Abgrall Subject: Re: [PATCH] ext4: Add support for SFITRIM, an ioctl for secure FITRIM. Date: Fri, 13 Jun 2014 17:46:05 -0700 Message-ID: References: <1402625647-31439-1-git-send-email-jpa@google.com> <539A63C1.8010809@redhat.com> <20140613031538.GR4453@dastard> <20140613033029.GS4453@dastard> <20140613050703.GT4453@dastard> <20140613142054.GA23180@thunk.org> <20140613143157.GB23180@thunk.org> <20140613234134.GC5036@thunk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Dave Chinner , Eric Sandeen , linux-ext4@vger.kernel.org, Geremy Condra , "linux-fsdevel@vger.kernel.org" To: "Theodore Ts'o" Return-path: Received: from mail-ob0-f174.google.com ([209.85.214.174]:53165 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753222AbaFNAqZ (ORCPT ); Fri, 13 Jun 2014 20:46:25 -0400 Received: by mail-ob0-f174.google.com with SMTP id va2so3556686obc.19 for ; Fri, 13 Jun 2014 17:46:25 -0700 (PDT) In-Reply-To: <20140613234134.GC5036@thunk.org> Sender: linux-ext4-owner@vger.kernel.org List-ID: On Fri, Jun 13, 2014 at 4:41 PM, Theodore Ts'o wrote: > If you want to adopt this for usptream, and add support for > BLKSECDISCARD as well as BLKDISCARD, then you could for each file that > you want to do the per-file secure discard, you would just have to > open the file, call the BLKSECDISCARD ioctl, and then delete the file. That would work also. Thanks.