init: probe if sqlite works
authorJoey Hess <joeyh@joeyh.name>
Wed, 17 Aug 2022 17:07:14 +0000 (13:07 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 17 Aug 2022 17:12:26 +0000 (13:12 -0400)
commitb8018126601681cbfe7ac9d8a58a7be5b0943768
tree394090d0e07cb61c322d25697c2fb2a035f55d30
parentfc2d10d2cd309b268525551eceea4ecb9ef2b11c
init: probe if sqlite works

Help the user get annex.dbdir configured when their filesystem is not
one that sqlite works on.

The change in Database.Handle makes an error from sqlite not be ignored
besides being displayed, which it was before. I can't see any reason
git-annex would want to ignore these errors.

I chose to use the fsck database rather than the keys database because
opening the keys database populates it, and see commit
b3c4579c7907147a496bdf2c73b42238d8b239d6.

The placement of the call to checkSqliteWorks inside checkInitializeAllowed
avoids annex.uuid getting set before it's called.

Sponsored-by: Dartmouth College's Datalad project
Annex/Init.hs
Database/Handle.hs
doc/bugs/crippled_filesystem__58___SQLite3_returned_ErrorBusy.mdwn
doc/bugs/crippled_filesystem__58___SQLite3_returned_ErrorBusy/comment_13_baafac7f80ff4b7cc4cf078e4ab969c3._comment [new file with mode: 0644]