Back to index

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

List of all members.

Public Member Functions

def __init__
def do

Public Attributes

 client_name
 genid
 filename
 name

Detailed Description

Definition at line 80 of file fsck_plugin.py.


Constructor & Destructor Documentation

def obnamlib.plugins.fsck_plugin.CheckFile.__init__ (   self,
  client_name,
  genid,
  filename 
)

Definition at line 82 of file fsck_plugin.py.

00082 
00083     def __init__(self, client_name, genid, filename):
00084         self.client_name = client_name
00085         self.genid = genid
00086         self.filename = filename
00087         self.name = '%s:%s:%s' % (client_name, genid, filename)


Member Function Documentation

Definition at line 88 of file fsck_plugin.py.

00088 
00089     def do(self):
00090         logging.debug('Checking client=%s genid=%s filename=%s' %
00091                         (self.client_name, self.genid, self.filename))
00092         if self.repo.current_client != self.client_name:
00093             self.repo.open_client(self.client_name)
00094         metadata = self.repo.get_metadata(self.genid, self.filename)
00095         if metadata.isfile():
00096             chunkids = self.repo.get_file_chunks(self.genid, self.filename)
00097             checksummer = self.repo.new_checksummer()
00098             for chunkid in chunkids:
00099                 yield CheckChunk(chunkid, checksummer)
00100             yield CheckFileChecksum(self.name, metadata.md5, chunkids,
00101                                      checksummer)
00102 


Member Data Documentation

Definition at line 83 of file fsck_plugin.py.

Definition at line 85 of file fsck_plugin.py.

Definition at line 84 of file fsck_plugin.py.

Definition at line 86 of file fsck_plugin.py.


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