Re: [btrfs-progs] coreutils-like -i parameter, splitting permissions for various tasks

2018-02-11 Thread Axel Burri
On 2018-02-10 12:24, Tomasz Pala wrote: > There is a serious flaw in btrfs subcommands handling. Since all of them > are handled by single 'btrfs' binary, there is no way to create any > protection against accidental data loss for (the only one I've found, > but still DANGEROUS) 'btrfs subvolume

Re: btrfs-cleaner / snapshot performance analysis

2018-02-11 Thread Hans van Kranenburg
On 02/11/2018 04:59 PM, Ellis H. Wilson III wrote: > Thanks Tomasz, > > Comments in-line: > > On 02/10/2018 05:05 PM, Tomasz Pala wrote: >> You won't have anything close to "accurate" in btrfs - quotas don't >> include space wasted by fragmentation, which happens to allocate from >> tens >> to

Re: btrfs-cleaner / snapshot performance analysis

2018-02-11 Thread Hans van Kranenburg
On 02/11/2018 05:15 PM, Ellis H. Wilson III wrote: > Thanks Hans.  Sorry for the top-post, but I'm boiling things down here > so I don't have a clear line-item to respond to.  The take-aways I see > here to my original queries are: > > 1. Nobody has done a thorough analysis of the impact of

Re: btrfs-cleaner / snapshot performance analysis

2018-02-11 Thread Adam Borowski
On Sun, Feb 11, 2018 at 12:31:42PM +0300, Andrei Borzenkov wrote: > 11.02.2018 04:02, Hans van Kranenburg пишет: > >> - /dev/sda6 / btrfs > >> rw,relatime,ssd,space_cache,subvolid=259,subvol=/@/.snapshots/1/snapshot > >> 0 0 > > > > Note that changes on atime cause writes to metadata, which means

Re: btrfs-cleaner / snapshot performance analysis

2018-02-11 Thread Ellis H. Wilson III
Thanks Hans. Sorry for the top-post, but I'm boiling things down here so I don't have a clear line-item to respond to. The take-aways I see here to my original queries are: 1. Nobody has done a thorough analysis of the impact of snapshot manipulation WITHOUT qgroups enabled on foreground

Re: btrfs-cleaner / snapshot performance analysis

2018-02-11 Thread Ellis H. Wilson III
Thanks Tomasz, Comments in-line: On 02/10/2018 05:05 PM, Tomasz Pala wrote: You won't have anything close to "accurate" in btrfs - quotas don't include space wasted by fragmentation, which happens to allocate from tens to thousands times (sic!) more space than the files itself. Not in some

Re: btrfs-cleaner / snapshot performance analysis

2018-02-11 Thread Andrei Borzenkov
11.02.2018 04:02, Hans van Kranenburg пишет: ... > >> - /dev/sda6 / btrfs >> rw,relatime,ssd,space_cache,subvolid=259,subvol=/@/.snapshots/1/snapshot >> 0 0 > > Note that changes on atime cause writes to metadata, which means cowing > metadata blocks and unsharing them from a previous snapshot,