def write_block(self, n, data):
        block_name = str(n)
        log.debug('Writing block %r of inode %r', block_name, self.name)
        try:
            block = self.tt[block_name]
        except __HOLE__:
            block = self.tt.new_blob(block_name)
        block.data = data

        self.storage._autocommit()
dataset/ETHPy150Open mgax/SpaghettiFS/spaghettifs/storage.py/StorageInode.write_block