Re: [libvirt] [PATCH v3 1/2] util: Refactor virFileIsCDROM to virFileCheckCDROM

2018-07-18 Thread John Ferlan
On 07/11/2018 05:44 AM, Han Han wrote: > Rename virFileIsCDROM to virFileCheckCDROM and add enum type > virFileCDRomStatus of cdrom statuses. Add argument cd_status in > virFileCheckCDROM filled with cdrom status. > > Now virFileCheckCDROM could be used to check the cdrom drive status such >

[libvirt] [PATCH v3 1/2] util: Refactor virFileIsCDROM to virFileCheckCDROM

2018-07-11 Thread Han Han
Rename virFileIsCDROM to virFileCheckCDROM and add enum type virFileCDRomStatus of cdrom statuses. Add argument cd_status in virFileCheckCDROM filled with cdrom status. Now virFileCheckCDROM could be used to check the cdrom drive status such as no info, no disc, tray open, drive not ready or ok.