Return if the dicts are equal in the stat keys
'''
keys = [u'type', u'mode',u'size', u'mtime',
- # TODO: check how to restore this correctly if possible
- # u'inode', u'ctime'
+ # not restored: u'inode', u'ctime'
]
# only if user is root, then also check gid/uid. otherwise do not check it,
- # because tarfile can chown in case of being superuser
+ # because tarfile can chown in case of being superuser only
if hasattr(os, "geteuid") and os.geteuid() == 0:
keys.append('gid')
keys.append('uid')
statd['offset'] = tarobj.get_last_member_offset()
self.logger.debug("backup %s" % statd['path'])
- # store in the index the stat dict
+ # store the stat dict in the index
s = bytes(json.dumps(statd) + '\n', 'UTF-8')
crc = binascii.crc32(s, crc) & 0xffffffff
index_fd.write(s)
if not ipath:
action = 'snapshot'
# if the file is not in the directory iterator, it means that it has
- # been deleted, so we need to mark it as suck
+ # been deleted, so we need to mark it as such
elif not dpath:
action = 'delete'
# if the file is in both iterators, it means it might have either