Commit graph

349 commits

Author SHA1 Message Date
Josh Hansen
b7aa052fda example_output -> snapshot.output 2023-09-30 21:33:00 -07:00
Josh Hansen
55f9fcf3b7 test.sh -> unit-test.sh 2023-09-30 21:32:26 -07:00
Josh Hansen
013d10b383 Roadmap update 2023-09-30 17:53:04 -07:00
Josh Hansen
f7d8760dbf Roadmap work 2023-09-30 15:50:35 -07:00
Josh Hansen
47b83ee57c Snapshot test both relative and absolute path based invocations
Also output comments
2023-09-30 15:49:38 -07:00
Josh Hansen
5b89b46145 Prep better for absolute paths 2023-09-30 02:12:56 -07:00
Josh Hansen
945c423694 prefix paths in example.sh 2023-09-30 01:02:49 -07:00
Josh Hansen
4a8b72af74 sh -> bash 2023-09-30 00:57:24 -07:00
Josh Hansen
f1b4dd50a5 Roadmap update 2023-09-29 23:31:38 -07:00
Josh Hansen
f0574a563b Try to test get which has been buggy lately.... 2023-09-29 23:30:36 -07:00
Josh Hansen
09b8e7475d touch /status / restore / status on btrfs example 2023-09-29 23:20:22 -07:00
Josh Hansen
393278362e Disable / remove printlns 2023-09-29 23:17:59 -07:00
Josh Hansen
b0fcb0fe8e Really truly fix status 2023-09-29 22:24:54 -07:00
Josh Hansen
e730a35c2d Attempt to fix status iterator alignment issues; bugs remain 2023-09-29 11:04:16 -07:00
Josh Hansen
da30513add Fix log and add to example.sh / example_output
`status` bug remains
2023-09-28 14:50:38 -07:00
Josh Hansen
9d2650d0a5 Add restore to example.sh btrfs commands; reveals likely bug in status 2023-09-28 13:45:47 -07:00
Josh Hansen
9a8db8c3d5 Finish restore impl 2023-09-28 13:44:56 -07:00
Josh Hansen
75eab354c8 Almost fully implement restore 2023-09-28 00:12:49 -07:00
Josh Hansen
b99f8d50fc Update roadmap 2023-09-27 23:26:57 -07:00
Josh Hansen
1d6cff3bbe Framework for restore 2023-09-27 23:26:51 -07:00
Josh Hansen
0603e0b423 Run against an ext4 image; run main commands against btrfs too
This way we test both with- and without-btrfs support
2023-09-27 16:45:23 -07:00
Josh Hansen
a50f90b280 Extract functions 2023-09-27 16:12:06 -07:00
Josh Hansen
c76f88bd43 Only set owner/group upon snapshot dir creation 2023-09-27 15:22:41 -07:00
Josh Hansen
6399aabb66 Reflect btrfs additions in example_output, now working properly 2023-09-27 14:25:27 -07:00
Josh Hansen
2c89984b50 Quiet cargo build 2023-09-27 14:25:08 -07:00
Josh Hansen
cc5f6e3dd0 Disable btrfs-specific message on create 2023-09-27 14:25:01 -07:00
Josh Hansen
a6fbbcd202 Reflect ghee invocation change in snapshot 2023-09-27 14:22:36 -07:00
Josh Hansen
1b44d5150c Initialize buffer properly; get things working 2023-09-27 14:19:29 -07:00
Josh Hansen
26c2883800 Status after olive 2023-09-27 14:09:14 -07:00
Josh Hansen
d250ed37b1 Simplify file read 2023-09-27 14:08:52 -07:00
Josh Hansen
9a17941bdc Account for directories 2023-09-27 14:08:30 -07:00
Josh Hansen
4e8dcbbc06 Extract file hashing 2023-09-27 13:46:30 -07:00
Josh Hansen
96b0a72ed0 Propagate args to cargo build invocation 2023-09-27 13:25:43 -07:00
Josh Hansen
a3cde3da81 Only create snapshots dir if needed 2023-09-27 13:25:32 -07:00
Josh Hansen
c43ef9b43c BTRFS stuff in example.sh; not all working yet 2023-09-27 12:35:56 -07:00
Josh Hansen
2e7c57114a Restore "re-relativized" path output
Simple relative paths were .e.g ./olive (within table "pizza") rather than ./pizza/olive. We're calling this latter form re-relativized.
2023-09-27 11:57:03 -07:00
Josh Hansen
f0482d0e08 Don't absolutize needlessly (containing_table_info does it) 2023-09-27 11:55:16 -07:00
Josh Hansen
4bde4d462e Seemingly get status working 2023-09-27 11:48:38 -07:00
Josh Hansen
713f344657 Use WalkDir iteration directly for simplicity; avoids mismatch of snapshot tableinfo 2023-09-27 11:21:07 -07:00
Josh Hansen
3f78882ec6 Good progress on status; bugs remain when running in presence of snapshot 2023-09-27 00:12:20 -07:00
Josh Hansen
3aa5bcef71 Roadmap work 2023-09-26 22:22:57 -07:00
Josh Hansen
91296166a5 Clean up status output, such as it is; add to example.sh 2023-09-26 22:22:50 -07:00
Josh Hansen
7a95a15e4f Standardize on absolute paths in TableInfo, thus fulfilling the ancient prophecy that the example output would be preserved. 2023-09-26 22:14:35 -07:00
Josh Hansen
8b1af42ea3 Simplify 2023-09-26 21:38:13 -07:00
Josh Hansen
32266b6e13 Make get output look good again 2023-09-26 20:14:39 -07:00
Josh Hansen
ce226e3565 Coerce everything _except_ some path displays into working 2023-09-26 20:01:53 -07:00
Josh Hansen
48870b7e3a Relocate PathBufs 2023-09-26 19:21:46 -07:00
Josh Hansen
d0c8990156 Introduce PathBufs, try some stuff 2023-09-26 19:15:28 -07:00
Josh Hansen
ffc1f526ed Restore idx output 2023-09-26 17:42:00 -07:00
Josh Hansen
c88bc7a780 Fix remaining tests 2023-09-26 17:35:15 -07:00