/[rdiff-backup]/rdiff-backup/rdiff_backup/metadata.py
ViewVC logotype

Diff of /rdiff-backup/rdiff_backup/metadata.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by bescoto, Mon May 31 22:20:54 2004 UTC revision 1.17 by bescoto, Thu Oct 27 06:16:39 2005 UTC
# Line 119  def RORP2Record(rorpath): Line 119  def RORP2Record(rorpath):
119                                  str_list.append("  Inode %s\n" % rorpath.getinode())                                  str_list.append("  Inode %s\n" % rorpath.getinode())
120                                  str_list.append("  DeviceLoc %s\n" % rorpath.getdevloc())                                  str_list.append("  DeviceLoc %s\n" % rorpath.getdevloc())
121    
122                    # Save any hashes, if available
123                    if rorpath.has_sha1():
124                            str_list.append('  SHA1Digest %s\n' % rorpath.get_sha1())
125    
126          elif type == "None": return "".join(str_list)          elif type == "None": return "".join(str_list)
127          elif type == "dir" or type == "sock" or type == "fifo": pass          elif type == "dir" or type == "sock" or type == "fifo": pass
128          elif type == "sym":          elif type == "sym":
# Line 166  def Record2RORP(record_string): Line 170  def Record2RORP(record_string):
170                  elif field == "CarbonFile":                  elif field == "CarbonFile":
171                          if data == "None": data_dict['carbonfile'] = None                          if data == "None": data_dict['carbonfile'] = None
172                          else: data_dict['carbonfile'] = string2carbonfile(data)                          else: data_dict['carbonfile'] = string2carbonfile(data)
173                    elif field == "SHA1Digest": data_dict['sha1'] = data
174                  elif field == "NumHardLinks": data_dict['nlink'] = int(data)                  elif field == "NumHardLinks": data_dict['nlink'] = int(data)
175                  elif field == "Inode": data_dict['inode'] = long(data)                  elif field == "Inode": data_dict['inode'] = long(data)
176                  elif field == "DeviceLoc": data_dict['devloc'] = long(data)                  elif field == "DeviceLoc": data_dict['devloc'] = long(data)

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26