Commit graph

26087 commits

Author SHA1 Message Date
Joey Hess
9f7e4ed811
Build with -j1 again to get reproducible build.
This was in the cabal file earlier, and was removed because it broke the
android cross build. Moving to the git-annex target of the Makefile
will make it be used for Debian packages etc but not android cross builds
or make fast or when users build with cabal.
2015-11-16 16:51:24 -04:00
Joey Hess
50572947a4
remove old news comments 2015-11-16 16:03:00 -04:00
Joey Hess
76139a93ff
add news item for git-annex 5.20151116 2015-11-16 16:01:27 -04:00
Joey Hess
2864dc6d15
typo 2015-11-16 15:53:30 -04:00
Joey Hess
c670a0642c
fix warning 2015-11-16 15:37:27 -04:00
Joey Hess
262c37c16e
add missing checkSaneLock wrapper for pidlocks 2015-11-16 15:35:41 -04:00
Joey Hess
e2b4861bff
store abspath to the lock file
Avoids problems if the program chdirs
2015-11-16 15:25:04 -04:00
Joey Hess
b0626230b7
fix use of hifalutin terminology 2015-11-16 14:37:31 -04:00
Joey Hess
be86081ff4
avoid crashing in checkDaemon when fcntl locking is not supported
Instead, just assume the daemon isn't running. Since the pid file locking
fails on such a filesystem, we know it's not running.
2015-11-16 14:34:30 -04:00
Joey Hess
b5df6c7b93
prep release 2015-11-16 14:18:01 -04:00
Joey Hess
819917f713
comment 2015-11-16 14:15:53 -04:00
Joey Hess
189718cf8a
enable ConcurrentOutput by default when library is available 2015-11-16 11:51:16 -04:00
Joey Hess
e490e82653
Merge branch 'master' of ssh://git-annex.branchable.com 2015-11-16 11:40:20 -04:00
Joey Hess
6fc01da184
wording 2015-11-16 11:39:45 -04:00
Joey Hess
2e44da5c46
clean up side lock files when we're done with them
There's a potential race, but it's detected and just results in the other
process failing to take the side lock, so possibly retrying one second
later on. The race window is quite narrow so the extra delay is minor.

Left the side lock files mode 666 because an interruption can leave a side
lock file created by another user for a shared repository. When this
happens, the non-owning user can't delete it (+t) but can still lock it,
and so the code falls back to acting as it did before this commit.
2015-11-16 11:36:11 -04:00
atrent
232d372ab8 Added a comment 2015-11-16 09:06:34 +00:00
atrent
84f851b450 Added a comment 2015-11-16 07:50:30 +00:00
craig@6ddb6e2c94325e18a0d631a06e63fdc111ab1f12
f9369a0b69 Added a comment: Thanks 2015-11-16 05:34:35 +00:00
edward
4f10cf7434 fix typo 2015-11-14 09:57:40 +00:00
Joey Hess
6dfdc37738
devblog 2015-11-13 16:34:54 -04:00
Joey Hess
40feafae60
close 2015-11-13 16:33:53 -04:00
Joey Hess
8efd3d71c8
starting to get a handle on how to detect that mad gleam in lustre's eye 2015-11-13 16:18:44 -04:00
Joey Hess
9d52d653f6
comment 2015-11-13 16:13:38 -04:00
Joey Hess
7fce3a0f81
more warnings about networked filesystems 2015-11-13 15:55:16 -04:00
Joey Hess
70bfe218f5
one more try to get sane behavior our of lustre 2015-11-13 15:51:45 -04:00
Joey Hess
389c6c7d37
fixed a fd double-close 2015-11-13 15:43:09 -04:00
Joey Hess
b0155d9093
also compare lock file contents to double-check link worked
And it closes the tmp file before this. I don't know if this will help
avoid lustre's craziness, but it can't hurt..
2015-11-13 15:20:52 -04:00
Joey Hess
1aba23ab4e
use /tmp for sidelock file when no /dev/shm 2015-11-13 14:49:30 -04:00
Joey Hess
60a9c7f5c6
require the side lock be held to take pidlock
This is less portable, since currently sidelocks rely on /dev/shm.
But, I've seen crazy lustre inconsistencies that make me not trust the
link() method at all, so what can you do.
2015-11-13 14:44:53 -04:00
Joey Hess
85345abe8b
avoid over-long filenames for side lock files 2015-11-13 14:04:29 -04:00
Joey Hess
c8cf30d81d
comment 2015-11-13 13:47:14 -04:00
Joey Hess
c1d51a50f6
update 2015-11-13 13:46:11 -04:00
Joey Hess
b6c1624d99
Merge branch 'master' of ssh://git-annex.branchable.com 2015-11-13 13:35:46 -04:00
Joey Hess
bb86eebfbd
init: Automatically enable annex.pidlock when necessary. 2015-11-13 13:35:29 -04:00
Joey Hess
c2cbe5619b
add stat check
I have a strace taken on a lustre filesystem on which link() returned 0,
but didn't actually succeed, since the file already existed.

One of the linux man pages recommended using link followed by checking like
this. I was reading it yesterday, but cannot find it now.
2015-11-13 13:22:45 -04:00
Joey Hess
88d94e674c
clean up temp file 2015-11-13 12:52:24 -04:00
Joey Hess
e31a51c5bb
better lock dropping order 2015-11-13 12:36:37 -04:00
SchemaCzar
3d05506230 Added a comment: PLEASE!!! PLEASE BUILD IT!!! 2015-11-13 16:10:44 +00:00
juh
5b83af93ed Workflow question 2015-11-13 13:41:03 +00:00
atrent
3da6eff715 2015-11-13 07:39:42 +00:00
atrent
d3198f23f4 2015-11-13 07:38:01 +00:00
atrent
10e6b0ffde 2015-11-13 07:37:20 +00:00
Joey Hess
bb4123a649
Merge branch 'master' of ssh://git-annex.branchable.com 2015-11-12 18:24:56 -04:00
Joey Hess
2a4c2c310a
devblog 2015-11-12 18:24:26 -04:00
Joey Hess
aaf1ef268d
convert from Utility.LockPool to Annex.LockPool everywhere 2015-11-12 18:13:37 -04:00
Joey Hess
cd22340c99
generalize to MonadIO 2015-11-12 18:03:49 -04:00
Joey Hess
aa4192aea6
pid locking configuration and abstraction layer for git-annex
(not actually used anywhere yet)
2015-11-12 17:50:34 -04:00
Joey Hess
77b490bfba
add timeout for pid lock waiting 2015-11-12 17:12:54 -04:00
Joey Hess
7bd9e33b84
refactor 2015-11-12 16:35:15 -04:00
Joey Hess
0f25a7365a
module for PidLocks in LockPool 2015-11-12 16:31:34 -04:00