fsck: Failed to honor annex.diskreserve when checking a remote.
This commit is contained in:
parent
4407df6314
commit
abd66c7089
3 changed files with 4 additions and 3 deletions
|
@ -379,7 +379,7 @@ withTmp key action = do
|
||||||
- when doing concurrent downloads.
|
- when doing concurrent downloads.
|
||||||
-}
|
-}
|
||||||
checkDiskSpace :: Maybe FilePath -> Key -> Integer -> Bool -> Annex Bool
|
checkDiskSpace :: Maybe FilePath -> Key -> Integer -> Bool -> Annex Bool
|
||||||
checkDiskSpace destination key alreadythere samefilesystem = ifM (Annex.getState Annex.force)
|
checkDiskSpace destdir key alreadythere samefilesystem = ifM (Annex.getState Annex.force)
|
||||||
( return True
|
( return True
|
||||||
, do
|
, do
|
||||||
-- We can't get inprogress and free at the same
|
-- We can't get inprogress and free at the same
|
||||||
|
@ -403,7 +403,7 @@ checkDiskSpace destination key alreadythere samefilesystem = ifM (Annex.getState
|
||||||
_ -> return True
|
_ -> return True
|
||||||
)
|
)
|
||||||
where
|
where
|
||||||
dir = maybe (fromRepo gitAnnexDir) return destination
|
dir = maybe (fromRepo gitAnnexDir) return destdir
|
||||||
needmorespace n =
|
needmorespace n =
|
||||||
warning $ "not enough free space, need " ++
|
warning $ "not enough free space, need " ++
|
||||||
roughSize storageUnits True n ++
|
roughSize storageUnits True n ++
|
||||||
|
|
|
@ -162,7 +162,7 @@ performRemote key file backend numcopies remote =
|
||||||
let cleanup = liftIO $ catchIO (removeFile tmp) (const noop)
|
let cleanup = liftIO $ catchIO (removeFile tmp) (const noop)
|
||||||
cleanup
|
cleanup
|
||||||
cleanup `after` a tmp
|
cleanup `after` a tmp
|
||||||
getfile tmp = ifM (checkDiskSpace (Just tmp) key 0 True)
|
getfile tmp = ifM (checkDiskSpace (Just (takeDirectory tmp)) key 0 True)
|
||||||
( ifM (Remote.retrieveKeyFileCheap remote key (Just file) tmp)
|
( ifM (Remote.retrieveKeyFileCheap remote key (Just file) tmp)
|
||||||
( return (Just True)
|
( return (Just True)
|
||||||
, ifM (Annex.getState Annex.fast)
|
, ifM (Annex.getState Annex.fast)
|
||||||
|
|
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -3,6 +3,7 @@ git-annex (5.20151209) UNRELEASED; urgency=medium
|
||||||
* Add S3 features to git-annex version output.
|
* Add S3 features to git-annex version output.
|
||||||
* webdav: When testing the WebDAV server, send a file with content.
|
* webdav: When testing the WebDAV server, send a file with content.
|
||||||
The empty file it was sending tickled bugs in some php WebDAV server.
|
The empty file it was sending tickled bugs in some php WebDAV server.
|
||||||
|
* fsck: Failed to honor annex.diskreserve when checking a remote.
|
||||||
|
|
||||||
-- Joey Hess <id@joeyh.name> Thu, 10 Dec 2015 11:39:34 -0400
|
-- Joey Hess <id@joeyh.name> Thu, 10 Dec 2015 11:39:34 -0400
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue