Commit Graph

16 Commits

Author SHA1 Message Date
Alexander Neumann eb73182fcf Rework index decode and handling old format 2015-10-12 20:53:07 +02:00
Alexander Neumann 1020e9c3af Check for data blobs with null ID, improve errors 2015-10-11 20:58:57 +02:00
Alexander Neumann 7db2369081 Shorten error message for tree errors 2015-10-11 20:22:52 +02:00
Alexander Neumann db85ab8aa0 Use the correct channel for sending errors 2015-10-11 19:13:45 +02:00
Alexander Neumann 86c8328f62 Handle null subtree IDs 2015-10-11 19:13:35 +02:00
Alexander Neumann 72fcd00859 Check subtrees with null ID 2015-10-11 18:46:26 +02:00
Alexander Neumann 8a7873ee3a Handle invalid subtree IDs 2015-10-11 18:45:16 +02:00
Alexander Neumann a0bad1695c Remove comment 2015-09-05 18:41:58 +02:00
Alexander Neumann 9753c37e31 Remove dead code
This removes dead code (functions that aren't called) detected with
`deadcode`.
2015-07-26 14:56:34 +02:00
Alexander Neumann 5cdcc99eba Use array instead of hash for backend.ID
Since backend.ID is always a slice of constant length, use an array
instead of a slice. Mostly, arrays behave as slices, except that an
array cannot be nil, so use `*backend.ID` insteaf of `backend.ID` in
places where the absence of an ID is possible (e.g. for the Subtree of a
Node, which may not present when the node is a file node).

This change allows to directly use backend.ID as the the key for a map,
so that arbitrary data structures (e.g. a Set implemented as a
map[backend.ID]struct{}) can easily be formed.
2015-07-25 18:01:57 +02:00
Alexander Neumann d36f07c6eb checker: add option to remove orphaned packs 2015-07-12 17:14:10 +02:00
Alexander Neumann 5108d91bc7 checker: check trees and blobs in parallel 2015-07-12 16:50:12 +02:00
Alexander Neumann af02c323cd checker: use channel of error instead of slice 2015-07-12 01:46:10 +02:00
Alexander Neumann 7e6174126f checker: run Packs() in parallel 2015-07-12 00:25:42 +02:00
Alexander Neumann 04f172b38d checker: Add checker and tests 2015-07-11 16:27:41 +02:00
Alexander Neumann 54c4c29a89 Add checker and command 'check' to replace 'fsck' 2015-07-11 16:27:38 +02:00