fsck: Do backend-specific check before checking numcopies is satisfied.

This way, when a checksum check fails and the content is moved aside,
the numcopies check also warns if there are not enough copies.
This commit is contained in:
Joey Hess 2012-01-03 18:39:39 -04:00
parent 1e929c022d
commit a1aea174d7
2 changed files with 2 additions and 1 deletions

View file

@ -40,8 +40,8 @@ perform key file backend numcopies = check
-- order matters -- order matters
[ verifyLocationLog key file [ verifyLocationLog key file
, checkKeySize key , checkKeySize key
, checkKeyNumCopies key file numcopies
, checkBackend backend key , checkBackend backend key
, checkKeyNumCopies key file numcopies
] ]
{- To fsck a bare repository, fsck each key in the location log. -} {- To fsck a bare repository, fsck each key in the location log. -}

1
debian/changelog vendored
View file

@ -10,6 +10,7 @@ git-annex (3.20111232) UNRELEASED; urgency=low
dotdirs. dotdirs.
* Added quickcheck to build dependencies, and fail if test suite cannot be * Added quickcheck to build dependencies, and fail if test suite cannot be
built. built.
* fsck: Do backend-specific check before checking numcopies is satisfied.
-- Joey Hess <joeyh@debian.org> Mon, 02 Jan 2012 14:19:19 -0400 -- Joey Hess <joeyh@debian.org> Mon, 02 Jan 2012 14:19:19 -0400