Made bug fix Libisofs_external_filters_selecT unconditional
This commit is contained in:
parent
e8f8876ee6
commit
854a3b8088
@ -419,11 +419,7 @@ int ecma119_writer_write_vol_desc(IsoImageWriter *writer)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
#ifdef Libisofs_use_parent_for_dot_doT
|
|
||||||
int write_one_dir(Ecma119Image *t, Ecma119Node *dir, Ecma119Node *parent)
|
int write_one_dir(Ecma119Image *t, Ecma119Node *dir, Ecma119Node *parent)
|
||||||
#else
|
|
||||||
int write_one_dir(Ecma119Image *t, Ecma119Node *dir)
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
uint8_t buffer[BLOCK_SIZE];
|
uint8_t buffer[BLOCK_SIZE];
|
||||||
@ -466,11 +462,7 @@ int write_one_dir(Ecma119Image *t, Ecma119Node *dir)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
len = 34 + info.suf_len;
|
len = 34 + info.suf_len;
|
||||||
#ifdef Libisofs_use_parent_for_dot_doT
|
|
||||||
write_one_dir_record(t, parent, 1, buf, 1, &info, 0);
|
write_one_dir_record(t, parent, 1, buf, 1, &info, 0);
|
||||||
#else
|
|
||||||
write_one_dir_record(t, dir, 1, buf, 1, &info, 0);
|
|
||||||
#endif
|
|
||||||
buf += len;
|
buf += len;
|
||||||
|
|
||||||
for (i = 0; i < dir->info.dir->nchildren; i++) {
|
for (i = 0; i < dir->info.dir->nchildren; i++) {
|
||||||
@ -527,24 +519,13 @@ int write_one_dir(Ecma119Image *t, Ecma119Node *dir)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
#ifdef Libisofs_use_parent_for_dot_doT
|
|
||||||
|
|
||||||
/* ts A90309 : todo ? : rename parameter "root" to "dir" */
|
|
||||||
|
|
||||||
int write_dirs(Ecma119Image *t, Ecma119Node *root, Ecma119Node *parent)
|
int write_dirs(Ecma119Image *t, Ecma119Node *root, Ecma119Node *parent)
|
||||||
#else
|
|
||||||
int write_dirs(Ecma119Image *t, Ecma119Node *root)
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
/* write all directory entries for this dir */
|
/* write all directory entries for this dir */
|
||||||
#ifdef Libisofs_use_parent_for_dot_doT
|
|
||||||
ret = write_one_dir(t, root, parent);
|
ret = write_one_dir(t, root, parent);
|
||||||
#else
|
|
||||||
ret = write_one_dir(t, root);
|
|
||||||
#endif
|
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -553,11 +534,7 @@ int write_dirs(Ecma119Image *t, Ecma119Node *root)
|
|||||||
for (i = 0; i < root->info.dir->nchildren; i++) {
|
for (i = 0; i < root->info.dir->nchildren; i++) {
|
||||||
Ecma119Node *child = root->info.dir->children[i];
|
Ecma119Node *child = root->info.dir->children[i];
|
||||||
if (child->type == ECMA119_DIR) {
|
if (child->type == ECMA119_DIR) {
|
||||||
#ifdef Libisofs_use_parent_for_dot_doT
|
|
||||||
ret = write_dirs(t, child, root);
|
ret = write_dirs(t, child, root);
|
||||||
#else
|
|
||||||
ret = write_dirs(t, child);
|
|
||||||
#endif
|
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -676,11 +653,7 @@ int ecma119_writer_write_data(IsoImageWriter *writer)
|
|||||||
t = writer->target;
|
t = writer->target;
|
||||||
|
|
||||||
/* first of all, we write the directory structure */
|
/* first of all, we write the directory structure */
|
||||||
#ifdef Libisofs_use_parent_for_dot_doT
|
|
||||||
ret = write_dirs(t, t->root, t->root);
|
ret = write_dirs(t, t->root, t->root);
|
||||||
#else
|
|
||||||
ret = write_dirs(t, t->root);
|
|
||||||
#endif
|
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -491,7 +491,7 @@ int extf_stream_read(IsoStream *stream, void *buf, size_t desired)
|
|||||||
/* No sleeping needs 90 % more CPU and saves 6 % time */
|
/* No sleeping needs 90 % more CPU and saves 6 % time */
|
||||||
usleep(1000); /* go lazy because the filter is slow */
|
usleep(1000); /* go lazy because the filter is slow */
|
||||||
|
|
||||||
#endif /* NIX */
|
#endif /* ! Libisofs_external_filters_selecT */
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -5035,14 +5035,6 @@ struct burn_source {
|
|||||||
/* ----------------------------- Bug Fixes ----------------------------- */
|
/* ----------------------------- Bug Fixes ----------------------------- */
|
||||||
|
|
||||||
|
|
||||||
/* Bug Fix : Augment ecma119.c:write_dirs() by parameter parent
|
|
||||||
and use that one for the second directory entry 001 = "..".
|
|
||||||
|
|
||||||
Everything else seems wrong.
|
|
||||||
*/
|
|
||||||
#define Libisofs_use_parent_for_dot_doT yes
|
|
||||||
|
|
||||||
|
|
||||||
/* Bug fix : Use correct size of 237 if the ER of RRIP-1.10 shal be written
|
/* Bug fix : Use correct size of 237 if the ER of RRIP-1.10 shal be written
|
||||||
(rather than size 182 of RRIP-1.12)
|
(rather than size 182 of RRIP-1.12)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user