Re: Is the checkpoint interval adjustable?

2013-08-03 Thread Kai Krakow
Torbjørn schrieb: >> Just curious: What would be the benefit of increasing the checkpoint >> interval? > Laptops typically spin down disks to save power. If btrfs forces a write > every 30 second, you have to spin it back up. I'd expect btrfs not to write to the disk when a checkpoint is reached

Re: Delivery Status Notification (Failure)

2013-08-03 Thread Jesper Utoft
Hello everybody. I have run into serious trouble with my btrfs volume. As an example after adding two disks to a btrfs volume they show up as filled with data in btrfs filesystem show. In btrfs fi df /mnt it says Data RAID1: total=4.64TB, used=11.46TB System.. (total > used so i think it is fine

Re: [PATCH 1/2] Btrfs-progs: remove duplicated code in cmds-restore.c

2013-08-03 Thread Eric Sandeen
On 8/2/13 7:34 PM, Eric Sandeen wrote: > On 7/10/13 11:12 AM, David Sterba wrote: >> On Tue, Jul 09, 2013 at 07:49:53PM +0100, Filipe David Borba Manana wrote: >>> The module cmds-restore.c was defining its own next_leaf() >>> function, which did exactly the same as btrfs_next_leaf() >>> from ctree

[PATCH] Btrfs: race free update of super flags

2013-08-03 Thread Filipe David Borba Manana
Before updating the super block's flags, which is a non-atomic operation, grab the super_lock in the fs_info structure. At the moment only 2 different code paths can update these flags in parallel: 1) when adding a new device 2) writing all super block copies to disk Signed-off-by: Filipe David B

Re: Is the checkpoint interval adjustable?

2013-08-03 Thread Torbjørn
On 08/03/2013 07:28 PM, Kai Krakow wrote: Mike Audia schrieb: I believe 30 sec is the default for the checkpoint interval. Is this adjustable? -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: Is the checkpoint interval adjustable?

2013-08-03 Thread Kai Krakow
Mike Audia schrieb: > I believe 30 sec is the default for the checkpoint interval. Is this > adjustable? -- > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-

Re: Which better: rsync or snapshot + rsync --delete

2013-08-03 Thread Kai Krakow
Martin schrieb: > Which is 'best' or 'faster'? > > Take a snapshot of an existing backup and then "rsync --delete" into > that to make a backup of some other filesystem? > > Or use "rsync --link" to link a new backup tree against a previous > backup tree for the some other filesystem? I'm doin

[PATCH v5] Btrfs-progs: restore can now recover file xattrs

2013-08-03 Thread Filipe David Borba Manana
This change adds a new option to the restore command, named -x, that makes it restore file extented attributes too. This is an optional behaviour and it's disabled by default. Signed-off-by: Filipe David Borba Manana --- V2: Added missing new line at end of error message. V3: Return with 0 when

Re: [PATCH v2] btrfs: add mount option to set commit interval

2013-08-03 Thread Hugo Mills
On Sat, Aug 03, 2013 at 07:39:01AM -0400, Mike Audia wrote: > > > Another newbie question is which version of the kernel do I need to > > > have in order to cleanly apply this patch?  I am finding that it fails > > > to apply to the current stable kernel code (as of now it is v3.10.4) > > > which m

Re: [PATCH v2] btrfs: add mount option to set commit interval

2013-08-03 Thread Mike Audia
> > Another newbie question is which version of the kernel do I need to > > have in order to cleanly apply this patch?  I am finding that it fails > > to apply to the current stable kernel code (as of now it is v3.10.4) > > which makes me think your patch has to be applied to a newer one?  Are > >

Re: Is the checkpoint interval adjustable?

2013-08-03 Thread Duncan
Mike Audia posted on Fri, 02 Aug 2013 16:58:42 -0400 as excerpted: >> From: David Sterba There were a few requests to tune the interval. This >> finally made me to finish the patch and will send it in a second. > > Thank you, David and to others who kindly replied to my post.  I will > try your p

Re: Which better: rsync or snapshot + rsync --delete

2013-08-03 Thread Bart Noordervliet
Hi Martin, though I can't determine which is 'better' for you because I don't know what your aims are, I can recommend 'btrfs snapshot' together with 'rsync --inplace'. It is 'better' in the sense of disk-usage, because only the modified parts of files take up space in your snapshots. That only ap