• 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: Difference between dvd and dmg
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Difference between dvd and dmg


  • Subject: Re: Difference between dvd and dmg
  • From: John Stiles <email@hidden>
  • Date: Wed, 12 Oct 2005 09:08:34 -0700



Gerriet M. Denkmann wrote:


Because pread() wants both nbr_of_bytes and byte_offset to be a multiple of the hardware value, which seems to be 512 in case of my hard disk, and 2048 for cds and dvds.
Somehow I failed to see this on the pread man page.


What can I do to make it work?

Use appropriate values (see above).


Or, if this is impossible: how can I recognize beforehand those filesystems which do not work with pread?


That now becomes a new question:
how to get this hardware value (hardware block-size?) before trying to read?


This may be an artifact of opening up the /dev/rdisk directly.
With a regular file, pread works even when the requested data is not sector-aligned.


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


  • Follow-Ups:
    • Re: Difference between dvd and dmg
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >Re: Difference between dvd and dmg (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Newbie Q: equipping an NSDocument subclass with a window controller (2)
  • Next by Date: Re: Spotlight view
  • Previous by thread: Re: Difference between dvd and dmg
  • Next by thread: Re: Difference between dvd and dmg
  • Index(es):
    • Date
    • Thread