]> dgit.raspbian.org Git - git-annex.git/blob
97f617d22b5f824c6b81e1382cc00023ed8ddbfb
[git-annex.git] /
1 [[!comment format=mdwn
2  username="oliv5"
3  avatar="http://cdn.libravatar.org/avatar/d7f0d33c51583bbd8578e4f1f9f8cf4b"
4  subject="comment 6"
5  date="2019-09-26T20:39:41Z"
6  content="""
7 The lock issue seems confirmed here. And the \"nobrl\" mount option solves the issue.
8
9 Maybe you should inform the user about \"nobrl\" & \"annex.pidlock\" during the \"git annex init\" filesystem check, refuse to go on and propose legacy direct mode instead if user cannot accept to have no filesystem locking ?
10
11 Without changing my mount options:
12
13     SQLite version 3.27.2 2019-02-25 16:06:06
14     Enter \".help\" for usage hints.
15     sqlite> PRAGMA journal_mode=WAL;
16     Error: database is locked
17     sqlite> create table foo (name varchar);
18     Error: database is locked
19     sqlite> insert into foo (name) values (\"joey\");
20     Error: no such table: foo
21     sqlite> .exit
22
23 After adding \"nobrl\" in the mount options:
24
25     SQLite version 3.27.2 2019-02-25 16:06:06
26     Enter \".help\" for usage hints.
27     sqlite> PRAGMA journal_mode=WAL;
28     wal
29     sqlite> create table foo (name varchar);
30     sqlite> insert into foo (name) values (\"joey\");
31     sqlite> .exit
32
33 It seems \"nolock\" is an alias for \"nobrl\", results are the same; when I put \"nolock\" in the mount options, I end up with \"nobrl\" in the \"mount\" command output.
34
35 Finally, with the \"nobrl\" mount option:
36
37     $ cd /media/mydisk/tmp/
38     $ date > file1
39     $ git init .
40     Dépôt Git vide initialisé dans /media/mydisk/tmp/.git/
41     $ git annex init test
42     init test 
43       Detected a filesystem without fifo support.
44
45       Disabling ssh connection caching.
46
47       Detected a crippled filesystem.
48
49       Entering an adjusted branch where files are unlocked as this filesystem does not support locked files.
50
51     Basculement sur la branche 'adjusted/master(unlocked)'
52     ok
53     (recording state in git...)
54     $ git annex add file1 
55     add file1 ok
56     (recording state in git...)
57
58 Hurray ! 
59
60
61 """]]