server: Implement flush requests for device files.