Displaying eventual BD spare area information with -minfo

ZeroEightEight
Thomas Schmitt 12 years ago
parent f14b66a09b
commit 45353dee67
  1. 7
      cdrskin/cdrskin.c
  2. 2
      cdrskin/cdrskin_timestamp.h

@ -5143,7 +5143,7 @@ int Cdrskin_minfo(struct CdrskiN *skin, int flag)
#endif
char media_class[80];
int nominal_sessions= 1, ftils= 1, ltils= 1, first_track= 1, read_capacity= 0;
int app_code, cd_info_valid, lra;
int app_code, cd_info_valid, lra, alloc_blocks, free_blocks;
off_t avail, buf_count;
char disc_type[80], bar_code[9], buf[2 * 2048];
unsigned int disc_id;
@ -5225,6 +5225,7 @@ int Cdrskin_minfo(struct CdrskiN *skin, int flag)
printf("number of sessions: %d\n", nominal_sessions);
printf("first track in last sess: %d\n", ftils);
printf("last track in last sess: %d\n", ltils);
ret= burn_disc_get_bd_spare_info(drive, &alloc_blocks, &free_blocks, 0);
burn_disc_get_cd_info(drive, disc_type, &disc_id, bar_code, &app_code,
&cd_info_valid);
@ -5239,6 +5240,10 @@ int Cdrskin_minfo(struct CdrskiN *skin, int flag)
printf("Disk type: unrecognizable\n");
if(cd_info_valid & 2)
printf("Disk id: 0x%-X\n", disc_id);
if(ret == 1) {
printf("BD Spare Area consumed: %d\n", alloc_blocks - free_blocks);
printf("BD Spare Area available: %d\n", free_blocks);
}
printf("\n");
printf("Track Sess Type Start Addr End Addr Size\n");

@ -1 +1 @@
#define Cdrskin_timestamP "2010.09.24.090631"
#define Cdrskin_timestamP "2010.09.24.090731"

Loading…
Cancel
Save