Tim Peeler on Thu, 3 Jun 1999 20:02:45 -0400 (EDT)


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

Re: [Plug] Re: Simple Question...


This doesn't appear to be what I'm looking for.  This looks like
info for audio cds.  Thanks for the trouble though.

Tim

On Thu, 3 Jun 1999, Andrew Libby wrote:

> I was searching through the source code earlier (prompted by your
> post), and I found a few references.  I was not, however, able
> to track them to something definate.  I started (probably as you
> did) looking for serial number, sn, etc.  I did find a reference to
> a 13 digit ASCII string called medium_catalog_number.  This is
> at /usr/src/linux/include/linux/cdrom.h:152.  Now, I don't
> know if this is in fact what you're looking for or not, but I 
> went further.
> 
> I've sited something that says its called the Medium Catalog Number,
> is that what you're looking for?
> 
> From: /usr/usr/linux/drivers/cdrom/cm206.c:1044
> 
> 369     /* The following function is implemented, although very few audio
> 370      * discs give Universal Product Code information, which should just be
> 371      * the Medium Catalog Number on the box.  Note, that the way the code
> 372      * is written on the CD is /not/ uniform across all discs!
> 373      */
> 374             case CDROM_GET_MCN: {
> 375                     struct cdrom_mcn mcn;
> 376                     if (!(cdo->capability & CDC_MCN))
> 377                             return -EINVAL;
> 378                     if (!cdo->get_mcn(dev, &mcn)) {
> 379                             PUTARG(struct cdrom_mcn, mcn);
> 380                             return 0;
> 381                     }
> 382                     return -EINVAL;
> 
> This infor should be available via
> 
> ioctl(fd,CDROM_GET_MCN,snptr);
> 
> Andy
> 
> On Thu, Jun 03, 1999 at 04:57:12PM -0400, Tim Peeler wrote:
> > 
> > 
> > On Thu, 3 Jun 1999, Andrew Libby wrote:
> > 
> > > What are we looking for here?  Are we looking for a serial number on 
> > > the disk itself, or a sn of software on the disk (such as MS office?)
> > > 
> > > Andy
> > > 
> > > :wq!
> > <snip>
> > 
> > I'm looking for the serial number on the disk itself.  I can't find
> > any information as to how or where that would be stored on the cd.
> > 
> > 
> > _______________________________________________
> > Plug maillist  -  Plug@lists.nothinbut.net
> > http://lists.nothinbut.net/mail/listinfo/plug
> 
> _______________________________________________
> Plug maillist  -  Plug@lists.nothinbut.net
> http://lists.nothinbut.net/mail/listinfo/plug
> 


_______________________________________________
Plug maillist  -  Plug@lists.nothinbut.net
http://lists.nothinbut.net/mail/listinfo/plug