[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-xorriso] driver and disc ID acquiring, hidden track
From: |
Thomas Schmitt |
Subject: |
Re: [Bug-xorriso] driver and disc ID acquiring, hidden track |
Date: |
Sun, 18 Oct 2015 15:37:22 +0200 |
Hi,
i now committed revisions 5493, 5494, 5495 to libburnia SVN.
They introduce two new calls of libburn:
------------------------------------------------------------------------
/** Returns the Drive Serial Number as of MMC feature 108h.
@param d The drive to inquire.
@param sno Returns the bytes of the serial number. A trailing 0-byte
is appended for convenience. MMC specifies ASCII 0x20 to
0x7h as possible byte values. But given drive firmware
habits there is no warranty that *sno contains no other
byte values.
Submit *sno as NULL or pointing to free()-able memory.
Apply free() to *sno when no longer needed.
@param sno_len Returns the number of valid bytes in returned *sno,
not counting the appended trailing 0.
@return 1= success (but maybe *sno_len is 0), <= 0 severe failure
@since 1.4.2
*/
int burn_drive_get_serial_no(struct burn_drive *d, char **sno, int *sno_len);
/** Returns the Media Serial Number as of MMC feature 109h and command ABh
READ MEDIA SERIAL NUMBER.
Note: This call will return an empty result unless the macro
Libburn_enable_scsi_cmd_ABh
is defined at compile time.
This is because the command READ MEDIA SERIAL NUMBER demands
superuser authority on Linux, because no medium with serial number
could be tested yet, and because this command made one of the test
drives unusable until power cycle when it was executed despite
feature 109h was not announced as "current".
@param d The drive to inquire.
@param sno Returns the bytes of the serial number. A trailing 0-byte
is appended for convenience. There is no warranty that
*sno contains no other byte values.
Submit *sno as NULL or pointing to free()-able memory.
Apply free() to *sno when no longer needed.
@param sno_len Returns the number of valid bytes in returned *sno,
not counting the appended trailing 0.
@return 1= success (but maybe *sno_len is 0), <= 0 severe failure
@since 1.4.2
*/
int burn_drive_get_media_sno(struct burn_drive *d, char **sno, int *sno_len);
------------------------------------------------------------------------
xorriso and cdrskin now report in the output of their -toc commands
"Drive id" and "Media id". The latter only if you daringly define
the macro Libburn_enable_scsi_cmd_ABh, if your medium has a serial
number, and if your drive can stand command ABh.
Have a nice day :)
Thomas
- [Bug-xorriso] driver and disc ID acquiring, hidden track, Ri-Ping YU, 2015/10/16
- Re: [Bug-xorriso] driver and disc ID acquiring, hidden track, Thomas Schmitt, 2015/10/17
- Re: [Bug-xorriso] driver and disc ID acquiring, hidden track, Thomas Schmitt, 2015/10/17
- Re: [Bug-xorriso] driver and disc ID acquiring, hidden track,
Thomas Schmitt <=
- Re: [Bug-xorriso] driver and disc ID acquiring, hidden track, Ri-Ping YU, 2015/10/28
- Re: [Bug-xorriso] driver and disc ID acquiring, hidden track, Thomas Schmitt, 2015/10/28
- Re: [Bug-xorriso] driver and disc ID acquiring, hidden track, Ri-Ping YU, 2015/10/30
- Re: [Bug-xorriso] driver and disc ID acquiring, hidden track, Thomas Schmitt, 2015/10/30
- Re: [Bug-xorriso] driver and disc ID acquiring, hidden track, Ri-Ping YU, 2015/10/30
- Re: [Bug-xorriso] driver and disc ID acquiring, hidden track, Thomas Schmitt, 2015/10/31