Commit graph

4123 commits

Author SHA1 Message Date
http://joeyh.name/
3a05b66cf9 Added a comment 2012-06-15 19:25:59 +00:00
Joey Hess
53d2e81ffd Merge branch 'master' into watch 2012-06-15 15:20:11 -04:00
Joey Hess
85db1720e9 add lsof interface
Uses lsof -F0 to get machine-readable output
2012-06-15 15:13:31 -04:00
Joey Hess
af7b6319d7 move 2012-06-15 15:11:18 -04:00
Joey Hess
18e0393434 Merge branch 'master' of ssh://git-annex.branchable.com 2012-06-15 15:11:06 -04:00
https://www.google.com/accounts/o8/id?id=AItOawkSq2FDpK2n66QRUxtqqdbyDuwgbQmUWus
df56fc3702 2012-06-15 19:10:36 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkSq2FDpK2n66QRUxtqqdbyDuwgbQmUWus
9e5c5bb6e1 2012-06-15 19:06:45 +00:00
http://denis.laxalde.org/
98148bece8 2012-06-15 18:57:08 +00:00
Joey Hess
9c519ba955 not bash specific 2012-06-15 14:22:00 -04:00
http://joeyh.name/
4ecbf78eca Added a comment 2012-06-15 18:21:03 +00:00
Joey Hess
96a43ef5bc Merge branch 'master' of ssh://git-annex.branchable.com 2012-06-15 14:15:22 -04:00
Joey Hess
01beef4459 fix make-sdist to omit too long filenames 2012-06-15 14:14:50 -04:00
Joey Hess
4b2b5e820e add 2012-06-15 14:11:09 -04:00
https://www.google.com/accounts/o8/id?id=AItOawmURXBzaYE1gmVc-X9eLAyDat_6rHPl670
a6dafe9f72 Added a comment: Error when installing from Hackage 2012-06-15 17:39:46 +00:00
Joey Hess
a95149ac0f quarantine idea to avoid repeated lsof calls 2012-06-15 12:22:28 -04:00
http://joeyh.name/
37a13de8ff Added a comment 2012-06-15 15:23:21 +00:00
http://joeyh.name/
5e0f179077 Added a comment 2012-06-15 15:14:53 +00:00
https://www.google.com/accounts/o8/id?id=AItOawl9sYlePmv1xK-VvjBdN-5doOa_Xw-jH4U
c3eb00271c Added a comment 2012-06-15 10:21:17 +00:00
https://www.google.com/accounts/o8/id?id=AItOawl9sYlePmv1xK-VvjBdN-5doOa_Xw-jH4U
20744d3146 Added a comment: Battery usage 2012-06-15 09:57:34 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkSq2FDpK2n66QRUxtqqdbyDuwgbQmUWus
fb33e55a6e Added a comment 2012-06-15 08:58:18 +00:00
http://dieter-be.myopenid.com/
c51c4685f2 Added a comment: filesystem number of open file handles on a file 2012-06-15 08:21:37 +00:00
http://wiggy.net/
1d5246fb20 Added a comment: os compatibility 2012-06-15 07:19:24 +00:00
Joey Hess
c24e86c7e1 add news item for git-annex 3.20120614 2012-06-14 20:34:10 -04:00
Joey Hess
8492f1c182 releasing version 3.20120614 2012-06-14 20:32:06 -04:00
Joey Hess
ca9d94a0ad addurl: Was broken by a typo introduced 2 released ago, now fixed. Closes: #677576 2012-06-14 20:20:03 -04:00
Joey Hess
06caf52f03 blog for the day 2012-06-14 20:06:43 -04:00
Joey Hess
6b56abf215 hard problems are fun? 2012-06-14 12:43:23 -04:00
Joey Hess
686760befc typo 2012-06-14 12:27:30 -04:00
Joey Hess
e0095b0bdc fishy commit 2012-06-14 00:01:48 -04:00
Joey Hess
89dad12b35 update 2012-06-13 19:32:09 -04:00
Joey Hess
b1a4d55836 Merge branch 'master' into watch 2012-06-13 19:30:13 -04:00
Joey Hess
a40dc2d390 typo 2012-06-13 19:30:07 -04:00
Joey Hess
6be8cc1802 blog for the day 2012-06-13 19:26:22 -04:00
Joey Hess
8919c2e4da check for unstaged old symlinks in the sanity checker 2012-06-13 19:25:47 -04:00
Joey Hess
4b9b9b4947 add sanity checker thread
Currently wakes up once a day, and does nothing. :)
2012-06-13 17:54:23 -04:00
Joey Hess
36d73b0017 slightly higher-level thread scheduling code
Including support for unbound thread sleeping. Haskell's max thread sleep
is 37 minutes, due to maxBound Int!
2012-06-13 17:53:19 -04:00
Joey Hess
24370fa3ac lsof 2012-06-13 15:03:26 -04:00
Joey Hess
e7bb454bed Merge branch 'master' of ssh://git-annex.branchable.com 2012-06-13 14:32:25 -04:00
Joey Hess
f9cc2acc71 bug 2012-06-13 14:32:11 -04:00
Joey Hess
7575c5bb56 tweak 2012-06-13 14:19:21 -04:00
Joey Hess
24da48816d Merge branch 'master' into watch 2012-06-13 14:03:38 -04:00
Joey Hess
59a7b3a51a finish daemon status thread 2012-06-13 14:02:40 -04:00
Joey Hess
ff2414427b implement daemon status serialization to a file
Also afterLastDaemonRun, with 10 minute slop to handle majority of clock
skew issues.
2012-06-13 13:35:15 -04:00
Joey Hess
ccc5005245 reorganize 2012-06-13 12:46:39 -04:00
Joey Hess
c31ddeda84 optimise link staging at startup
Now it starts really, really fast! Down from 15 minutes or so on my big
tree to around 1 minute.

The trick is to remember the last time the daemon was running. Links with a
ctime from before that point don't need to be restaged on startup (as long
as they are correct), since the old daemon would have handled them already.

We also assume that if the daemon has never run before, any links that
already exist are good. The pre-commit hook fixes links, so this should be
a safe assumption.

Adds another MVar holding a DaemonStatus data structure. Also
allowed getting rid of the Annex.Fast hack. This data structure will
probably grow a lot of details about the daemon's status, that will
later be used by the webapp's UI.

The code to actually track when the daemon was last running is not written
yet. It's 3 am.
2012-06-13 02:56:16 -04:00
Joey Hess
12dbb9d1d0 plumb file status through to event handlers
The idea, not yet done, is to use this to detect when a file
has an old change time, and avoid expensive restaging of the file.

If git-annex watch keeps track of the last time it finished a full scan,
then any symlink that is older than that time must have been scanned
before, so need not be added. (Relying on moving, copying, etc of a file
all updating its change time.)

Anyway, this info is available for free since inotify already checks it,
so it might as well make it available.
2012-06-13 01:20:37 -04:00
Joey Hess
ab076b2e81 move comment 2012-06-13 00:57:48 -04:00
http://abhidg.myopenid.com/
22eab4cd0f Added a comment: librsync 2012-06-13 02:14:29 +00:00
Joey Hess
c156675797 blog for the day 2012-06-12 21:29:01 -04:00
Joey Hess
da62edb42a optimisation and memory leak fix 2012-06-12 21:13:15 -04:00