Commit graph

28853 commits

Author SHA1 Message Date
Joey Hess
9d48f2666d
comment 2016-10-17 14:17:27 -04:00
Joey Hess
16038ef068
Merge branch 'master' of ssh://git-annex.branchable.com 2016-10-17 14:08:17 -04:00
Joey Hess
ee309d6941
lock: Fix edge cases where data loss could occur in v6 mode.
In the case where the pointer file is in place, and not the content
of the object, lock's  performNew was called with filemodified=True,
which caused it to try to repopulate the object from an unmodified
associated file, of which there were none. So, the content of the object
got thrown away incorrectly. This was the cause (although not the root
cause) of data loss in https://github.com/datalad/datalad/issues/1020

The same problem could also occur when the work tree file is modified,
but the object is not, and lock is called with --force. Added a test case
for this, since it's excercising the same code path and is easier to set up
than the problem above.

Note that this only occurred when the keys database did not have an inode
cache recorded for the annex object. Normally, the annex object would be in
there, but there are of course circumstances where the inode cache is out
of sync with reality, since it's only a cache.

Fixed by checking if the object is unmodified; if so we don't need to
try to repopulate it. This does add an additional checksum to the unlock
path, but it's already checksumming the worktree file in another case,
so it doesn't slow it down overall.

Further investigation found a similar problem occurred when smudge --clean
is called on a file and the inode cache is not populated. cleanOldKeys
deleted the unmodified old object file in this case. This was also
fixed by checking if the object is unmodified.

In general, use of getInodeCaches and sameInodeCache is potentially
dangerous if the inode cache has not gotten populated for some reason.
Better to use isUnmodified. I breifly auited other places that check the
inode cache, and did not see any immediate problems, but it would be easy
to miss this kind of problem.
2016-10-17 13:58:43 -04:00
https://me.yahoo.com/a/EbvxpTI_xP9Aod7Mg4cwGhgjrCrdM5s-#7c0f4
17cce14d19 original whining 2016-10-17 16:17:59 +00:00
https://me.yahoo.com/a/EbvxpTI_xP9Aod7Mg4cwGhgjrCrdM5s-#7c0f4
82fac4f0b7 added meta for myself 2016-10-17 15:59:32 +00:00
https://me.yahoo.com/a/EbvxpTI_xP9Aod7Mg4cwGhgjrCrdM5s-#7c0f4
7877c8d58f initial suggestion 2016-10-17 15:58:54 +00:00
ryan@d4f0c2d3daacb5ec3a2945bca06f66decad4bfb5
7adc7d5068 Git Annex Assistant occasionally replaces files with dangling symlinks. 2016-10-15 18:42:07 +00:00
https://launchpad.net/~helpunclejackoff
867a4ac4e8 Added a comment: Dumb old me.... 2016-10-15 10:12:17 +00:00
https://launchpad.net/~stephane-gourichon-lpad
63d02ae1d9 Added a comment 2016-10-14 07:23:51 +00:00
https://launchpad.net/~stephane-gourichon-lpad
f622e866e1 Added a comment: git-annex-undo removes files, possibly destroying information? Please explain. 2016-10-14 07:02:42 +00:00
edward
aa5d3edd97 fix typo 2016-10-13 21:16:59 +00:00
Joey Hess
7baa96224f
Merge branch 'master' of ssh://git-annex.branchable.com 2016-10-13 14:04:51 -04:00
Joey Hess
0302bbff6d
comment 2016-10-13 14:02:15 -04:00
https://anarc.at/openid/
6958b8a3fb Added a comment: real happy about optimisations! 2016-10-12 15:38:14 +00:00
Joey Hess
e9e05bfc2d
add news item for git-annex 6.20161012 2016-10-12 09:38:41 -04:00
Joey Hess
c0cdac5c4a
releasing package git-annex version 6.20161012 2016-10-12 09:38:03 -04:00
barthalion@8758f91921f1def00205716519c57234f128c328
e2dcbe656d Added a comment 2016-10-11 21:00:53 +00:00
Joey Hess
3135d35094
Merge branch 'master' of ssh://git-annex.branchable.com 2016-10-11 16:03:07 -04:00
Joey Hess
af8842475e
devblog 2016-10-11 16:01:32 -04:00
Joey Hess
3f25317ad5
fix tree graft-in bug
When adding a tree like a/b/c/d when a/b already exists, fixes the bug that
the tree that got created was a/b/a/b/c/d

Just need to flatten out the top N directories of the tree that's being
grafted in, so we get the c/d part. This was complicated by the Tree
data type being a rose tree rather than a regular tree.

This commit was sponsored by Nick Daly on Patreon.
2016-10-11 15:36:40 -04:00
Joey Hess
66ebf1a8f9
add test case for sync_in_adjusted_branch_deleted_recently_added_files
This commit was sponsored by Denis Dzyubenko on Patreon.
2016-10-11 14:22:49 -04:00
fiatjaf
9d2ff4df77 Added a comment: related work 2016-10-11 13:35:08 +00:00
Joey Hess
d7a88e3510
devblog 2016-10-10 15:03:27 -04:00
Joey Hess
b82c3e0783
sync: Fix bug in adjusted branch merging that could cause recently added files to be lost when updating the adjusted branch.
The modification flag was not being set when making modifications deep
in a tree, so parent trees were not updated to contain the modified tree.

Seems to have exposed another bug where the wrong filename gets grafted in.

This commit was sponsored by Brock Spratlen on Patreon.
2016-10-10 15:00:45 -04:00
Joey Hess
d2527c421c
more analysis 2016-10-10 14:23:24 -04:00
Joey Hess
75c7215857
reproduce recipe 2016-10-10 12:56:21 -04:00
https://launchpad.net/~stephane-gourichon-lpad
81737b5277 Added a comment: Build on Debian 7.11 AMD64 2016-10-10 06:43:49 +00:00
https://launchpad.net/~helpunclejackoff
f244d942ee 2016-10-09 18:42:14 +00:00
https://launchpad.net/~helpunclejackoff
dfd0e0290a Move the env description to the right place 2016-10-09 18:41:50 +00:00
https://launchpad.net/~helpunclejackoff
11f6bbaca8 2016-10-09 18:36:52 +00:00
xloem
44d23db888 Added a comment: Workflow Summary 2016-10-09 13:39:38 +00:00
xloem
16c0b372b0 Added a comment 2016-10-09 12:13:39 +00:00
https://launchpad.net/~stephane-gourichon-lpad
d1e21aad3a Reporting missing file in locally installed doc causing reduced reading comfort. 2016-10-09 07:16:25 +00:00
barthalion@8758f91921f1def00205716519c57234f128c328
846e5a100e Added a comment: Compression level 2016-10-08 18:31:00 +00:00
Tafnzart
930f27c1d5 Added a comment 2016-10-08 16:43:54 +00:00
jwm@affa977977673476597d5d5c7bda464959a9bd9b
d50710be8b 2016-10-08 05:25:28 +00:00
Tafnzart
679656b849 2016-10-07 19:34:17 +00:00
http://christian.amsuess.com/chrysn
eb0f0e5327 rename forum/bittorrent__58___support_offline_operation_and_verification.mdwn to todo/bittorrent__58___support_offline_operation_and_verification.mdwn 2016-10-07 13:47:53 +00:00
http://christian.amsuess.com/chrysn
42a097ea95 suggest bittorrent enhancements 2016-10-07 10:23:26 +00:00
yomguy
7dba1bc81f Added a comment 2016-10-07 09:15:07 +00:00
http://christian.amsuess.com/chrysn
36d68a8f0a Added a comment: Re: attaching a torrent file to a downloaded and annexed directory 2016-10-07 09:11:56 +00:00
pot
31509c3796 2016-10-06 20:13:07 +00:00
pot
48b97cb3f0 Added a comment: 780 source files.... 2016-10-06 20:05:41 +00:00
ddenis
6cdcda6e32 Added a comment 2016-10-06 16:59:03 +00:00
jk@3f2b4ce16bbac41470815333505aa47b91b7a9a6
4338251817 Added a comment 2016-10-06 10:42:53 +00:00
Joey Hess
903a7e212c
devblog 2016-10-05 17:10:43 -04:00
Joey Hess
a6fa700ecd
response 2016-10-05 17:02:31 -04:00
Joey Hess
74db77886f
comment 2016-10-05 16:57:10 -04:00
Joey Hess
933bc5c917
Support using v3 repositories without upgrading them to v5.
An easy change now that supportedVersions is a list. Since v3 and v5 are
identical other than version number, just add v3 to the list.

This commit was sponsored by andrea rota.
2016-10-05 16:53:09 -04:00
Joey Hess
f867fc157f
When auto-upgrading a v3 remote, avoid upgrading to version 6, instead keep it at version 5.
Fixes a bug introduced with v6 mode that I didn't notice until now.
Probably not many v3 repos left out there, and upgrading them to v6 mode
is not disastrous, only a little premature.

This commit was sponsored by Riku Voipio
2016-10-05 16:23:09 -04:00