Back to index

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

List of all members.

Public Member Functions

def __init__
def do

Public Attributes

 filename
 name
 correct
 chunkids
 checksummer

Detailed Description

Definition at line 65 of file fsck_plugin.py.


Constructor & Destructor Documentation

def obnamlib.plugins.fsck_plugin.CheckFileChecksum.__init__ (   self,
  filename,
  correct,
  chunkids,
  checksummer 
)

Definition at line 67 of file fsck_plugin.py.

00067 
00068     def __init__(self, filename, correct, chunkids, checksummer):
00069         self.filename = filename
00070         self.name = '%s checksum' % filename
00071         self.correct = correct
00072         self.chunkids = chunkids
00073         self.checksummer = checksummer
        

Member Function Documentation

Definition at line 74 of file fsck_plugin.py.

00074 
00075     def do(self):
00076         logging.debug('Checking whole-file checksum for %s' % self.filename)
00077         if self.correct != self.checksummer.digest():
00078             self.error('%s whole-file checksum mismatch' % self.name)
00079 

Here is the call graph for this function:


Member Data Documentation

Definition at line 72 of file fsck_plugin.py.

Definition at line 71 of file fsck_plugin.py.

Definition at line 70 of file fsck_plugin.py.

Definition at line 68 of file fsck_plugin.py.

Definition at line 69 of file fsck_plugin.py.


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