Commit Graph

32 Commits

Author SHA1 Message Date
Vreixo Formoso
1070fe4cc6 Several improves in error codes.
- Code severity and priority in error codes.
- Added ERROR severity, suitable for function failures.
- Review libisofs errors and its severity.
2008-01-20 22:28:27 +01:00
Vreixo Formoso
52d1e911ac Add TODOs to TODO file. Remove // comments that cause compiler warning. 2008-01-19 16:12:08 +01:00
Vreixo Formoso
df5aa263ec Replace per Image messenger with a global one, and use image id instead. 2008-01-19 02:48:12 +01:00
Vreixo Formoso
9a66c6cd33 Enhance support for relaxe ISO constraints. 2008-01-15 00:21:07 +01:00
Vreixo Formoso
8bc1cf90a9 Fix important bug in mangle_single_dir. 2008-01-14 17:15:28 +01:00
Vreixo Formoso
a1bcc73198 Support for relaxed filenames on ISO-9660 images. 2008-01-13 01:06:56 +01:00
Vreixo Formoso
c00d84f0f2 Improve mangling algorithm, by using a hash table for name search. 2008-01-12 02:43:07 +01:00
Vreixo Formoso
4f029437e2 Handling of El-Torito boot catalog at low level. 2008-01-10 18:53:39 +01:00
Vreixo Formoso
e18f5d8898 Change message functions signature. 2007-12-30 22:04:41 +01:00
Vreixo Formoso
7e66fe43ce Reduce memory usage in low level tree, by storing dir info separately. 2007-12-29 18:30:59 +01:00
Vreixo Formoso
4c9d83f051 Define code style formatter for eclipse and apply it to source. 2007-12-28 22:10:17 +01:00
Vreixo Formoso
d954957d83 If needed, add version number to symlinks and special files too. 2007-12-25 18:59:20 +01:00
Vreixo Formoso
bf0c1dd219 Add nlink and ino fields. No true usage for now. 2007-12-25 18:51:00 +01:00
Vreixo Formoso
227b17f251 Store a pointer to the real parent in reparent dirs. 2007-12-23 17:41:21 +01:00
Vreixo Formoso
811655a9a1 Mangle file names inside root directory after reorder the tree. 2007-12-23 17:19:07 +01:00
Vreixo Formoso
041858360a Handle reallocation of directories. 2007-12-23 17:11:32 +01:00
Vreixo Formoso
ca1385cce1 Begin RR support. Symlinks and Special files added to low level tree. 2007-12-23 16:16:26 +01:00
Vreixo Formoso
b8aa48038b Minor changes. 2007-12-23 15:39:41 +01:00
Vreixo Formoso
002a832ac3 Minor changes. 2007-12-23 02:58:54 +01:00
Vreixo Formoso
9ec475a900 Change iso name conversion functions back to old style. 2007-12-22 20:49:30 +01:00
Vreixo Formoso
9e9c077c6e Minimize charset conversion errors, ignoring when we can't do better.
If a file name is encoded in a different encoding than default input, current
implementation make image generation to be cancelled. As this can happen quite
frequent, due to files from discs or Windows partitions incorrectly mounted,
the best we can do is just ignore this, replacing the wrong character with a
'_'.
2007-12-22 19:44:02 +01:00
Vreixo Formoso
42731f4135 Fix bug in create tree, to propertly handle ignored files.
Due to a bug, when a file was ignored (for example, a dir whose deep 
level was greater than 8), all its parents where ignored, what causes 
root to be ignored!
2007-12-22 14:32:31 +01:00
Vreixo Formoso
449ed65fe9 Improve IsoStream interface implementation. 2007-12-20 20:58:03 +01:00
Vreixo Formoso
39bde82ff6 Move size, ino, dev cache from IsoFileSrc to IsoStream.
That is a better decission, as it reduces the number of stat() call 
needed, and anyway some Streams will need the size.
2007-12-18 20:46:28 +01:00
Vreixo Formoso
5e2de57aa9 Initial structure for ECMA-119 writer. 2007-12-17 23:22:19 +01:00
Vreixo Formoso
159b775d22 Improve message functions to support message formating in printf style. 2007-12-17 21:12:51 +01:00
Vreixo Formoso
f279676b6b Check file size to ensure file bigger than 4GB are not added to image. 2007-12-17 20:47:53 +01:00
Vreixo Formoso
c8715941e6 Define some functions and responsabilities for image generation.
Still very preliminary work.
2007-12-16 19:10:47 +01:00
Vreixo Formoso
c03d4d9b33 Implementation of name mangling algorithm.
This has to ensure that file names are unique among all files in an iso 
directory. Current implementation can be improved by using a hash table 
to keep the names, instead of iterate over all children. An alternative 
method, keeping children sorted all the time, thus allowing binary 
search, has been considered but discarded.                          

Current implementation support up to 9,999,999 equal files per 
directory.
2007-12-16 17:32:05 +01:00
Vreixo Formoso
56cdd00638 Sorting of nodes in a dir acording to ECMA-119, 9.3. 2007-12-15 18:40:33 +01:00
Vreixo Formoso
411524c330 Handling of iso directory depth restrictions on tree creation time.
Note that this doesn't involve the RR reparent. It just ignore the files 
that break iso restrictions (see ECMA-119, 6.8.2.1).
2007-12-15 18:29:40 +01:00
Vreixo Formoso
40b27dbacc Initial support for low level ECMA-119 tree.
This only adds the tree creation functions, no sorting and name mangling 
yet. Only plain ECMA-119 supported for now, nor RR, relaxed 
restrictions, etc..

This also adds a little test program.
2007-12-15 16:55:44 +01:00