• 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: fcntl() equivelent for kFSForceReadMask?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fcntl() equivelent for kFSForceReadMask?


  • Subject: Re: fcntl() equivelent for kFSForceReadMask?
  • From: Ken Hornstein <email@hidden>
  • Date: Tue, 30 Oct 2012 22:13:00 -0400

>What I'd like to be able to do is, after reading what I suspect
>is corrupted data, request a physical re-read of the data from
>the device. I can't locate any commands to fcntl() that would,
>for example, force the previously buffered data blocks for a
>file to be discarded, or to request the device re-read the data
>from the physical media.

AFAIK, this is not possible in any meaningful way.  In a semi-related
note ...  I once had a CD-ROM that was corrupted in such a way that
the only way of ejecting it was a hard power cycle.  Some more
investigation revealed that the Finder was waiting for information
on the CD-ROM and somewhere in the OS it kept trying to read it,
and that never completed (we're talking about hours here).  The
system was still usable (except for the CD-ROM drive), though.  This
was a few major OS revisions ago so I don't know if it would still
happen, but my point is that you're kinda limited as to what you
can do at the userspace level if you've got problems with the
underlying media.

--Ken
 _______________________________________________
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

References: 
 >Re: fcntl() equivelent for kFSForceReadMask? (From: James Bucanek <email@hidden>)

  • Prev by Date: Re: fcntl() equivelent for kFSForceReadMask?
  • Previous by thread: Re: fcntl() equivelent for kFSForceReadMask?
  • Index(es):
    • Date
    • Thread