Re: Identifying CD drives across reboots
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer:sender; bh=rfmv4txCAqlTSPlRAsVTVfWvpVHItxMegZ6MnPJL8eI=; b=X08sucK+bWQEb4PpNzHEqCbopaCzSn5n/MMzVqPOZj9iclxFBdMso8rCk0N3VyAV+IRcuGGaxmLnaYVvNM1v4WFtZSBefIZH4LjOKpaszp1RikKsUOjszNg3uFdon/j8rV7Qb+F1vwFpoVu3b7QDbrGuHIoFsw58Wwx+EgBFtB0= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer:sender; b=hJ8L9PuLFGrbTRb5LYVadTaOm+tA6d5Fw2dtMwPhINLZ68Dzhq6pl5fyVXxQXrlu/ta4o2G6SWct8wMenJwjkVszi7oZWSpx05/Czk+G6d0eqmG+nMfLq5ozb+uzzOwEczn8sZWg8r3x/e/lsTIZFka/gbibUWoby3u87eBTsAE= Hello all, Stephen _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I need to store some metadata about various CD drives, and have that information be accessible across reboots. I have a few ideas but I haven't figured out the best way to handle things yet. My current code does the following: While I can't necessarily provide the answer you are looking for, what I can suggest is checking to see if IORegistryExplorer can see a serial number for your drive. If it does, then it would suggest that there is a way to get it. This is a good idea; unfortunately IORegistryExplorer does not show a serial number for my drive, just the same information I could get already (the Protocol and Device characteristics). I'm thinking of using the IOPath together with the manufacturer's name and model number as the identifier. It won't be guaranteed to be unique, but hopefully it will be close enough since identical devices at the same IOPath should probably behave the same! This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephen F. Booth