Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Ensure we return valid internal / calculated propertieswipSascha Silbe2011-12-201-0/+20
| | | | | | | | | | | | | | The copy in the metadata storage can get corrupted, e.g. due to low level crashes or running out of battery (see OLPC#11372 [1] for a real-life example). This is especially problematic for the uid property, since without it the caller (i.e. the Journal) can't even figure out which entry to delete. [1] https://dev.laptop.org/ticket/11372 Reported-by: Gary Martin <garycmartin@googlemail.com> Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* Avoid recalculating checksum on metadata-only updateSascha Silbe2011-12-201-5/+21
| | | | | | If an empty file path has been passed (indicating a metadata-only update), there is no need to read the potentially huge data file and recalculate its checksum.
* add (minimal) test suite (SL#1438)Sascha Silbe2011-12-208-5/+868
| | | | | | | | | | | | | | | | Add a minimal test suite for the data store operating on public DBus API level. Checks all public API calls, including some simple performance measurements. Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org> create mode 100644 tests/.gitignore create mode 100644 tests/Makefile create mode 100644 tests/__init__.py create mode 100644 tests/basic_api_v2.txt create mode 100755 tests/runalltests.py create mode 100644 tests/test_massops.py create mode 100644 tests/test_migration_v1_v2.py
* add API to check/wait for index rebuild to finish (SL#1160)Sascha Silbe2011-11-021-0/+38
|
* find(): fix sort order in ambiguous casesSascha Silbe2011-11-021-1/+6
| | | | | | | | Consistent results are important for the test suite. Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org> --- v1->v2: Better handling of unsupported order_by values
* Add regression test for SL#2668Sascha Silbe2011-11-021-0/+71
| | | | | Signed-off-by: Sascha Silbe <silbe@activitycentral.com> Acked-by: Simon Schampijer <simon@laptop.org>
* Release 0.95.1Simon Schampijer2011-10-251-1/+1
|
* Release 0.93.2Simon Schampijer2011-08-191-1/+1
|
* Make sure data store checkouts are read-onlySascha Silbe2011-03-311-9/+1
| | | | | | | | We don't want anyone to be able to alter a file that is inside the data store, bypassing the API. Signed-off-by: Sascha Silbe <silbe@activitycentral.com> Acked-by: Simon Schampijer <simon@laptop.org>
* don't destroy unchanged data store entries (SL#2668)Sascha Silbe2011-03-311-0/+3
| | | | | | | | | | | | | | | | Calling datastore.get() and passing the file name back into datastore.update() for the same entry with transfer_ownership set to False destroyed the data file. This was because source and destination file are identical (hard links) and we overwrote the destination file in AsyncCopy.start() without unlinking it first. Fix this by unlinking the destination file if it exists. Reported-By: Daniel Drake <dsd@laptop.org> Signed-off-by: Sascha Silbe <silbe@activitycentral.com> Acked-by: Simon Schampijer <simon@laptop.org>
* Release 0.92.0refs/top-bases/t/testsuiterefs/top-bases/t/rainbow-0.8refs/top-bases/t/migration-rebuild-indexSimon Schampijer2011-02-231-1/+1
|
* don't choke if timestamp property is missingSascha Silbe2011-02-151-0/+3
| | | | | | | | The timestamp property might be missing due to incomplete writes (out of power, system crash) or software bugs. Signed-off-by: Sascha Silbe <silbe@activitycentral.com> Acked-by: Simon Schampijer <simon@laptop.org>
* Cleanup AUTHORS fileAleksey Lim2011-01-191-1/+1
|
* Add missed depsAleksey Lim2011-01-051-1/+2
|
* Actualize sweet recipe; add metadatareader.so symlink to support inplace runAleksey Lim2011-01-023-13/+14
|
* Tweak HACKING fileAleksey Lim2010-12-181-9/+21
|
* Use sh notaion in shell commandsAleksey Lim2010-10-221-1/+2
|
* Run autogen.sh on sweet cleanupAleksey Lim2010-10-221-5/+5
|
* Add Bazaar recipe fileAleksey Lim2010-10-222-2/+34
|
* More sugar-lint fixesAleksey Lim2010-10-204-44/+55
|
* More sugar-lint fixes; add HACKING fileAleksey Lim2010-10-167-118/+128
|
* indexstore: disable pylint warning W0221 for parse_querySascha Silbe2010-10-161-0/+1
| | | | | | | | | No other name I can think of is a better fit and no external code is using this class, so it isn't an issue. Disabling the warning reduces pylint clutter and makes it easier to spot real issues. Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
* datastore, migration: remove unused import tracebackSascha Silbe2010-10-162-2/+0
| | | | | | Caught by pylint. Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
* PEP8 cleanupsSascha Silbe2010-10-163-2/+3
| | | | Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
* Update 0.90.0 NEWSAleksey Lim2010-09-291-0/+3
|
* Release 0.90.0Aleksey Lim2010-09-291-1/+1
|
* Do not store symlinks #2362Aleksey Lim2010-09-231-0/+8
|
* Bump v0.89.4Aleksey Lim2010-09-112-1/+6
|
* metadata-only update sets filesize property to 0 #2229Aleksey Lim2010-09-061-5/+8
|
* commit 3644fac reintroduced race condition, broke test suite #2104Aleksey Lim2010-09-032-9/+19
|
* autogen.sh: pass --enable-maintainer-mode to configureBernie Innocenti2010-08-251-1/+1
|
* Reviewer comments #1915Aleksey Lim2010-08-242-5/+10
|
* Bump v0.89.3Aleksey Lim2010-08-245-15/+22
|
* Create target directory before importing previews (carrott) #2149Aleksey Lim2010-08-241-5/+5
| | | | This partially(possibly) fixes #2149 issue
* Increment CURRENT_LAYOUT_VERSION to trigger an index rebuildAndrés Ambrois2010-08-241-1/+1
|
* Check creation_time on index rebuild.Andrés Ambrois2010-08-241-0/+7
|
* Add creation_time property.Andrés Ambrois2010-08-242-0/+37
|
* Check filesize property on index rebuild.Andrés Ambrois2010-08-241-0/+8
| | | | This will ensure it gets set when upgrading from older datastores.
* Add filesize property to the index.Andrés Ambrois2010-08-242-0/+26
| | | | Don't fail indexing if filesize is missing.
* Bump v0.89.2Aleksey Lim2010-08-043-1/+7
|
* sl#2132: reduce _FLUSH_TIMEOUT to 5 secondsBernie Innocenti2010-08-021-1/+1
| | | | | | | | | This drastically reduces the chance of data loss in the journal on crash or power failure. The previous timeout was set to 60 seconds. It is not clear how much time flushing the journal takes on an XO-1. Until we measure, 5 and 60 are equally unjustified random numbers.
* Set index_updated flag on ds shutting downAleksey Lim2010-07-291-2/+3
|
* Bump v0.89.1Aleksey Lim2010-07-142-1/+4
|
* Invert index_updated logic #2095Aleksey Lim2010-07-143-31/+33
|
* Bump v0.88.0Aleksey Lim2010-03-292-1/+4
|
* fix migration from 0.82 data store (#1838)Sascha Silbe2010-03-221-0/+8
| | | | | | | | | Upgrading directly from 0.82 to 0.86/0.88 didn't migrate the data store contents because LayoutManager._is_empty() doesn't check for 0.82 data store entries. This patch fixes _is_empty() to recognize 0.82 data store contents. Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
* Bump v0.87.4Aleksey Lim2010-03-102-1/+5
|
* Do not remove internal metadata fields while rewriting object #1813Aleksey Lim2010-03-101-1/+3
|
* Auto detect mime type in copy-to-journal #586 (tomeu)Aleksey Lim2010-03-091-7/+6
|
* Bump v87.3Aleksey Lim2010-03-083-4/+9
|