Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > New to Mac Development - Read a Sector

New to Mac Development - Read a Sector
Thread Tools
Fresh-Faced Recruit
Join Date: Jun 2003
Location: Thailand
Status: Offline
Reply With Quote
Jun 19, 2003, 09:11 AM
 
HI,

I am new to the whole Mac development environment and have been asked to write a program to read sectors of attached media.

I've worked my way through the example programs, so many documents my eyes are blurring but I seem to be stuck.

I can get the WholeKey filtered IOIterator List (3 items) and can get the device name.

When I try to loop through and read a sector a few things happen. I used debug and found that the IOIteratorNext values change but the returned BSDPathAsString is always the same /240 added to the \dev\r path it looks a little strange (to me at least) and the OpenDrive and subsequent numBytes = read(fileDescriptor, buffer, blockSize ); returns -1.

If anyone has any suggestions it would be greatky appreciated, I have tried a number of different combinations without success.

Thanks in Advance.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:43 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2