def _consistent(self, cached):
try:
all_fh = [ ]
for vlist in cached.open_handle.values():
all_fh += vlist
for v_fh in all_fh:
assert (None, v_fh) in self._shelfcache, 'Inconsistent list members'
except Exception as e:
self.logger.error('Shadow cache is corrupt: %s' % str(e))
if self.verbose > 3:
set_trace()
raise TmfsOSError(errno.EBADFD)
# Most uses send an open handle fh (integer) as key. truncate by name
# is the exception. An update needs to be reflected for all keys.
评论列表
文章目录