2613:
2614: /* If things worked ok, lock the door and read the
2615: TOC information. */
2616: if (stat == 0 || my_reqbuf.sense_key == UNIT_ATTENTION) {
2617: (void) cdrom_lockdoor (drive, 1, &my_reqbuf);
2618: (void) cdrom_read_toc (drive, &my_reqbuf);
2619: }
2620: }
2621:
2619行から2620行の間に下記のように追加します。
2613:
2614: /* If things worked ok, lock the door and read the
2615: TOC information. */
2616: if (stat == 0 || my_reqbuf.sense_key == UNIT_ATTENTION) {
2617: (void) cdrom_lockdoor (drive, 1, &my_reqbuf);
2618: (void) cdrom_read_toc (drive, &my_reqbuf);
2619: }
else {
cdrom_eject(drive, 0, &my_reqbuf);
--drive->usage;
return -ENXIO;
}
2620: }
2621:
(2) umount実行時のトレイ自動オープン