]> dgit.raspbian.org Git - git-annex.git/log
git-annex.git
23 months agoAdded a comment: Re: rclone remote config in special remote
matrss [Tue, 22 Oct 2024 14:13:53 +0000 (14:13 +0000)]
Added a comment: Re: rclone remote config in special remote

23 months agoresponse
Joey Hess [Mon, 21 Oct 2024 23:25:42 +0000 (19:25 -0400)]
response

23 months agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 21 Oct 2024 20:04:47 +0000 (16:04 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

23 months agoadjust: Allow any order of options when combining --hide-missing with options like...
Joey Hess [Mon, 21 Oct 2024 20:03:29 +0000 (16:03 -0400)]
adjust: Allow any order of options when combining --hide-missing with options like --unlock.

optparse-applicative made this hard, the naive implementation this had
before didn't let --hide-missing come after --unlock. And just adding
additional <|> with --hide-missing coming after --unlock didn't work
either. So need to get some options and then combine them.

23 months agobetter name for LinkPresentAdjustment
Joey Hess [Mon, 21 Oct 2024 19:42:01 +0000 (15:42 -0400)]
better name for LinkPresentAdjustment

23 months agocomment
Joey Hess [Mon, 21 Oct 2024 19:07:19 +0000 (15:07 -0400)]
comment

23 months agoresponse
Joey Hess [Mon, 21 Oct 2024 19:03:55 +0000 (15:03 -0400)]
response

23 months agoAdded a comment
matrss [Mon, 21 Oct 2024 16:32:18 +0000 (16:32 +0000)]
Added a comment

23 months agocomment
Joey Hess [Mon, 21 Oct 2024 16:08:56 +0000 (12:08 -0400)]
comment

23 months agocomment
Joey Hess [Mon, 21 Oct 2024 15:39:27 +0000 (11:39 -0400)]
comment

23 months agoremove stack-lts-18.13.yaml
Joey Hess [Mon, 21 Oct 2024 15:33:07 +0000 (11:33 -0400)]
remove stack-lts-18.13.yaml

windows autobuilder fixed to use stack.yaml

23 months agocomment
Joey Hess [Mon, 21 Oct 2024 15:32:02 +0000 (11:32 -0400)]
comment

23 months agocomment
Joey Hess [Mon, 21 Oct 2024 15:24:50 +0000 (11:24 -0400)]
comment

23 months agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 21 Oct 2024 14:41:51 +0000 (10:41 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

23 months agoresponse
Joey Hess [Mon, 21 Oct 2024 14:40:51 +0000 (10:40 -0400)]
response

23 months ago(no commit message)
git-annex@3fb6b72405b924a12d8319f01d0fdb908a3c551e [Mon, 21 Oct 2024 14:14:18 +0000 (14:14 +0000)]

23 months ago(no commit message)
git-annex@3fb6b72405b924a12d8319f01d0fdb908a3c551e [Mon, 21 Oct 2024 14:12:31 +0000 (14:12 +0000)]

23 months agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 21 Oct 2024 14:03:32 +0000 (10:03 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

23 months agop2phttp: Allow unauthenticated users to lock content by default
Joey Hess [Mon, 21 Oct 2024 14:02:12 +0000 (10:02 -0400)]
p2phttp: Allow unauthenticated users to lock content by default

* p2phttp: Allow unauthenticated users to lock content by default.
* p2phttp: Added --unauth-nolocking option to prevent unauthenticated
  users from locking content.

The rationalle for this is that locking is not really a write operation, so
makes sense to allow in a repository that only allows read-only access. Not
supporting locking in that situation will prevent the user from dropping
content from a special remote they control in cases where the other copy of
the content is on the p2phttp server.

Also, when p2phttp is configured to also allow authenticated access,
lockcontent was resulting in a password prompt for users who had no way to
authenticate. And there is no good way to distinguish between the two types
of users client side.

--unauth-nolocking anticipates that this might be abused, and seems better
than disabling unauthenticated access entirely if a server is being
attacked. It may be that rate limiting locking by IP address or similar
would be an effective measure in such a situation. Or just limiting the
number of locks by anonymous users that can be live at any one time. Since
the impact of such an DOS attempt is limited to preventing dropping content
from the server, it seems not a very appealing target anyway.

23 months ago(no commit message)
git-annex@3fb6b72405b924a12d8319f01d0fdb908a3c551e [Mon, 21 Oct 2024 13:10:52 +0000 (13:10 +0000)]

23 months agocomment
Joey Hess [Sat, 19 Oct 2024 21:53:28 +0000 (17:53 -0400)]
comment

23 months agotag
Joey Hess [Sat, 19 Oct 2024 21:13:26 +0000 (17:13 -0400)]
tag

23 months agoadd GITMANIFEST to parseKeyVariety
Joey Hess [Sat, 19 Oct 2024 21:12:23 +0000 (17:12 -0400)]
add GITMANIFEST to parseKeyVariety

git-remote-annex: Fix bug that prevented using it with external special
remotes, leading to protocol error messages involving "GITMANIFEST".

23 months agocomment
Joey Hess [Sat, 19 Oct 2024 20:43:35 +0000 (16:43 -0400)]
comment

23 months agoAdded a comment
yarikoptic [Fri, 18 Oct 2024 20:31:21 +0000 (20:31 +0000)]
Added a comment

23 months agoAdded a comment
matrss [Fri, 18 Oct 2024 16:56:46 +0000 (16:56 +0000)]
Added a comment

23 months agocomments
Joey Hess [Fri, 18 Oct 2024 16:04:48 +0000 (12:04 -0400)]
comments

23 months agoclarification on 403
Joey Hess [Fri, 18 Oct 2024 15:05:41 +0000 (11:05 -0400)]
clarification on 403

23 months agocomment
Joey Hess [Fri, 18 Oct 2024 14:28:49 +0000 (10:28 -0400)]
comment

23 months agofix build on windows
Joey Hess [Fri, 18 Oct 2024 14:17:07 +0000 (10:17 -0400)]
fix build on windows

Utility.OpenFile is posix only

23 months agoAdded a comment
yarikoptic [Fri, 18 Oct 2024 13:10:38 +0000 (13:10 +0000)]
Added a comment

23 months agoreport on windows FTBFS
yarikoptic [Fri, 18 Oct 2024 13:04:49 +0000 (13:04 +0000)]
report on windows FTBFS

23 months agoAdded a comment
yarikoptic [Fri, 18 Oct 2024 13:01:25 +0000 (13:01 +0000)]
Added a comment

23 months agocomment
Joey Hess [Fri, 18 Oct 2024 00:56:31 +0000 (20:56 -0400)]
comment

23 months agoAllow enabling the servant build flag with older versions of stm
Joey Hess [Fri, 18 Oct 2024 00:55:31 +0000 (20:55 -0400)]
Allow enabling the servant build flag with older versions of stm

Allowing building with ghc 9.0.2 (debian stable).

Updated patch covering all uses of writeTMVar.

23 months agoremoved
yarikoptic [Thu, 17 Oct 2024 22:08:32 +0000 (22:08 +0000)]
removed

23 months agoAdded a comment
yarikoptic [Thu, 17 Oct 2024 21:44:50 +0000 (21:44 +0000)]
Added a comment

23 months agoAdded a comment
yarikoptic [Thu, 17 Oct 2024 21:44:17 +0000 (21:44 +0000)]
Added a comment

23 months agoAdded a comment
yarikoptic [Thu, 17 Oct 2024 21:44:04 +0000 (21:44 +0000)]
Added a comment

23 months agoTag with project ID
mih [Thu, 17 Oct 2024 20:26:08 +0000 (20:26 +0000)]
Tag with project ID

23 months agoAdded a comment
yarikoptic [Thu, 17 Oct 2024 18:37:57 +0000 (18:37 +0000)]
Added a comment

23 months agocomment
Joey Hess [Thu, 17 Oct 2024 18:05:20 +0000 (14:05 -0400)]
comment

23 months agoAllow enabling the servant build flag with older versions of stm
Joey Hess [Thu, 17 Oct 2024 17:44:38 +0000 (13:44 -0400)]
Allow enabling the servant build flag with older versions of stm

Allowing building with ghc 9.0.2 (debian stable).

23 months agoAdded a comment
yarikoptic [Thu, 17 Oct 2024 17:04:07 +0000 (17:04 +0000)]
Added a comment

23 months agop2phttp combining unauth and auth options
Joey Hess [Thu, 17 Oct 2024 15:10:28 +0000 (11:10 -0400)]
p2phttp combining unauth and auth options

p2phttp: Support serving unauthenticated users while requesting
authentication for operations that need it. Eg, --unauth-readonly can be
combined with --authenv.

Drop locking currently needs authentication so it will prompt for that.
That still needs to be addressed somehow.

23 months agoresponse
Joey Hess [Thu, 17 Oct 2024 14:10:26 +0000 (10:10 -0400)]
response

23 months agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Thu, 17 Oct 2024 14:06:25 +0000 (10:06 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

23 months agoadd IMN7 to projects and tag a relevant issue
Joey Hess [Thu, 17 Oct 2024 14:06:08 +0000 (10:06 -0400)]
add IMN7 to projects and tag a relevant issue

23 months agocomment
Joey Hess [Thu, 17 Oct 2024 14:01:31 +0000 (10:01 -0400)]
comment

23 months agoquestion about Servant
yarikoptic [Thu, 17 Oct 2024 13:57:43 +0000 (13:57 +0000)]
question about Servant

23 months ago(no commit message)
matrss [Thu, 17 Oct 2024 09:39:56 +0000 (09:39 +0000)]

23 months agoMake VURL a proper list item
matrss [Thu, 17 Oct 2024 09:18:04 +0000 (09:18 +0000)]
Make VURL a proper list item

23 months agoinitial report on divergence in behavior on ACL
yarikoptic [Wed, 16 Oct 2024 19:13:08 +0000 (19:13 +0000)]
initial report on divergence in behavior on ACL

23 months agoAdded a comment
yarikoptic [Wed, 16 Oct 2024 18:58:04 +0000 (18:58 +0000)]
Added a comment

23 months agomake freeze/thaw relative paths
yarikoptic [Wed, 16 Oct 2024 18:51:45 +0000 (18:51 +0000)]
make freeze/thaw relative paths

23 months agoinitial report on freeze/thaw exit code ignorance
yarikoptic [Wed, 16 Oct 2024 18:34:06 +0000 (18:34 +0000)]
initial report on freeze/thaw exit code ignorance

23 months agoAdded a comment
matrss [Wed, 16 Oct 2024 12:09:02 +0000 (12:09 +0000)]
Added a comment

23 months agostreaming uploads
Joey Hess [Tue, 15 Oct 2024 20:02:19 +0000 (16:02 -0400)]
streaming uploads

23 months agoinitial report on not all files being saved
yarikoptic [Tue, 15 Oct 2024 18:15:16 +0000 (18:15 +0000)]
initial report on not all files being saved

23 months agoremove change that was accidentially committed
Joey Hess [Tue, 15 Oct 2024 17:30:52 +0000 (13:30 -0400)]
remove change that was accidentially committed

23 months agocomment
Joey Hess [Tue, 15 Oct 2024 17:27:27 +0000 (13:27 -0400)]
comment

23 months agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 15 Oct 2024 16:27:01 +0000 (12:27 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

23 months agoworking in streamproxy branch
Joey Hess [Tue, 15 Oct 2024 16:26:53 +0000 (12:26 -0400)]
working in streamproxy branch

23 months agoimplement openFileBeingWritten
Joey Hess [Tue, 15 Oct 2024 15:56:42 +0000 (11:56 -0400)]
implement openFileBeingWritten

This bypasses the usual haskell file locking used to prevent opening a
file for read that is being written to.

This is unfortunately a bit of a hack. But it seems fairly unlikely to
get broken by changes to ghc. I hope. Using fdToHandle' will also work.

This does not work on windows because it uses openFd from posix. It
would probably be possible to implement it for windows too, just opening
the FD using the Win32 library instead. However, whether windows will
allow reading from a file that is also being written to I don't know,
and since in the git-annex case the writer could be another process (eg
external special remote), that might be doing its own locking in
windows, that seems a can of worms I'd prefer not to open.

23 months agoupdate
Joey Hess [Tue, 15 Oct 2024 14:31:42 +0000 (10:31 -0400)]
update

23 months agoAdded a comment
matrss [Mon, 14 Oct 2024 12:21:54 +0000 (12:21 +0000)]
Added a comment

23 months agoAdded a comment
matrss [Mon, 14 Oct 2024 12:01:40 +0000 (12:01 +0000)]
Added a comment

23 months agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Sat, 12 Oct 2024 14:57:52 +0000 (10:57 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

23 months agoAdded a comment: [FR] Remote Settings for All Clones
Spencer [Wed, 9 Oct 2024 23:10:17 +0000 (23:10 +0000)]
Added a comment: [FR] Remote Settings for All Clones

23 months agoAdded a comment: Support for importtree
annex@9cc004f218c318a28099ff2645959be0fcbc6d94 [Wed, 9 Oct 2024 06:42:40 +0000 (06:42 +0000)]
Added a comment: Support for importtree

23 months ago(no commit message)
matrss [Tue, 8 Oct 2024 07:22:39 +0000 (07:22 +0000)]

23 months ago(no commit message)
Spencer [Tue, 8 Oct 2024 03:58:55 +0000 (03:58 +0000)]

23 months ago(no commit message)
Spencer [Tue, 8 Oct 2024 03:31:05 +0000 (03:31 +0000)]

23 months agoCorrection: rclonelayout=`lower` is not synonymous with the directory remote, `direct...
Spencer [Mon, 7 Oct 2024 21:26:42 +0000 (21:26 +0000)]
Correction: rclonelayout=`lower` is not synonymous with the directory remote, `directory` is.

23 months agoAdded a comment: How to Clone?
Spencer [Mon, 7 Oct 2024 20:00:24 +0000 (20:00 +0000)]
Added a comment: How to Clone?

23 months agotried a blind alley on streaming special remote download via proxy
Joey Hess [Mon, 7 Oct 2024 17:54:04 +0000 (13:54 -0400)]
tried a blind alley on streaming special remote download via proxy

This didn't work. In case I want to revisit, here's what I tried.

diff --git a/Annex/Proxy.hs b/Annex/Proxy.hs
index 48222872c1..e4e526d3dd 100644
--- a/Annex/Proxy.hs
+++ b/Annex/Proxy.hs
@@ -26,16 +26,21 @@ import Logs.UUID
 import Logs.Location
 import Utility.Tmp.Dir
 import Utility.Metered
+import Utility.ThreadScheduler
+import Utility.OpenFd
 import Git.Types
 import qualified Database.Export as Export

 import Control.Concurrent.STM
 import Control.Concurrent.Async
+import Control.Concurrent.MVar
 import qualified Data.ByteString as B
+import qualified Data.ByteString as BS
 import qualified Data.ByteString.Lazy as L
 import qualified System.FilePath.ByteString as P
 import qualified Data.Map as M
 import qualified Data.Set as S
+import System.IO.Unsafe

 proxyRemoteSide :: ProtocolVersion -> Bypass -> Remote -> Annex RemoteSide
 proxyRemoteSide clientmaxversion bypass r
@@ -240,21 +245,99 @@ proxySpecialRemote protoversion r ihdl ohdl owaitv oclosedv mexportdb = go
  writeVerifyChunk iv h b
  storetofile iv h (n - fromIntegral (B.length b)) bs

- proxyget offset af k = withproxytmpfile k $ \tmpfile -> do
+ proxyget offset af k = withproxytmpfile k $ \tmpfile ->
+ let retrieve = tryNonAsync $ Remote.retrieveKeyFile r k af
+ (fromRawFilePath tmpfile) nullMeterUpdate vc
+ in case fromKey keySize k of
+ Just size | size > 0 -> do
+ cancelv <- liftIO newEmptyMVar
+ donev <- liftIO newEmptyMVar
+ streamer <- liftIO $ async $
+ streamdata offset tmpfile size cancelv donev
+ retrieve >>= \case
+ Right _ -> liftIO $ do
+ putMVar donev ()
+ wait streamer
+ Left err -> liftIO $ do
+ putMVar cancelv ()
+ wait streamer
+ propagateerror err
+ _ -> retrieve >>= \case
+ Right _ -> liftIO $ senddata offset tmpfile
+ Left err -> liftIO $ propagateerror err
+   where
  -- Don't verify the content from the remote,
  -- because the client will do its own verification.
- let vc = Remote.NoVerify
- tryNonAsync (Remote.retrieveKeyFile r k af (fromRawFilePath tmpfile) nullMeterUpdate vc) >>= \case
- Right _ -> liftIO $ senddata offset tmpfile
- Left err -> liftIO $ propagateerror err
+ vc = Remote.NoVerify

+ streamdata (Offset offset) f size cancelv donev = do
+ sendlen offset size
+ waitforfile
+ x <- tryNonAsync $ do
+ fd <- openFdWithMode f ReadOnly Nothing defaultFileFlags
+ h <- fdToHandle fd
+ hSeek h AbsoluteSeek offset
+ senddata' h (getcontents size)
+ case x of
+ Left err -> do
+ throwM err
+ Right res -> return res
+   where
+ -- The file doesn't exist at the start.
+ -- Wait for some data to be written to it as well,
+ -- in case an empty file is first created and then
+ -- overwritten. When there is an offset, wait for
+ -- the file to get that large. Note that this is not used
+ -- when the size is 0.
+ waitforfile = tryNonAsync (fromIntegral <$> getFileSize f) >>= \case
+ Right sz | sz > 0 && sz >= offset -> return ()
+ _ -> ifM (isEmptyMVar cancelv)
+ ( do
+ threadDelaySeconds (Seconds 1)
+ waitforfile
+ , do
+ return ()
+ )
+
+ getcontents n h = unsafeInterleaveIO $ do
+ isdone <- isEmptyMVar donev <||> isEmptyMVar cancelv
+ c <- BS.hGet h defaultChunkSize
+ let n' = n - fromIntegral (BS.length c)
+ let c' = L.fromChunks [BS.take (fromIntegral n) c]
+ if BS.null c
+ then if isdone
+ then return mempty
+ else do
+ -- Wait for more data to be
+ -- written to the file.
+ threadDelaySeconds (Seconds 1)
+ getcontents n h
+ else if n' > 0
+ then do
+ -- unsafeInterleaveIO causes
+ -- this to be deferred until
+ -- data is read from the lazy
+ -- ByteString.
+ cs <- getcontents n' h
+ return $ L.append c' cs
+ else return c'
+
  senddata (Offset offset) f = do
  size <- fromIntegral <$> getFileSize f
- let n = max 0 (size - offset)
- sendmessage $ DATA (Len n)
+ sendlen offset size
  withBinaryFile (fromRawFilePath f) ReadMode $ \h -> do
  hSeek h AbsoluteSeek offset
- sendbs =<< L.hGetContents h
+ senddata' h L.hGetContents
+
+ senddata' h getcontents = do
+ sendbs =<< getcontents h
  -- Important to keep the handle open until
  -- the client responds. The bytestring
  -- could still be lazily streaming out to
@@ -272,6 +355,11 @@ proxySpecialRemote protoversion r ihdl ohdl owaitv oclosedv mexportdb = go
  Just FAILURE -> return ()
  Just _ -> giveup "protocol error"
  Nothing -> return ()
+
+ sendlen offset size = do
+ let n = max 0 (size - offset)
+ sendmessage $ DATA (Len n)
+

 {- Check if this repository can proxy for a specified remote uuid,
  - and if so enable proxying for it. -}

23 months agoadditional question of spaces in URL
Spencer [Mon, 7 Oct 2024 19:10:19 +0000 (19:10 +0000)]
additional question of spaces in URL

23 months ago(no commit message)
Spencer [Mon, 7 Oct 2024 19:02:17 +0000 (19:02 +0000)]

23 months ago(no commit message)
matrss [Mon, 7 Oct 2024 14:40:19 +0000 (14:40 +0000)]

23 months agoAdded a comment
matrss [Mon, 7 Oct 2024 14:12:23 +0000 (14:12 +0000)]
Added a comment

23 months agoupdate
Joey Hess [Mon, 7 Oct 2024 14:06:12 +0000 (10:06 -0400)]
update

23 months ago(no commit message)
matrss [Mon, 7 Oct 2024 13:59:56 +0000 (13:59 +0000)]

23 months agoAdded a comment
sng@353ca358075d9aa328f60a5439a3cee10f8301fe [Sun, 6 Oct 2024 21:42:13 +0000 (21:42 +0000)]
Added a comment

23 months ago(no commit message)
matrss [Wed, 2 Oct 2024 15:07:54 +0000 (15:07 +0000)]

23 months ago(no commit message)
matrss [Wed, 2 Oct 2024 14:51:58 +0000 (14:51 +0000)]

23 months ago(no commit message)
matrss [Wed, 2 Oct 2024 14:42:37 +0000 (14:42 +0000)]

23 months agofiling an issue on yt-dlp not used for some reason
yarikoptic [Tue, 1 Oct 2024 21:01:40 +0000 (21:01 +0000)]
filing an issue on yt-dlp not used for some reason

23 months agoadd news item for git-annex 10.20240927
Joey Hess [Mon, 30 Sep 2024 23:16:06 +0000 (19:16 -0400)]
add news item for git-annex 10.20240927

23 months agoreleasing package git-annex version 10.20240927
Joey Hess [Mon, 30 Sep 2024 23:15:57 +0000 (19:15 -0400)]
releasing package git-annex version 10.20240927

23 months agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 30 Sep 2024 21:36:45 +0000 (17:36 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

23 months agofix build with old random
Joey Hess [Mon, 30 Sep 2024 21:36:19 +0000 (17:36 -0400)]
fix build with old random

getStdGen used to be an IO not a MonadIO action

23 months ago(no commit message)
brendan.ward@a2e11ad27f6b2fa2c556aea6811496e0d95dd0da [Mon, 30 Sep 2024 20:54:14 +0000 (20:54 +0000)]

23 months agofix build with random-1.2
Joey Hess [Mon, 30 Sep 2024 18:56:06 +0000 (14:56 -0400)]
fix build with random-1.2

getStdGen worked with that version but initStdGen is newer. For our
purposes, they are equivilant.

23 months agofix build with old base
Joey Hess [Mon, 30 Sep 2024 15:02:08 +0000 (11:02 -0400)]
fix build with old base

i386ancient has a base too old for NE.singleton

23 months agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Fri, 27 Sep 2024 19:31:31 +0000 (15:31 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

23 months agoRevert "remove stack-lts-18.13.yaml"
Joey Hess [Fri, 27 Sep 2024 19:30:51 +0000 (15:30 -0400)]
Revert "remove stack-lts-18.13.yaml"

This reverts commit b0546e8bde5a46767a405fbbc7a3907127533de8.

https://github.com/datalad/git-annex/issues/204 is still not fixed yet

23 months agoupdate version for release
Joey Hess [Fri, 27 Sep 2024 14:01:44 +0000 (10:01 -0400)]
update version for release

23 months agoremoved
mike@2d6d71f56ce2a992244350475251df87c26fe351 [Fri, 27 Sep 2024 12:18:59 +0000 (12:18 +0000)]
removed

23 months agoAdded a comment: corruption using git-annex-remote-rclone
mike@2d6d71f56ce2a992244350475251df87c26fe351 [Fri, 27 Sep 2024 12:18:41 +0000 (12:18 +0000)]
Added a comment: corruption using git-annex-remote-rclone

23 months agoAdded a comment: corruption using git-annex-remote-rclone
mike@2d6d71f56ce2a992244350475251df87c26fe351 [Fri, 27 Sep 2024 07:39:06 +0000 (07:39 +0000)]
Added a comment: corruption using git-annex-remote-rclone