The function comes out of waitforfinished but complete data is not copied to USB disk. How we can ensure that the data is first flushed in USB and then waitforfinished.
Is there any command(QT/Linux) to flush the data to USB.
Dear @amolyp, can you confirm that there is data pending to be written? You can check in another terminal if the operations is being done with watch -n1 grep -e Dirty: -e Writeback: /proc/meminfo (Dirty being the total amount of memory, in kibibytes, waiting to be written back to the disk, and writeback, the total amount of memory, in kibibytes, actively being written back to the disk).
The watch command does show the data waiting to be written back to disk and data actively being written back to disk. However we want a command that will write the data immediately to flash disk.
Below is link to video showing how the qt application wait screen goes off before the complete data is written to flash disk.