Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-06-25 | Fix: copyright year | Lars Wirzenius | 1 | -1/+1 | |
2017-06-24 | Fix: avoid bare "except:" statements | Lars Wirzenius | 1 | -6/+6 | |
2016-07-14 | Fix typo in fuse_plugin, calling the wrong repo method | Michel Alexandre Salim | 1 | -1/+1 | |
The repo interface exposes the `get_client_generation_ids` method, but in one location in `fuse_plugin` it is called as `get_clientgeneration_ids`. As reported in Fedora bugzilla, https://bugzilla.redhat.com/show_bug.cgi?id=1340138 #1340138 [abrt] obnam: fuse_plugin.py:391:statfs:AttributeError: 'RepositoryFormat6' object has no attribute 'get_clientgeneration_ids' | |||||
2016-01-15 | Update copyright years | Lars Wirzenius | 1 | -1/+1 | |
2016-01-15 | Reorder imports | Lars Wirzenius | 1 | -4/+4 | |
2015-08-29 | Drop dead code | Lars Wirzenius | 1 | -2/+0 | |
2015-08-29 | Drop unnecessary no-op statement (pass) | Lars Wirzenius | 1 | -1/+0 | |
2015-08-29 | Let logging function do string formatting | Lars Wirzenius | 1 | -1/+1 | |
2015-08-29 | Make class be new-style | Lars Wirzenius | 1 | -1/+1 | |
2015-08-29 | Avoid self-modifying code in FUSE plugin | Lars Wirzenius | 1 | -5/+16 | |
The old code was correct, but confused pylint. The new code is clearer for everyone, I think, and should be equivalent. | |||||
2015-08-28 | Fix variable reference | Lars Wirzenius | 1 | -1/+1 | |
2015-08-19 | Add get_metadata_from_file_keys and use it | Lars Wirzenius | 1 | -31/+2 | |
2015-07-04 | Cleanups suggested by pep8 | Lars Wirzenius | 1 | -20/+21 | |
2015-04-03 | Update copyright years | Lars Wirzenius | 1 | -1/+1 | |
2015-03-22 | fix typos | Thomas Waldmann | 1 | -1/+1 | |
2015-03-22 | fuse_plugin: fix undefined "blocks" | Thomas Waldmann | 1 | -1/+1 | |
2015-03-22 | add missing imports, remove unused imports | Thomas Waldmann | 1 | -1/+0 | |
2014-04-13 | Add missing copyright statements, years | Lars Wirzenius | 1 | -1/+1 | |
2014-03-30 | Apply patch from Valery to fix FUSE read | Lars Wirzenius | 1 | -6/+5 | |
Patch by Valery Yundin. He gave the following recipe to verify it works: * set "ObnamFuseFile.keep_cache" to False * backup * mount * diff -r the original and via FUSE Before the patch this failed for me if the original file was large enough, on the order of two to a hundred megs. It works after the patch. Someday I will have to really write a test suite for this. | |||||
2014-03-22 | Fix advancing in FUSE fileobnam-1.7.1 | Lars Wirzenius | 1 | -1/+1 | |
We don't necessarily have the content, but we do know its size. | |||||
2014-03-18 | Bug fix: change FUSE read to read right amount of data | Lars Wirzenius | 1 | -5/+6 | |
The actual bug was that when we extracted data from the chunk we were processing at the time, we used "data[start:n]", where n is the number of bytes we wanted to extract from this chunk. This is clearly wrong: the slice end is an offset, not a length to be added to the start. Thus, "data[start:start+n]" is the fix. In addition, a small performance silliness is removed by fixing the check for whether we should be extracting data from a chunk: if the chunk ends at the start of the offset in the file from where data should be returned, it should clearly not be considered. Clarify code a bit as well, which was useful for me to understand what's going on. | |||||
2014-03-03 | Log warning in FUSE if ignoring error | Lars Wirzenius | 1 | -1/+2 | |
2014-02-27 | Get rid of obnamlib.Error | Lars Wirzenius | 1 | -18/+24 | |
2014-02-25 | Cache chunk sizes for read | Lars Wirzenius | 1 | -2/+19 | |
2014-02-25 | RE-instate chdir in re-opening repo | Lars Wirzenius | 1 | -0/+12 | |
Valery pointed out to me that FUSE itself does a chdir, so we do need to chdir back to where we were when re-opening. | |||||
2014-02-23 | Convert fuse_plugin.py to RepositoryInterface | Lars Wirzenius | 1 | -57/+120 | |
2014-02-23 | Rename variable for clarity | Lars Wirzenius | 1 | -5/+5 | |
2014-02-23 | Remove .cwd attribute and chdir | Lars Wirzenius | 1 | -5/+0 | |
There seems to be no need to chdir back to the original cwd. Nothing in the plugin causes chdir to happen. | |||||
2014-02-23 | Rename ObnamFile.fs to .fuse_fs | Lars Wirzenius | 1 | -9/+9 | |
This way it's clearer that we refer to ObnamFuse, not an instance of obnamlib.VFS. | |||||
2014-02-23 | Move multiple_root_list into init_root, rename variables | Lars Wirzenius | 1 | -36/+39 | |
2014-02-23 | Rename methods for clarity | Lars Wirzenius | 1 | -9/+9 | |
2014-02-23 | Replace duplicate code with call to init_root | Lars Wirzenius | 1 | -10/+2 | |
2014-02-23 | Remove unnecessary helper variable | Lars Wirzenius | 1 | -4/+2 | |
2014-02-23 | Move init_root next to __init__, for clarity | Lars Wirzenius | 1 | -10/+10 | |
2014-02-23 | Remove now-useless sizecache attribute | Lars Wirzenius | 1 | -1/+0 | |
2014-02-23 | Remove metadata cache | Lars Wirzenius | 1 | -16/+9 | |
RepositoryInterface implementations are meant to do the caching internally, for when it's useful, rather than have it in every caller. | |||||
2014-02-23 | Move get_gen_path to a class method | Lars Wirzenius | 1 | -9/+8 | |
2014-02-23 | Move __init__ to top of class | Lars Wirzenius | 1 | -11/+11 | |
2014-02-23 | Simplify code | Lars Wirzenius | 1 | -4/+4 | |
It's clearer to use "if foo in bar" rather than catching KeyError. | |||||
2014-02-23 | Get rid of another helper variable | Lars Wirzenius | 1 | -2/+1 | |
2014-02-23 | Get rid of another helper variable | Lars Wirzenius | 1 | -3/+2 | |
2014-02-23 | Get rid of helper variable | Lars Wirzenius | 1 | -5/+3 | |
It is no longer used enough to warrant its existence. | |||||
2014-02-23 | Rewrite read() to fix it, simplify and pessimise it | Lars Wirzenius | 1 | -63/+32 | |
The previous code was broken: it assumed that most chunks (all but the last one in a file) were of the same size, and that's not a valid assumption. It is almost always true, but the user may change the chunk size setting for any backup run, and then the assumption is no longer true. The new code is much simpler. It is also, however, much slower, since it has to read through everything. We can optimise this, later, but caching the chunk sizes, and even later by making it possible to find the length of a chunk without downloading it from the repository. | |||||
2014-02-23 | Break huge if/else | Lars Wirzenius | 1 | -49/+49 | |
The then-branch ends in a return, so the else branch doesn't need to be part of the if/else, and can just be de-indented, for a little extra clarity. | |||||
2014-02-23 | Remove unnecessary try/except | Lars Wirzenius | 1 | -69/+62 | |
It was only used for logging, and that's handled top-level just fine. Having it here only obfuscates the code. | |||||
2014-02-23 | Move test outside try/except block | Lars Wirzenius | 1 | -2/+3 | |
There's no point in having it in the block. | |||||
2014-02-23 | Get rid of "mount root" concept | Lars Wirzenius | 1 | -32/+13 | |
This is simpler, and also simplfies the code. | |||||
2014-02-23 | Remove now-unnecessary if (from viewmode deletion) | Lars Wirzenius | 1 | -26/+25 | |
2014-02-23 | Format docstring according to PEP8 | Lars Wirzenius | 1 | -2/+1 | |
2014-02-23 | Remove unused single_root_list method | Lars Wirzenius | 1 | -10/+0 | |