Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hplabs!hpl-opus!hpnmdla!dan From: dan@hpnmdla.HP.COM (Dan Pleasant) Newsgroups: comp.sys.mac.programmer Subject: How does DIZero() work? Message-ID: <450016@hpnmdla.HP.COM> Date: 31 Jan 91 16:52:13 GMT Organization: HP Network Measurements Div, Santa Rosa, CA Lines: 21 Here's a wildly arcane questions for all the Mac disk experts on the net which I'm asking for a friend who does not have net access. As the last step of disk initialization, the system makes a call to DIZero(), which writes zeros on all the sectors of a disk. How does DIZero() know how many tracks/sectors to zero out? For a floppy disk, I assume DIZero() just queries the hardware to find out what kind of foppy is in the drive. But what about removeable hard disks and other non-floppy drives? My friend, who has spent some time trying to figure this out, claims that he has seen the system zero out 1004 (hex) blocks on a large drive and 1008 (hex) on a smaller drive, which seems strange to me. Anybody know the internals of DIZero()? What in the world is it doing? Many thanks to all responders. If there is interest, I'll be happy to re-post the answer to the net. Dan Pleasant