def scan(self, ignore_mounts=True): # Ensure our mount points and skip dirs are up to date for mount_point, fs_id in self.body_db.fs_db.mounts.iteritems(): self.fs_id_map[ mount_point ] = fs_id if ignore_mounts: for mount, is_local in fs.get_mount_table().iteritems(): if not is_local: self.filter.add_ignore( mount ) self.recursive_scan( self.fs_root, self.body_db.db_root['/'] )
def check_filesystems(self): mtbl = fs.get_mount_table() for mount, is_local in mtbl.iteritems(): if is_local and not mount in self.mounts: self.add_mount( mount )