[net.micro.mac] Checking for volume busy?

ephraim@wang.UUCP (pri=8 Ephraim Vishniac x76659 ms1459) (03/31/86)

While trying to write a passably safe disk formatting program, I
wanted to check whether the target volume was busy (had open files).
In both the hardcover IM and the 12/85 supplement, the File Manager
chapter says that bit 6 of vcbAtrb will be set if the volume is busy.
In fact, it's set whether the volume is busy or not.  It's even set
in the on-disk copy of the attribute bytes.  I was tempted to use
_GetFCBInfo (tersely described in the 12/85 supplement), but it's
listed in the MDS equates as an HFS-only call.  So, I wound up 
traversing the FCB list myself.  This doesn't give me warm feelings,
even though I check fsFCBLen and vary the FCB size for MFS versus HFS.
I'm not convinced, for example, that it would warn me about files open
inside HFS subdirectories (folders).

Does anyone know a more reliable way to determine whether a volume is busy?

Thanks, Ephraim
decvax!wanginst!wang!ephraim