Re: How does btrfs handle sudden shutdowns?

2012-11-08 Thread Alex
Michael Kjörling michael at kjorling.se writes: Can btrfs deal reasonably gracefully with sudden shutdowns? (I'm mainly thinking of power outages which lead to logical structure damage but not physical media damage.) Really rather well! We've had a sequence of power-cuts around here and

Re: How does btrfs handle sudden shutdowns?

2012-11-06 Thread Hugo Mills
On Tue, Nov 06, 2012 at 12:33:08PM +, Michael Kjörling wrote: Can btrfs deal reasonably gracefully with sudden shutdowns? (I'm mainly thinking of power outages which lead to logical structure damage but not physical media damage.) In theory (i.e. by the design of the FS), you should be

Re: How does btrfs handle sudden shutdowns?

2012-11-06 Thread Liu Bo
On Tue, Nov 06, 2012 at 12:33:08PM +, Michael Kjörling wrote: Can btrfs deal reasonably gracefully with sudden shutdowns? (I'm mainly thinking of power outages which lead to logical structure damage but not physical media damage.) AFAIK, yes, because btrfs is naturally COW supported,

Re: How does btrfs handle sudden shutdowns?

2012-11-06 Thread Michael Kjörling
On 6 Nov 2012 12:48 +, from h...@carfax.org.uk (Hugo Mills): There are also some caveats: while the FS should always be consistent, the latest transaction write may not have been completed, so you could potentially lose up to 30 seconds of writes to the FS from immediately before the

Re: How does btrfs handle sudden shutdowns?

2012-11-06 Thread Hugo Mills
On Tue, Nov 06, 2012 at 01:47:02PM +, Michael Kjörling wrote: On 6 Nov 2012 12:48 +, from h...@carfax.org.uk (Hugo Mills): There are also some caveats: while the FS should always be consistent, the latest transaction write may not have been completed, so you could potentially