implement flu_writeall()