Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 133889
Collapse All | Expand All

(-)dvd+rw-tools-6.1/growisofs_mmc.cpp (-4 / +22 lines)
Lines 1512-1519 Link Here
1512
	cmd[1] = 0x01;		// "IMMED"
1512
	cmd[1] = 0x01;		// "IMMED"
1513
	cmd[2] = 0x02;		// "Close session"
1513
	cmd[2] = 0x02;		// "Close session"
1514
	cmd[9] = 0;
1514
	cmd[9] = 0;
1515
	if ((err=cmd.transport()))
1515
	
1516
	    sperror ("CLOSE SESSION",err);
1516
	// it seems, that pioneer is a bit crappy
1517
	while (err=cmd.transport()) {
1518
	    if (SK(err)==0x2 && ASC(err)==0x04 && ASCQ(err)==0x07) {
1519
		    sperror ("CLOSE SESSION (but try to continue)",err);
1520
		    usleep(10000);
1521
	    } else {
1522
		    sperror ("CLOSE SESSION",err);
1523
		    break;
1524
	    }
1525
	}
1517
1526
1518
	if (wait_for_unit (cmd)) break;
1527
	if (wait_for_unit (cmd)) break;
1519
 
1528
 
Lines 1600-1607 Link Here
1600
	    cmd[1] = 0x01;		// "IMMED"
1609
	    cmd[1] = 0x01;		// "IMMED"
1601
	    cmd[2] = 0x02;		// "Close Session"
1610
	    cmd[2] = 0x02;		// "Close Session"
1602
	    cmd[9] = 0;
1611
	    cmd[9] = 0;
1603
	    if ((err=cmd.transport()))
1612
1604
		sperror ("CLOSE SESSION",err);
1613
	    // it seems, that pioneer is a bit crappy
1614
	    while (err=cmd.transport()) {
1615
	        if (SK(err)==0x2 && ASC(err)==0x04 && ASCQ(err)==0x07) {
1616
	    	    sperror ("CLOSE SESSION (but try to continue)",err);
1617
	    	    usleep(10000);
1618
	        } else {
1619
	    	    sperror ("CLOSE SESSION",err);
1620
	    	    break;
1621
	        }
1622
	    }
1605
1623
1606
	    if (wait_for_unit (cmd)) break;
1624
	    if (wait_for_unit (cmd)) break;
1607
1625

Return to bug 133889