Commit graph

26919 commits

Author SHA1 Message Date
jonan
60d9cb69ea 2016-02-15 09:37:52 +00:00
Joey Hess
6702f5a9c6
fix typo 2016-02-14 19:31:40 -04:00
Joey Hess
2ce5b6cdf2
Merge branch 'master' of ssh://git-annex.branchable.com 2016-02-14 18:03:31 -04:00
Joey Hess
49215d68ae
devblog 2016-02-14 18:01:35 -04:00
Joey Hess
885e54df0a
fsck: Populate unlocked files in v6 repositories whose content is present in annex/objects but didn't reach the work tree.
This also handles fixing up after cf260d9a15
2016-02-14 17:27:50 -04:00
Joey Hess
675321264f
fsck: Detect and fix missing associated file mappings in v6 repositories.
This also handles fixing up after the bad data written by
cf260d9a15.
2016-02-14 17:09:54 -04:00
Joey Hess
74bbdfa888
files with only 1 linkCount may still be unlocked
When on crippled filesystem, or without annex.thin set.
2016-02-14 17:04:09 -04:00
Joey Hess
5b51db7645
clean up 2016-02-14 16:52:43 -04:00
Joey Hess
cf260d9a15
Fix storing of filenames of v6 unlocked files when the filename is not representable in the current locale.
This is a mostly backwards compatable change. I broke backwards
compatability in the case where a filename starts with double-quote.
That seems likely to be very rare, and v6 unlocked files are a new feature
anyway, and fsck needs to fix missing associated file mappings anyway. So,
I decided that is good enough.

The encoding used is to just show the String when it contains a problem
character. While that adds some overhead to addAssociatedFile and
removeAssociatedFile, those are not called very often. This approach has
minimal decode overhead, because most filenames won't be encoded that way,
and it only has to look for the leading double-quote to skip the expensive
read. So, getAssociatedFiles remains fast.

I did consider using ByteString instead, but getting a FilePath converted
with all chars intact, even surrigates, is difficult, and it looks like
instance PersistField ByteString uses Text, which I don't trust for problem
encoded data. It would probably be slower too, and it would make the
database less easy to inspect manually.
2016-02-14 16:37:25 -04:00
jody.frankowski@46af27a91b08450190f627a8fba772a61e22719f
1db3746ed7 Added a comment 2016-02-14 20:31:49 +00:00
Joey Hess
613d6056f5
better types 2016-02-14 16:26:39 -04:00
Joey Hess
4100dd9733
close 2016-02-14 16:26:27 -04:00
Joey Hess
eebf42eaaa
close 2016-02-14 15:16:36 -04:00
Joey Hess
9d123645ee
comment 2016-02-14 15:14:02 -04:00
Joey Hess
5e7b53a815
Merge branch 'master' of ssh://git-annex.branchable.com 2016-02-14 15:12:53 -04:00
Joey Hess
9a6afb846f
fixed a couple days ago 2016-02-14 15:11:05 -04:00
Joey Hess
0f18636c8a
Work around problem with concurrent-output when in a non-unicode locale by avoiding use of it in such a locale.
Instead -J will behave as if it was built without concurrent-output support
in this situation. Ie, it will be mostly quiet, except when there's an
error.

Note that it's not a problem for a filename to contain invalid utf-8 when
in a utf-8 locale. That is handled ok by concurrent-output. It's only
displaying unicode characters in a non-unicode locale that doesn't work.
2016-02-14 15:02:42 -04:00
jody.frankowski@46af27a91b08450190f627a8fba772a61e22719f
6983f0a541 2016-02-14 17:46:39 +00:00
emanuele.olivetti@47d88ed185b03191e25329caa6fabc2efb3118b2
9597a21979 Added a comment 2016-02-13 22:27:57 +00:00
emanuele.olivetti@47d88ed185b03191e25329caa6fabc2efb3118b2
a4745df82e 2016-02-13 00:29:58 +00:00
https://me.yahoo.com/a/EbvxpTI_xP9Aod7Mg4cwGhgjrCrdM5s-#7c0f4
1e772a62b4 2016-02-12 22:39:04 +00:00
Gus
b988b526f7 Added a comment: Thanks 2016-02-12 21:47:53 +00:00
Joey Hess
d3130930db
avoid --batch crashing if a remote fails to be accessed 2016-02-12 16:48:03 -04:00
Joey Hess
cc4d3e3d45
checkpresentkey: Allow to be run without an explicit remote and add --batch
* checkpresentkey: Allow to be run without an explicit remote.
* checkpresentkey: Added --batch.
2016-02-12 16:43:51 -04:00
Joey Hess
84d657312e
comment 2016-02-12 14:36:00 -04:00
Joey Hess
c0a34d909d
Merge branch 'master' of ssh://git-annex.branchable.com 2016-02-12 14:21:25 -04:00
Joey Hess
9df13e73ae
if keys database cannot be opened due to permissions, ignore
This lets readonly repos be used. If a repo is readonly, we can ignore the
keys database, because nothing that we can do will change the state of the
repo anyway.
2016-02-12 14:16:35 -04:00
Joey Hess
0983f136b8
create directory for transfer lock file, and catch perm error
Before, the call to mkProgressUpdater created the directory as a
side-effect, but since that ignored failure to create it, this led to
a "does not exist" exception when the transfer lock file was created,
rather than a permissions error.

So, make sure the directory exists before trying to lock the file in it.

When a PermissionDenied exception is caught, skip making the transfer lock.
This lets downloads from readonly remotes happen.

If an upload is being tried, and the lock file can't be written due to
permissions, then probably the actual transfer will fail for the same
reason, so I think it's ok that it continues w/o taking the lock in that
case.
2016-02-12 14:11:25 -04:00
Joey Hess
1ec91f0c44
close 2016-02-12 13:41:50 -04:00
Gus
c96f4c4cd8 2016-02-12 16:31:39 +00:00
Joey Hess
c4e5c6b346
add densho 2016-02-12 12:21:04 -04:00
Joey Hess
479a094f2a
add news item for git-annex 6.20160211 2016-02-11 12:03:11 -04:00
Joey Hess
c8b201ad87
releasing package git-annex version 6.20160211 2016-02-11 12:02:38 -04:00
Joey Hess
4c2fb5569b
close 2016-02-10 12:42:48 -04:00
Joey Hess
6a7f65e62d
fix typo 2016-02-10 12:41:28 -04:00
CandyAngel
5283f63d1e Added a comment 2016-02-10 12:49:18 +00:00
konubinix
2790840848 Added a comment: fuser and unison? 2016-02-10 09:12:52 +00:00
https://me.yahoo.com/a/EbvxpTI_xP9Aod7Mg4cwGhgjrCrdM5s-#7c0f4
e46843054b 2016-02-10 00:01:10 +00:00
https://me.yahoo.com/a/EbvxpTI_xP9Aod7Mg4cwGhgjrCrdM5s-#7c0f4
24e2ab277f 2016-02-09 23:58:12 +00:00
magibney@908c3d4677b9e87e203538d4d5e8c296255749a0
56889d07cd Added a comment 2016-02-09 21:51:17 +00:00
Joey Hess
0b7d8d44d9
update 2016-02-09 16:32:40 -04:00
Joey Hess
73cca6e8c1
update 2016-02-09 16:26:55 -04:00
Joey Hess
5d05aad74c
S3: Allow configuring with requeststyle=path to use path-style bucket access instead of the default DNS-style access.
untested
2016-02-09 15:36:36 -04:00
Joey Hess
c256fa20f1
Merge branch 'master' of ssh://git-annex.branchable.com 2016-02-09 15:35:04 -04:00
magibney@908c3d4677b9e87e203538d4d5e8c296255749a0
dcea2f8d9f rename todo/allow_path-style_syntax_for_S3_bucket_specification.mdwn to todo/support_path-style_syntax_for_S3_bucket_specification.mdwn 2016-02-09 19:21:15 +00:00
magibney@908c3d4677b9e87e203538d4d5e8c296255749a0
1d432c677e rename todo/allow_path-style_semantics_for_S3_bucket_specification.mdwn to todo/allow_path-style_syntax_for_S3_bucket_specification.mdwn 2016-02-09 19:19:58 +00:00
Joey Hess
da8e0e4048
devblog 2016-02-09 15:19:54 -04:00
Joey Hess
9df7743e70
cleanu 2016-02-09 15:11:10 -04:00
Joey Hess
4fc5c21b3f
simplify; no need for separate filter reversal function 2016-02-09 15:09:25 -04:00
Joey Hess
476778f364
Merge branch 'master' of ssh://git-annex.branchable.com 2016-02-09 15:00:14 -04:00