> > 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
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
2 matches
Mail list logo