wheybags / wcp

Experimental file copy tool using io_uring
MIT License
198 stars 7 forks source link

does not handle named pipes; error causes status display to stop #14

Open idallen opened 1 year ago

idallen commented 1 year ago

I was copying a TB or two of data and it choked on a "named pipe" file, issued an error message, and after that the status display only incremented the Elapsed time field and none of the other fields. The copy operation appears to be continuing but the status display is not being updated. The iotop command suggests the disk copy speeds have dropped to a few MB/sec, down from several hundred MB/sec to start. The data includes a large number of small files, which can slow things down, and atop says the source md0 disk array is at busy 101% for read operations.

Also: I note that the error message does not include the name of the program issuing it. We sysadmin hate tracking down that sort of unidentified error message in our log files and cron jobs. Please consider adding argv[0] to the start of all program messages.

# wcp /mnt/disk1raid5/3tbA/. /mnt/3tbA

Unhandled file type: "/mnt/disk1raid5/3tbA/./foo": 1                     Calculating, found: 230.02 GiB                         
 Elapsed: 9m43s                  32.79 GiB / ???            0.00 B/s   ETA: ??? 
                         Calculating, found: 237.91 GiB