webapp: When creating a repository on a removable drive, set core.fsyncobjectfiles, to help prevent data loss when the drive is yanked.
This commit is contained in:
parent
381637e4c8
commit
5c82c99c76
2 changed files with 6 additions and 0 deletions
|
@ -268,6 +268,10 @@ getFinishAddDriveR drive = make >>= redirect . EditNewRepositoryR
|
|||
liftIO $ createDirectoryIfMissing True dir
|
||||
isnew <- liftIO $ makeRepo dir True
|
||||
u <- liftIO $ initRepo isnew False dir $ Just remotename
|
||||
{- Removable drives are not reliable media, so enable fsync. -}
|
||||
liftIO $ inDir dir $
|
||||
setConfig (ConfigKey "core.fsyncobjectfiles")
|
||||
(boolConfig True)
|
||||
r <- combineRepos dir remotename
|
||||
liftAnnex $ setStandardGroup u TransferGroup
|
||||
liftAssistant $ syncRemote r
|
||||
|
|
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -2,6 +2,8 @@ git-annex (4.20130724) UNRELEASED; urgency=low
|
|||
|
||||
* Add status message to XMPP presence tag, to identify to others that
|
||||
the client is a git-annex client. Closes: #717652
|
||||
* webapp: When creating a repository on a removable drive, set
|
||||
core.fsyncobjectfiles, to help prevent data loss when the drive is yanked.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Tue, 23 Jul 2013 12:39:48 -0400
|
||||
|
||||
|
|
Loading…
Reference in a new issue