archipelago
12 years agoremove race condition on xseg_request state
Giannakos Filippos [Mon, 19 Dec 2011 14:57:14 +0000 (16:57 +0200)]
remove race condition on xseg_request state

12 years agoinitial commit of sosd
Giannakos Filippos [Thu, 15 Dec 2011 13:06:43 +0000 (15:06 +0200)]
initial commit of sosd

12 years agoMerge branch 'philfix'
Georgios D. Tsoukalas [Tue, 13 Dec 2011 15:51:42 +0000 (17:51 +0200)]
Merge branch 'philfix'

12 years agofix buffer handling on incomplete/resubmitted reqs
Giannakos Filippos [Tue, 13 Dec 2011 15:40:10 +0000 (17:40 +0200)]
fix buffer handling on incomplete/resubmitted reqs

12 years agofix log_io printing beyond end-of-string garbage
Giannakos Filippos [Tue, 13 Dec 2011 15:28:43 +0000 (17:28 +0200)]
fix log_io printing beyond end-of-string garbage

12 years agoAdd pthread to linked libraries
Georgios D. Tsoukalas [Tue, 13 Dec 2011 15:19:00 +0000 (17:19 +0200)]
Add pthread to linked libraries

12 years agorelax shared segment access precautions
Georgios D. Tsoukalas [Tue, 13 Dec 2011 15:12:00 +0000 (17:12 +0200)]
relax shared segment access precautions

The shared array of peer type names is by design
append only, therefore no locking or copying strings
is needed to access it (only pointer conversions).
Append-only means that peer type names cannot be unregistered.

Unregistering is complicated because peers "cache"
the information they read from the shared array.

12 years agofix invalid shared pointer access and wrong retval
Giannakos Filippos [Tue, 13 Dec 2011 14:51:14 +0000 (16:51 +0200)]
fix invalid shared pointer access and wrong retval

also, lock and copy string from shared segment,
as a precaution.

12 years agorelax redundant shared access precautions
Georgios D. Tsoukalas [Tue, 13 Dec 2011 14:33:35 +0000 (16:33 +0200)]
relax redundant shared access precautions

Shared access to the shared array of peer type names
was designed to be safe without locking or copying
because the peer type name array is append only,
i.e. no peer type names can be unregistered.

Unregistering introduces many other problems
(and not just the lock/copy avoided here),
such as need for "cache" invalidation among peers,
who had previously accessed the shared array.

12 years agofix invalid pointer access to shared segment.
Giannakos Filippos [Tue, 13 Dec 2011 14:25:46 +0000 (16:25 +0200)]
fix invalid pointer access to shared segment.

Also, add locking and copying shared data, for safety.

12 years agoinitialization from my own repository
Georgios D. Tsoukalas [Tue, 13 Dec 2011 09:47:57 +0000 (11:47 +0200)]
initialization from my own repository