• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: pread and EACCES error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pread and EACCES error?


  • Subject: Re: pread and EACCES error?
  • From: Ed Wynne <email@hidden>
  • Date: Thu, 21 May 2009 15:42:10 -0400

On May 20, 2009, at 2:55 AM, Brian Bergstrand wrote:
Hi all, I'm seeing a weird error from pread in the following setup:

Copying from a 300GB PATA drive connected via USB to another 300GB ATA drive connected via Firewire using the raw char devices for each. After copying about 37GB of data, pread fails on the source USB drive with EACCES (13). According to the man page, this is not a valid error return (although the man page may be out of date).

The copy is done in DKIOCGETMAXBLOCKCOUNTREAD chunks (128KB for ATA).

So where is the EACCES coming from? The IOKit block drivers? And what does it mean in this situation?

Mac OS X 10.5.7 (Darwin 9.7) on Intel.

Thanks for any help?_______________________________________________

Hey Brian,

Potentially strange question... have you tried retrying the failed read? Or retrying after deblocking it to something smaller? Even better would be to watch an ATA or USB bus trace of the failed read. I suspect your issue is originating in the USB bridge, or the USB stack talking to the USB bridge. I'd bet something odd is happening and its bubbling up as the EACCES return. Also, you didn't say the drive was dead after this happens, so I suspect it's something transient.

I've seen this type of thing crop up from time to time with various USB access paths to optical devices. Scary as all get out.

-Ed

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: pread and EACCES error?
      • From: Brian Bergstrand <email@hidden>
References: 
 >pread and EACCES error? (From: Brian Bergstrand <email@hidden>)
 >Re: pread and EACCES error? (From: Terry Lambert <email@hidden>)
 >Re: pread and EACCES error? (From: Brian Bergstrand <email@hidden>)
 >Re: pread and EACCES error? (From: Terry Lambert <email@hidden>)
 >Re: pread and EACCES error? (From: Brian Bergstrand <email@hidden>)

  • Prev by Date: Re: pread and EACCES error?
  • Next by Date: Re: pread and EACCES error?
  • Previous by thread: Re: pread and EACCES error?
  • Next by thread: Re: pread and EACCES error?
  • Index(es):
    • Date
    • Thread