<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-persist/src/fs.rs, branch derive-traits</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=derive-traits</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=derive-traits'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2022-02-24T19:55:59Z</updated>
<entry>
<title>arti-client: Unlock the state manager on failure to bootstrap</title>
<updated>2022-02-24T19:55:59Z</updated>
<author>
<name>eta</name>
<email>tor@eta.st</email>
</author>
<published>2022-02-18T16:02:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c6fdd7c0037df821a7cfc475993322958c2f006a'/>
<id>urn:sha1:c6fdd7c0037df821a7cfc475993322958c2f006a</id>
<content type='text'>
`StateMgr` got a new `unlock()` method that does what it says on the
tin. We now call it from `bootstrap()` using the new
`util::StateMgrUnlockGuard`, which works in a manner similar to the
`BoolResetter` from `tor_dirmgr`.

(A decent small little task in future might be to unify these types in
some sort of general arti utility crate?)

closes arti#335
</content>
</entry>
<entry>
<title>tor-persist: Distinguish load vs. store json errors</title>
<updated>2022-02-04T14:33:09Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-01-13T16:50:14Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a4765717da64cc287f09e429989c79b97d794ded'/>
<id>urn:sha1:a4765717da64cc287f09e429989c79b97d794ded</id>
<content type='text'>
Serialisation errors ought not to occur, since they would represent an
attempt to store malformed data, or something.  (We always convert to
a string, so the JSON error never contains IO errors or the like.)

Deserialisation errors mean the persistent state is corrupt.
</content>
</entry>
<entry>
<title>clippy: Pass simply &amp;output to fs::write</title>
<updated>2022-02-02T18:33:23Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-02-02T17:52:07Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b695ebd039fd71af75beb1d7685f5b54138dec31'/>
<id>urn:sha1:b695ebd039fd71af75beb1d7685f5b54138dec31</id>
<content type='text'>
clippy::needless_borrow quibbles here, IMO correctly.  Its suggestion
didn't go far enough: output is a String and a &amp;String can be passed
to write as-is for identical effect.
</content>
</entry>
<entry>
<title>Fix Rustdoc errors.</title>
<updated>2021-12-08T15:06:22Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-12-08T15:06:22Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9767a1d063491434e75689478e268373c3e11310'/>
<id>urn:sha1:9767a1d063491434e75689478e268373c3e11310</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Test FsStateMgr::path(), and fix a bug in it.</title>
<updated>2021-12-08T01:11:54Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-12-08T01:11:54Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=327d485b17344f6842267305978dbaa4d2dfcfdb'/>
<id>urn:sha1:327d485b17344f6842267305978dbaa4d2dfcfdb</id>
<content type='text'>
We join "state" to the directory name, so we must call parent() to get
the original.
</content>
</entry>
<entry>
<title>Sketch API for reconfiguration.</title>
<updated>2021-12-07T20:42:14Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-12-06T18:54:53Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=606d64eac5936a9f0bfec32b8b5a85f3dea77559'/>
<id>urn:sha1:606d64eac5936a9f0bfec32b8b5a85f3dea77559</id>
<content type='text'>
This patch doesn't actually make anything reconfigurable, but it
does create an API that will tell you "you can't change the value of
that!"  If the API looks reasonable, I can start making it possible
to change the values of individual items.
</content>
</entry>
<entry>
<title>Upgrade to fslock version 0.2</title>
<updated>2021-10-27T18:52:09Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-27T18:52:09Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2fae63b5aea73f816df96cb2db53eba6ac5f89bb'/>
<id>urn:sha1:2fae63b5aea73f816df96cb2db53eba6ac5f89bb</id>
<content type='text'>
This version makes all locks per-handle rather than per-process, by
moving from lockf() to flock() on unix.
</content>
</entry>
<entry>
<title>Replace the return type of StorageMgr::try_lock with a tristate</title>
<updated>2021-10-20T13:37:53Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-20T13:37:53Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7b6ed9dab6a673b9b563fa3818806cec4b208240'/>
<id>urn:sha1:7b6ed9dab6a673b9b563fa3818806cec4b208240</id>
<content type='text'>
It's useful to know now only if we now have the lock, but also if we
just got it for the first time.
</content>
</entry>
<entry>
<title>Change tor-persist to use json instead of toml.</title>
<updated>2021-10-07T13:30:08Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-07T13:23:35Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7e68883a27c59b770022484626730e5b89b9587e'/>
<id>urn:sha1:7e68883a27c59b770022484626730e5b89b9587e</id>
<content type='text'>
The limitations with toml seemed to be reaching a head, and I wasn't
able to refactor the guardmgr code enough to actually have its state
be serializable as toml.  Json's limitations are much narrower.
</content>
</entry>
<entry>
<title>Move FsStatemgr to an inner module.</title>
<updated>2021-09-30T19:36:11Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-09-30T15:04:19Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=eef06efea666c9bac1d51acc4e5f07168e205aa3'/>
<id>urn:sha1:eef06efea666c9bac1d51acc4e5f07168e205aa3</id>
<content type='text'>
</content>
</entry>
</feed>
