Reporting volume timestamps with -pvd_info
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
|
||||
/* xorriso - creates, loads, manipulates and burns ISO 9660 filesystem images.
|
||||
|
||||
Copyright 2007-2012 Thomas Schmitt, <scdbackup@gmx.net>
|
||||
Copyright 2007-2013 Thomas Schmitt, <scdbackup@gmx.net>
|
||||
|
||||
Provided under GPL version 2 or later.
|
||||
|
||||
@ -243,7 +243,7 @@ int Xorriso_pvd_info(struct XorrisO *xorriso, int flag)
|
||||
IsoImage *image;
|
||||
struct burn_drive_info *dinfo;
|
||||
struct burn_drive *drive;
|
||||
char *msg, block_head[8];
|
||||
char *msg, block_head[8], *crt, *mdt, *ext, *eft;
|
||||
off_t head_count;
|
||||
|
||||
msg= xorriso->result_line;
|
||||
@ -292,6 +292,19 @@ int Xorriso_pvd_info(struct XorrisO *xorriso, int flag)
|
||||
Xorriso_result(xorriso,0);
|
||||
sprintf(msg, "Biblio File : %s\n", xorriso->biblio_file);
|
||||
Xorriso_result(xorriso,0);
|
||||
|
||||
ret= iso_image_get_pvd_times(image, &crt, &mdt, &ext, &eft);
|
||||
if(ret != ISO_SUCCESS)
|
||||
crt= mdt= ext= eft= "";
|
||||
sprintf(msg, "Creation Time: %s\n", crt);
|
||||
Xorriso_result(xorriso,0);
|
||||
sprintf(msg, "Modif. Time : %s\n", mdt);
|
||||
Xorriso_result(xorriso,0);
|
||||
sprintf(msg, "Expir. Time : %s\n", ext);
|
||||
Xorriso_result(xorriso,0);
|
||||
sprintf(msg, "Eff. Time : %s\n", eft);
|
||||
Xorriso_result(xorriso,0);
|
||||
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user