On 8/25/21 9:21 PM, Geoffrey Leach wrote:
I have a script that mounts an MP3 device, copies files and umounts. As I have counted on the umount to hang until the data transfer is complete. That has worked fine until recently. Now the umount finishes, leaving much of the data uncopied.
You're saying that the copy command has finished and then it runs umount? umount will certainly wait until the data is flushed. What's missing on the destination? Is the filesystem corrupted?
Has some parameter been changed inadvertently? Or was I just lucky, and my luck has run out? If so, is there a way to test for the real end of transfer?
You could add a "sync" after the copy and before the "umount". _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure