Done major changes to libisofs, including multisession and reading support
This commit is contained in:
@ -81,6 +81,11 @@ int main(int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!iso_init()) {
|
||||
err(1, "Can't init libisofs");
|
||||
}
|
||||
iso_msgs_set_severities("NEVER", "ALL", "");
|
||||
|
||||
src = data_source_from_file(argv[1]);
|
||||
if (src == NULL) {
|
||||
printf ("Can't open image\n");
|
||||
@ -89,6 +94,12 @@ int main(int argc, char **argv)
|
||||
|
||||
opts.block = 0;
|
||||
opts.norock = 0;
|
||||
opts.nojoliet = 0;
|
||||
opts.preferjoliet = 1;
|
||||
opts.mode = 0555;
|
||||
opts.uid = 0;
|
||||
opts.gid = 0;
|
||||
|
||||
volset = iso_volset_read(src, &opts);
|
||||
|
||||
if (volset == NULL) {
|
||||
@ -110,6 +121,11 @@ int main(int argc, char **argv)
|
||||
printf("Abstract: %s\n", iso_volume_get_abstract_file_id(volume));
|
||||
printf("Biblio: %s\n", iso_volume_get_biblio_file_id(volume));
|
||||
|
||||
if (opts.hasRR)
|
||||
printf("Rock Ridge Extensions are available.\n");
|
||||
if (opts.hasJoliet)
|
||||
printf("Joliet Extensions are available.\n");
|
||||
|
||||
printf("\nDIRECTORY TREE\n");
|
||||
printf("==============\n");
|
||||
|
||||
@ -120,5 +136,7 @@ int main(int argc, char **argv)
|
||||
data_source_free(src);
|
||||
iso_volset_free(volset);
|
||||
|
||||
iso_finish();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user