2 * This is a (very) simple program to be used when the blocksize on a CDrom
3 * drive gets set to something other than 2048 (such as 2336 when ripping
6 * Uses the 'cdrom_blocksize' routine from libdvd
13 main(int argc, char **argv)
16 char *device = "/dev/rsr1c";
19 errx(1, "raw device name of CDROM drive needed as arg");
22 fd = open(device, O_RDONLY, 0);
24 err(1, "open(%s)", device);
26 if (cdrom_blocksize(fd, 2048))
27 errx(1, "cdrom_blocksize for %s failed\n", device);