Re: Impossible or Possible to Securely Erase File on Btrfs?

2013-03-20 Thread Martin Steigerwald
Am Dienstag, 19. März 2013 schrieb Marek Otahal: Hi, just reading chattr manpage.. On Monday 18 March 2013 14:15:17 you wrote: Hi, After reading through the btrfs documentation I'm curious to know if it's possible to ever securely erase a file from a btrfs filesystem (or ZFS for

Re: Impossible or Possible to Securely Erase File on Btrfs?

2013-03-19 Thread David Sterba
On Mon, Mar 18, 2013 at 09:18:28PM -0600, Chris Murphy wrote: I'm not finding a reference to secure erase trim. In any case I wouldn't expect it to differ from trim. There's a 'secure discard' trim command in linux, http://lkml.indiana.edu/hypermail/linux/kernel/1007.1/02355.html Used inside

Re: Impossible or Possible to Securely Erase File on Btrfs?

2013-03-19 Thread David Sterba
On Tue, Mar 19, 2013 at 09:48:56AM +1100, Gareth Pye wrote: Would it make sense for btrfs to support a write zeros to empty space erase? I know it would be slow as it would have to write to all the free space in the file system but it would be useful. It's probably pretty far down the

Re: Impossible or Possible to Securely Erase File on Btrfs?

2013-03-19 Thread Marek Otahal
Hi, just reading chattr manpage.. On Monday 18 March 2013 14:15:17 you wrote: Hi, After reading through the btrfs documentation I'm curious to know if it's possible to ever securely erase a file from a btrfs filesystem (or ZFS for that matter). On non-COW filesystems atop regular HDDs

Re: Impossible or Possible to Securely Erase File on Btrfs?

2013-03-19 Thread Chris Murphy
On Mar 19, 2013, at 3:06 AM, David Sterba dste...@suse.cz wrote: On Mon, Mar 18, 2013 at 09:18:28PM -0600, Chris Murphy wrote: I'm not finding a reference to secure erase trim. In any case I wouldn't expect it to differ from trim. There's a 'secure discard' trim command in linux,

Impossible or Possible to Securely Erase File on Btrfs?

2013-03-18 Thread Kyle
Hi, After reading through the btrfs documentation I'm curious to know if it's possible to ever securely erase a file from a btrfs filesystem (or ZFS for that matter). On non-COW filesystems atop regular HDDs one can simply overwrite the file with zeros or random data using dd or some other

Re: Impossible or Possible to Securely Erase File on Btrfs?

2013-03-18 Thread Chris Murphy
On Mar 18, 2013, at 12:57 PM, Hugo Mills h...@carfax.org.uk wrote: On Mon, Mar 18, 2013 at 02:15:17PM -0400, Kyle wrote: After reading through the btrfs documentation I'm curious to know if it's possible to ever securely erase a file from a btrfs filesystem (or ZFS for that matter). Not

Re: Impossible or Possible to Securely Erase File on Btrfs?

2013-03-18 Thread Chris Mason
Quoting Kyle (2013-03-18 14:15:17) Hi, After reading through the btrfs documentation I'm curious to know if it's possible to ever securely erase a file from a btrfs filesystem (or ZFS for that matter). On non-COW filesystems atop regular HDDs one can simply overwrite the file with zeros

Re: Impossible or Possible to Securely Erase File on Btrfs?

2013-03-18 Thread Gareth Pye
Would it make sense for btrfs to support a write zeros to empty space erase? I know it would be slow as it would have to write to all the free space in the file system but it would be useful. It's probably pretty far down the priority list for development though I expect. On Tue, Mar 19, 2013 at

Re: Impossible or Possible to Securely Erase File on Btrfs?

2013-03-18 Thread Kyle
On 3/18/2013 3:09 PM, Chris Murphy wrote: On Mar 18, 2013, at 12:57 PM, Hugo Mills h...@carfax.org.uk wrote: On Mon, Mar 18, 2013 at 02:15:17PM -0400, Kyle wrote: After reading through the btrfs documentation I'm curious to know if it's possible to ever securely erase a file from a btrfs

Re: Impossible or Possible to Securely Erase File on Btrfs?

2013-03-18 Thread Chris Murphy
On Mar 18, 2013, at 1:18 PM, Chris Mason chris.ma...@fusionio.com wrote: We don't do this now for other reasons mentioned in the thread. The best path to get here is to use trim, and to find a device that supports a secure erase trim (I don't know if this even exists, sorry). I'm not

Re: Impossible or Possible to Securely Erase File on Btrfs?

2013-03-18 Thread Chris Murphy
On Mar 18, 2013, at 5:00 PM, Kyle li...@lolwut.org wrote: I'm doubtful that encryption would be as effective as what Chris Mason was suggesting, which is to either find and use a disk with secure erase trim or rotate out the drives and securely erase them so that the data is destroyed