Blocked Reads
Blocked Reads
- Subject: Blocked Reads
- From: colors <email@hidden>
- Date: Wed, 17 Mar 2010 06:49:21 -0700
I am running into a problem with anti-virus software. I need to be able to read a file from a USB CD and I need the read to actually go over the USB bus.
I have been just doing fopen, fread, fclose, etc. and that all works; although, I do set the file to F_NOCACHE with fcntl to make sure that I read the file from the device and not a read cache. I have also tried fpurge.
Unfortunately, the AV software is getting in the way. fread completes happily and gets the correct bytes, but the bytes did not travel across the USB bus. It appears that the AV SW is doing its own cacheing and feeding me the bytes I ask for.
I have also tried to use open, read, close. They do get the data from across the bus, but they also have a side effect of the closing the IOKit service, which makes it look like the device was pulled out of the USB port. Read also reports an I/O Error, even though the bytes are traveling across the bus.
I have also considered making SCSI Read calls or USB Read calls, but it looks like I will only be allowed to do this if I make my own kext.
Does anyone have any thoughts about 1) what the AV SW is doing?, and 2) how to get around what it is doing?
BTY, I know of at least three AV products that cause this problem.
Rich Collyer _______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden