From c624410180813d1bef16b581b421646198411392 Mon Sep 17 00:00:00 2001 From: justin Date: Sun, 22 Jan 2012 16:31:02 -0800 Subject: [PATCH] --- hammerscript/index.mdwn | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hammerscript/index.mdwn b/hammerscript/index.mdwn index b1b5ed9b..bc2e306c 100644 --- a/hammerscript/index.mdwn +++ b/hammerscript/index.mdwn @@ -79,7 +79,7 @@ HAMMER recipes, a guide for the impatient. (jcs) Are you impatient? Are you sold on Hammer and just want to try it out? Did you just delete something really, really important and need to get it back? Here's some simple use cases for Hammer to show just what you can do. -Simple case: I scrambled a file +*Simple case: I scrambled a file* The most simple case: you've scrambled a file. Maybe you rewrote several lines and saved it, or accidentally mashed the keyboard, but either way, the file is still present - just wrong. @@ -94,9 +94,13 @@ By default, the undo tool will output the previous version of a file with a note Other options exist, like using -i to iterate over all previous versions saved to disk, or way to generate a diff. What if you delete the file? It'll still work. -Help! I filled up the disk! +*Help! I filled up the disk!* -* Freeing disk space +File history takes up space on disk. Remember, the amount of history data isn't determined by the quantity of files, but rather how frequently they change. Those changes are what makes up filesystem history. It's possible to fill a disk because of that history, yet the df command will still report less than 100% usage. + +Each pseudo-file-system (PFS) on a Hammer volume is part of that volume's space. If a particular PFS is very busy, it can eat up all space on the disk and make every PFS unusable. You can prune older history entries from each volume using 'hammer prune /PFSname', or if you don't care about losing recent fine-grained history entries, 'hammer prune-everything'. That command may take a few minutes to complete. + +For a long-term fix, you may want to change the amount of history retained in any given PFS with 'hammer viconfig'. That same config controls what 'hammer prune' will remove. How to create a snapshot -- 2.41.0