Back to index

obnam  1.1
Public Member Functions | Public Attributes
obnamlib.plugins.fsck_plugin.CheckBTree Class Reference
Inheritance diagram for obnamlib.plugins.fsck_plugin.CheckBTree:
Inheritance graph
[legend]
Collaboration diagram for obnamlib.plugins.fsck_plugin.CheckBTree:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def do

Public Attributes

 dirname
 name

Detailed Description

Definition at line 233 of file fsck_plugin.py.


Constructor & Destructor Documentation

def obnamlib.plugins.fsck_plugin.CheckBTree.__init__ (   self,
  dirname 
)

Definition at line 235 of file fsck_plugin.py.

00235 
00236     def __init__(self, dirname):
00237         self.dirname = dirname
00238         self.name = 'B-tree %s' % dirname


Member Function Documentation

Definition at line 239 of file fsck_plugin.py.

00239 
00240     def do(self):
00241         if not self.repo.fs.exists(self.dirname):
00242             logging.debug('B-tree %s does not exist, skipping' % self.dirname)
00243             return
00244         logging.debug('Checking B-tree %s' % self.dirname)
00245         forest = larch.open_forest(allow_writes=False, dirname=self.dirname, 
00246                                    vfs=self.repo.fs)
00247         fsck = larch.fsck.Fsck(forest, self.warning, self.error, 
00248                                self.settings['fsck-fix'])
00249         fsck.find_work()
00250         for work in fsck.work:
00251             work.do()
00252 

Here is the call graph for this function:


Member Data Documentation

Definition at line 236 of file fsck_plugin.py.

Definition at line 237 of file fsck_plugin.py.


The documentation for this class was generated from the following file: