Re: determining size of cdrom

2001-05-31 Thread Jeff Meininger
> > long sectors = 0; > > ioctl(fd, BLKGETSIZE, §ors); > > /* sectors varies (never seems accurate) and is usually LONG_MAX */ > > At least this is the capacity as reported by the drive when we read the > table of contents. Am I interpreting the return value incorrectly? I nearly always get 2

Re: determining size of cdrom

2001-05-30 Thread Jens Axboe
On Wed, May 30 2001, Jeff Meininger wrote: > > I'm not subscribed to the mailing list, so please Cc a copy of your > replies straight to my email address: [EMAIL PROTECTED] > > > I'm trying to determine the raw size of a cdrom disc, as in the size of > the file you'd get by doing 'dd if=/dev/cd

determining size of cdrom

2001-05-30 Thread Jeff Meininger
I'm not subscribed to the mailing list, so please Cc a copy of your replies straight to my email address: [EMAIL PROTECTED] I'm trying to determine the raw size of a cdrom disc, as in the size of the file you'd get by doing 'dd if=/dev/cdrom of=size_of_this.img'. I've tried the following thing