diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-01-26 13:54:04 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-01-26 13:54:04 +0000 |
commit | de1500705bc5dadfad41a2379d9e99462519f267 (patch) | |
tree | c1adbde1082ec4e6dc8a589d3d3a543d6052e765 /yarns/0030-basics.yarn | |
parent | ca69a5ced17d7fb7126f4ea7b82ee61d3c7de924 (diff) | |
download | obnam-de1500705bc5dadfad41a2379d9e99462519f267.tar.gz |
Convert user-old-node-size test to yarn
Diffstat (limited to 'yarns/0030-basics.yarn')
-rw-r--r-- | yarns/0030-basics.yarn | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/yarns/0030-basics.yarn b/yarns/0030-basics.yarn index a2ae12fa..34cad9d2 100644 --- a/yarns/0030-basics.yarn +++ b/yarns/0030-basics.yarn @@ -207,3 +207,22 @@ create one. Test that such timestamps work. WHEN user U backs up directory L to repository R AND user U restores their latest generation in repository R into X THEN L, restored to X, matches manifest M + +Change B-tree node size +----------------------- + +The setting for B-tree node size (`--node-size`) only affects new +B-trees. Thus, if we've backed up with one size, and change the +setting to a new size, the backup should still work. + + SCENARIO backup with changed B-tree node size + GIVEN 100kB of new data in directory L + AND user U sets configuration node-size to 65536 + WHEN user U backs up directory L to repository R + GIVEN 100Kb of new data in directory L + AND a manifest of directory L in M + AND user U sets configuration node-size to 4096 + WHEN user U backs up directory L to repository R + AND user U restores their latest generation in repository R into X + THEN L, restored to X, matches manifest M + AND user U can fsck the repository R |