Removed some development remarks

This commit is contained in:
Thomas Schmitt 2009-05-30 16:36:54 +02:00
parent 2f48297d25
commit 4353a35c59
8 changed files with 41 additions and 24 deletions

View File

@ -890,7 +890,11 @@ int ecma119_image_new(IsoImage *src, IsoWriteOpts *opts, Ecma119Image **img)
target->hardlinks = opts->hardlinks; target->hardlinks = opts->hardlinks;
target->aaip = opts->aaip; target->aaip = opts->aaip;
target->always_gmt = opts->always_gmt; target->always_gmt = opts->always_gmt;
#ifndef Libisofs_hardlink_matcheR
target->ino = 0; target->ino = 0;
#endif
target->omit_version_numbers = opts->omit_version_numbers target->omit_version_numbers = opts->omit_version_numbers
| opts->max_37_char_filenames; | opts->max_37_char_filenames;
target->allow_deep_paths = opts->allow_deep_paths; target->allow_deep_paths = opts->allow_deep_paths;

View File

@ -334,6 +334,8 @@ struct ecma119_image
int sort_files; int sort_files;
#ifndef Libisofs_hardlink_matcheR
/* ts A90508 : <<< this is on its way out */ /* ts A90508 : <<< this is on its way out */
/** /**
* In the CD, each file must have an unique inode number. So each * In the CD, each file must have an unique inode number. So each
@ -341,6 +343,8 @@ struct ecma119_image
*/ */
ino_t ino; ino_t ino;
#endif /* ! Libisofs_hardlink_matcheR */
char *input_charset; char *input_charset;
char *output_charset; char *output_charset;

View File

@ -95,10 +95,7 @@ int get_iso_name(Ecma119Image *img, IsoNode *iso, char **name)
static static
int create_ecma119_node(Ecma119Image *img, IsoNode *iso, Ecma119Node **node) int create_ecma119_node(Ecma119Image *img, IsoNode *iso, Ecma119Node **node)
{ {
int ret;
Ecma119Node *ecma; Ecma119Node *ecma;
unsigned int fs_id;
dev_t dev_id;
ecma = calloc(1, sizeof(Ecma119Node)); ecma = calloc(1, sizeof(Ecma119Node));
if (ecma == NULL) { if (ecma == NULL) {
@ -109,28 +106,38 @@ int create_ecma119_node(Ecma119Image *img, IsoNode *iso, Ecma119Node **node)
ecma->node = iso; ecma->node = iso;
iso_node_ref(iso); iso_node_ref(iso);
/* TODO #00009 : add true support for harlinks and inode numbers */
ecma->nlink = 1; ecma->nlink = 1;
#ifndef Libisofs_hardlink_matcheR
/* ts A90503 : This is obsolete with Libisofs_hardlink_matcheR
which will later hand out image inode numbers for all. */
#ifdef Libisofs_hardlink_prooF #ifdef Libisofs_hardlink_prooF
/* >>> ts A90503 : this is obsolete with Libisofs_hardlink_matcheR */
/*ts A90428 */ /*ts A90428 */
/* Looking only for valid ISO image inode numbers. */ /* Looking only for valid ISO image inode numbers. */
ret = iso_node_get_id(iso, &fs_id, &dev_id, &(ecma->ino), 1); {
if (ret < 0) { unsigned int fs_id;
return ret; dev_t dev_id;
} else if (ret == 0) { int ret;
/* What has not got a valid ISO image inode yet, gets it now. */
ecma->ino = img_give_ino_number(img->image, 0); ret = iso_node_get_id(iso, &fs_id, &dev_id, &(ecma->ino), 1);
if (ret < 0) {
return ret;
} else if (ret == 0) {
/* What has not got a valid ISO image inode yet, gets it now. */
ecma->ino = img_give_ino_number(img->image, 0);
}
} }
#else /* Libisofs_hardlink_prooF */ #else /* Libisofs_hardlink_prooF */
/* TODO #00009 : add true support for harlinks and inode numbers */
ecma->ino = ++img->ino; ecma->ino = ++img->ino;
#endif /* ! Libisofs_hardlink_prooF */ #endif /* ! Libisofs_hardlink_prooF */
#endif /* ! Libisofs_hardlink_matcheR */
*node = ecma; *node = ecma;
return ISO_SUCCESS; return ISO_SUCCESS;

View File

@ -62,8 +62,6 @@ struct ecma119_node
IsoNode *node; /*< reference to the iso node */ IsoNode *node; /*< reference to the iso node */
/* TODO #00009 : add true support for harlinks and inode numbers */
/* >>> ts A90501 : Shouldn't this be uint32_t /* >>> ts A90501 : Shouldn't this be uint32_t
as this is what PX will take ? */ as this is what PX will take ? */
ino_t ino; ino_t ino;

View File

@ -1642,11 +1642,6 @@ int iso_file_source_new_ifs(IsoImageFilesystem *fs, IsoFileSource *parent,
ifsdata = (ImageFileSourceData*) (*src)->data; ifsdata = (ImageFileSourceData*) (*src)->data;
ifsdata->name = name; ifsdata->name = name;
/* >>> ts A90427 : What about final treatment ?
How does directory relocation relate to inode
numbers and hard links ?
*/
return ISO_SUCCESS; return ISO_SUCCESS;
} }

View File

@ -5447,9 +5447,9 @@ struct burn_source {
/* Experiment: Ignore PX inode numbers, /* Experiment: Ignore PX inode numbers,
have boot image inode number counted by fs_give_ino_number() have boot image inode number counted by fs_give_ino_number()
<<< Overridden if Libisofs_hardlink_prooF is defined. Overridden if Libisofs_hardlink_prooF is defined.
#define Libisofs_new_fs_image_inO yes
*/ */
#define Libisofs_new_fs_image_inO yes
/* Experiment: Write obsolete RR entries with Rock Ridge. /* Experiment: Write obsolete RR entries with Rock Ridge.

View File

@ -2254,7 +2254,7 @@ int iso_node_zf_by_magic(IsoNode *node, int flag)
} }
/* <<< ts A90427 : to some other source module ? In what .h ? */ /* ts A90427 */
int iso_px_ino_xinfo_func(void *data, int flag) int iso_px_ino_xinfo_func(void *data, int flag)
{ {
if (flag == 1) { if (flag == 1) {
@ -2555,7 +2555,7 @@ image_inode_match:;
if (n1->ctime != n2->ctime) if (n1->ctime != n2->ctime)
return (n1->ctime < n2->ctime ? -1 : 1); return (n1->ctime < n2->ctime ? -1 : 1);
/* >>> compare xinfo */; /* Compare xinfo */
/* :( cannot compare general xinfo because data length is not known :( */ /* :( cannot compare general xinfo because data length is not known :( */
/* compare aa_string */ /* compare aa_string */

View File

@ -739,9 +739,14 @@ int iso_stream_cmp_ino(IsoStream *s1, IsoStream *s2, int flag)
off_t size1, size2; off_t size1, size2;
FSrcStreamData *fssd1, *fssd2; FSrcStreamData *fssd1, *fssd2;
/* <<< */
/* <<<
#define Libisofs_stream_cmp_ino_debuG 1
*/
#ifdef Libisofs_stream_cmp_ino_debuG
static int report_counter = 0; static int report_counter = 0;
static int debug = 1; static int debug = 1;
#endif /* Libisofs_stream_cmp_ino_debuG */
if (s1 == s2) if (s1 == s2)
return 0; return 0;
@ -777,6 +782,7 @@ int iso_stream_cmp_ino(IsoStream *s1, IsoStream *s2, int flag)
size2 = iso_stream_get_size(s2); size2 = iso_stream_get_size(s2);
if (size1 < size2) { if (size1 < size2) {
#ifdef Libisofs_stream_cmp_ino_debuG
if (debug) { if (debug) {
if (report_counter < 5) if (report_counter < 5)
fprintf(stderr, fprintf(stderr,
@ -786,10 +792,12 @@ int iso_stream_cmp_ino(IsoStream *s1, IsoStream *s2, int flag)
"\n\nlibisofs_DEBUG : Inode error: more of same ino but differing size\n\n\n"); "\n\nlibisofs_DEBUG : Inode error: more of same ino but differing size\n\n\n");
report_counter++; report_counter++;
} }
#endif /* Libisofs_stream_cmp_ino_debuG */
return -1; return -1;
} else if (size1 > size2) { } else if (size1 > size2) {
#ifdef Libisofs_stream_cmp_ino_debuG
if (debug) { if (debug) {
if (report_counter < 5) if (report_counter < 5)
fprintf(stderr, fprintf(stderr,
@ -799,6 +807,7 @@ int iso_stream_cmp_ino(IsoStream *s1, IsoStream *s2, int flag)
"\n\nlibisofs_DEBUG : Program error: more of same ino but differing size\n\n\n"); "\n\nlibisofs_DEBUG : Program error: more of same ino but differing size\n\n\n");
report_counter++; report_counter++;
} }
#endif /* Libisofs_stream_cmp_ino_debuG */
return 1; return 1;
} }