All of lore.kernel.org
 help / color / mirror / Atom feed
* Possibility to have a "transient" snapshot?
@ 2014-12-05 18:27 James West
  2014-12-05 23:19 ` Duncan
  2014-12-06  5:12 ` Chris Murphy
  0 siblings, 2 replies; 5+ messages in thread
From: James West @ 2014-12-05 18:27 UTC (permalink / raw)
  To: linux-btrfs

This is just a random idea that popped through my mind while I was 
looking into hardening a filesystem against damage, might be 
impractical, but the idea seems promising, and well suited to a snapshot 
file system.

I'm sure some creative shell scripting could do something like this 
already, but I was more looking for something more bulletproof.

General idea would be to have a transient snapshot (optional quota 
support possibility here) on top of a base snapshot (possibly readonly). 
On system start/restart (whether clean or dirty), the transient snapshot 
would be flushed, and the system would restart the snapshot, basically 
restarting from the base snapshot. If desired, the transient snapshot 
could be promoted to a regular snapshot (say after a software upgrade). 
If desired, a different base snapshot could be selected (although I'm 
sure the file system would have to be restarted to do this)

 From a caching perspective, this could make a noticable performance 
difference, since if you're running in a transient snapshot, the file 
system can be _extremely_ lazy about committing changes to disk.

For the optional quote support I mentioned, on an unattended box, if the 
quota gets exceeded, a system reboot would probably fully correct the 
system. (Presumably a log file got out of control in that situation).

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-12-11  0:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-05 18:27 Possibility to have a "transient" snapshot? James West
2014-12-05 23:19 ` Duncan
2014-12-06  5:12 ` Chris Murphy
2014-12-10 19:52   ` James West
2014-12-11  0:58     ` Robert White

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.