summaryrefslogtreecommitdiff
path: root/doc/bugs/git-annex_doesn__39__t_work_on_lustre:_waitToSetLock:_unsupported_operation___40__Function_not_implemented__41__/comment_14_4dea6eac389bbf5235a3d5d3378e6d04._comment
blob: bb58cbeeb16761d177d315ff9abae5ef7e0f989f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[[!comment format=mdwn
 username="joey"
 subject="""comment 14"""
 date="2015-11-13T20:00:48Z"
 content="""
Adding to the crazy Lustre fun, check this out:

	$ ls -l .git/annex/
	total 56
	-rw-rw-r--  1 hess root 18387 Nov 13 14:35 index
	-rw-rw-r--  1 hess root    41 Nov 13 14:35 index.lck
	drwxrwsr-x  2 hess root 12288 Nov 13 14:35 journal
	-rw-rw-r--  1 hess root     0 Nov 13 11:48 journal.lck
	drwxrwsr-x  2 hess root  4096 Nov 13 14:35 misctmp
	drwxrwsr-x 88 hess root  4096 Nov 13 14:35 objects
	-r--r--r--  1 hess root    70 Nov 13 14:35 pidlock
	-r--r--r--  1 hess root    70 Nov 13 14:35 pidlock
	-rw-rw-r--  1 hess root     0 Nov 13 11:48 sentinal
	-rw-rw-r--  1 hess root    23 Nov 13 11:48 sentinal.cache

There are 2 pidlock files in that directory listing. 2 files with the same name.
I deleted one of them, and with no other changes, ls shows only 1 now.

	-r--r--r--  1 hess root    74 Nov 13 14:35 pidlock

Notice that the file stat has changed too.

So, Lustre has clearly thrown POSIX out the window, and then defrenstrated
sanity for good measure.

On the plus side, this may show how I can detect when rename() fails to
preserve POSIX semantics..

Update: Indeed, I was able to get git-annex to detect the doubled file
and so know that it can't take the lock.

I can't guarantee anything, but this is enough to close this bug.
"""]]