Search code examples
perlcopysamba

What does "Inappropriate I/O control operation" error mean when copying files from windows folder to a samba share using Perl


My question is a little specific, I'm copying files from a windows folder to a Linux samba share using Perl, and periodically, I get an error like this: Inappropriate I/O control operation, which ended up with a corrupted file with the exact same size as the source file. I need to figure out if this is a network issue, or something else. Could somebody enlighten me on this one. Thanks very much in advance!

David


Solution

  • I recently got this error from a Perl script that attempted to access (via Archive::Extract) a non-existent file on a samba share.