Browse Source

New error code ISO_HFSPLUS_TOO_MANY_FILES instead of ISO_MANGLE_TOO_MUCH_FILES

release-1.5.4.branch
Thomas Schmitt 8 months ago
parent
commit
69e332d17a
3 changed files with 7 additions and 2 deletions
  1. +2
    -2
      libisofs/hfsplus.c
  2. +3
    -0
      libisofs/libisofs.h
  3. +2
    -0
      libisofs/messages.c

+ 2
- 2
libisofs/hfsplus.c View File

@ -1790,9 +1790,9 @@ int hfsplus_writer_create(Ecma119Image *target)
if (target->hfsp_nnodes > (cat_node_size - 0x100) * 8)
{
iso_msg_submit(target->image->id, ISO_MANGLE_TOO_MUCH_FILES, 0,
iso_msg_submit(target->image->id, ISO_HFSPLUS_TOO_MANY_FILES, 0,
"HFS+ map nodes aren't implemented");
ret = ISO_MANGLE_TOO_MUCH_FILES;
ret = ISO_HFSPLUS_TOO_MANY_FILES;
goto ex;
}


+ 3
- 0
libisofs/libisofs.h View File

@ -9043,6 +9043,9 @@ int iso_conv_name_chars(IsoWriteOpts *opts, char *name, size_t name_len,
/** El-Torito EFI image is hidden (NOTE,HIGH, -421) */
#define ISO_ELTO_EFI_HIDDEN 0xB030FE5B
/** Too many files in HFS+ directory tree (FAILURE, HIGH, -422) */
#define ISO_HFSPLUS_TOO_MANY_FILES 0xE830FE5A
/* Internal developer note:
Place new error codes directly above this comment.


+ 2
- 0
libisofs/messages.c View File

@ -555,6 +555,8 @@ const char *iso_error_to_msg(int errcode)
return "Multi-session would overwrite imported_iso interval";
case ISO_ELTO_EFI_HIDDEN:
return "El-Torito EFI image is hidden";
case ISO_HFSPLUS_TOO_MANY_FILES:
return "Too many files in HFS+ directory tree";
default:
return "Unknown error";
}


Loading…
Cancel
Save