how to know whether device /dev/hd* is a cdrom in linux with c/c++?
<p>I use xen to creae a vm and pass some information via virtual cdrom, finally, in DomU, I need to know which disk is the cdrom contains information.  The problem is : how can i find the cdrom device name？ </p>
