NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/47676: Off-by-one error in reported CD capacity means last sector cannot be read



The following reply was made to PR kern/47676; it has been noted by GNATS.

From: mlelstv%serpens.de@localhost (Michael van Elst)
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/47676: Off-by-one error in reported CD capacity means last 
sector cannot be read
Date: Thu, 21 Mar 2013 17:28:31 +0000 (UTC)

 Seems to be slightly more complex.
 
 read_cd_capacity(struct scsipi_periph *periph, u_int *blksize, u_long *size)
 error = read_cd_capacity(cd->sc_periph, &blksize, &size);
 error = read_cd_capacity(cd->sc_periph, &blksize, &size);
 error = read_cd_capacity(periph, &mmc_discinfo->sector_size, &last_lba);
 
 One time the caller apparently expects the last_lba value as is returned
 by the READ RECORDED CD CAPACITY command.
 
 -- 
 -- 
                                 Michael van Elst
 Internet: mlelstv%serpens.de@localhost
                                 "A potential Snark may lurk in every tree."
 


Home | Main Index | Thread Index | Old Index