Removed 'autogen.sh' from 'make dist'.
[ntfsprogs.git] / ChangeLog
1 xx/xx/2003 - 1.7.2-WIP - Work in progress.
2         - Further work on attribute resizing.
3         - Fix two logic inversion bugs in dir.c. Thanks to Russ Christensen for
4           finding the first one.
5         - Fix attempt to release I30 internal constant. (Russ Christensen)
6         - Fix off-by-one error in disk_io.c::ntfs_cluster_{read,write}(). (Ian
7           Jackson)
8         - Add -fms-extensions when compiling with gcc-3.2+.
9         - Update for newer autoconf/automake.
10         - Abstract low level device operations (include/device,h and
11           libntfs/device.c) and adapt utilities to changes.
12
13 13/02/2003 - 1.7.1 - Urgent bug fixes.
14         - Urgent bug fixes in ntfsresize (Szabolcs Szakacsits):
15           - compare_bitmaps(): fix another bug reporting the correct cluster
16             mismatch
17           - walk_inodes(): fix leaking ntfs_inode in certain cases
18           - delete redundant and unused MFT_RECORD *mrec from ntfs_resize_t
19         - Urgent bug fixes in libntfs (thanks to Szaka for bug reports):
20           - attrib.c::ntfs_external_attr_find(): broken error detection
21           - mft.c::ntfs_mft_records_write(): stupid buffer overflow bug (ouch!)
22
23 12/02/2003 - 1.7.0 - Small bug fixes and updates.
24         - Bug fixes in mapping pairs array generation in libntfs.
25         - Bug fixes and updates in ntfsresize. (Szabolcs Szakacsits)
26         - Tidyups and standardisations. (Richard Russon)
27
28 18/01/2003 - 1.7.0beta - Library rewrite and many new tools.
29         - Highlights of this release are the now hopefully stable API sported
30           by an almost completely rewritten library and the new utilities;
31                 ntfsresize, ntfsundelete, and ntfslabel.
32           Note this is a beta release so it may not be free of bugs.
33         - New tool ntfslabel written by Matthew Fanto with a few cleanups from
34           me to make it fit in with e2label better.
35         - Add man page for ntfslabel.
36         - New tool, ntfsundelete, written by Richard Russon.
37         - New tool, ntfsresize, written by Szakacsits Szabolcs.
38         - Extend ntfs_mount() to also read in the volume label.
39         - Silence verbosity of output from ntfs_mount(). It is now only output
40           if ./configure was run with --enable-debug.
41         - Remove a LOT of dead code. Massive cleanup.
42         - Add full attribute search context and allocation/init/deallocation
43           functions (see attrib.c).
44         - Remove find_first_attr(). Just use ntfs_attr_get_search_ctx() +
45           ntfs_attr_find() which has the same effect.
46         - Rewrite disk_io.[ch] and mft.[ch] defining new access API:
47                 disk_io.[ch] provide:   ntfs_p{read,write}(),
48                                         ntfs_mst_p{read,write}(), and
49                                         ntfs_cluster_{read,write}().
50                 mft.[ch] provide:       ntfs_mft_record_{read,write}(),
51                                         ntfs_mft_records_{read,write}(), and
52                                         ntfs_mft_record_get_data_size().
53         - When writing mft records using the mft.c::ntfs_mft_record{s,}_write()
54           interface, the mft mirror is now updated automatically.
55         - Add -Wall to compiler options.
56         - Fix minor error code path bugs in mkntfs.c that showed up with -Wall.
57         - Fix all compiler warnings that showed up with -Wall.
58         - Add new API function, provided by mft.[ch]: ntfs_file_record_read().
59         - Add new API calls provided by unistr.[ch]:
60                 ntfs_ucstombs() and ntfs_mbstoucs().
61         - Define API for mst.[ch] providing:
62                 ntfs_mst_post_read_fixup(),
63                 ntfs_mst_pre_write_fixup(), and
64                 ntfs_mst_post_write_fixup().
65         - Define API for bootsect.[ch] providing:
66                 ntfs_boot_sector_is_ntfs().
67         - Add beginning of new API with new files inode.[ch] providing:
68                 ntfs_inode_{open,close)(), and
69                 ntfs_extent_inode_open().
70                 - Note the inode related API is subject to change.
71         - Start defining API provided by attrib.[ch]:
72                 ntfs_attr_search_ctx typedef,
73                 ntfs_attr_{get,put,reinit}_search_ctx(), and
74                 ntfs_attr_lookup().
75         - Add a TODO.libntfs laying down my personal roadmap for the library.
76         - Remove ntfs_attr_find() from API, everyone must use ntfs_attr_lookup()
77           instead.
78         - Rename all attribute name constants from $blah to AT_blah.
79         - Rename all system file constants from FILE_$blah to FILE_blah.
80         - Port ntfs_attr_lookup() stuff from ntfs tng driver.
81         - Implement loading of extent inodes. They are attached on open to the
82           base inode and are cached there until the base inode is closed.
83         - Cleanup/streamline include file dependencies.
84         - Port attribute list merging code from ntfs tng driver. API to follow.
85         - Allocate a ntfs_volume in mkntfs and start initializing it instead
86           of using the opt global structure. Necessary so can call the
87           modified ntfs_mapping_pairs_decompress() from mkntfs.c.
88         - Add libntfs/debug.c providing:
89                 ntfs_debug_runlist_dump().
90         - Add new API call ntfs_check_if_mounted() to volume.[ch]. (Matthew
91           Fanto, me)
92         - Do folding assisting cleanups. (Richard Russon, me)
93         - Add new API call ntfs_boot_sector_is_ntfs() provided by bootsect.[hc].
94         - Define and write more API calls provided by attrib.[ch]:
95                 ntfs_attr_map_runlist(),
96                 ntfs_attr_vcn_to_lcn(),
97                 ntfs_attr_find_vcn(),
98                 ntfs_attr_init(),
99                 ntfs_attr_{open,close}(),
100                 ntfs_attr_size_bounds_check(),
101                 ntfs_attr_can_be_non_resident().
102         - Add new field mftmirr_size to ntfs_volume structure and initialize
103           it to the number of mft records stored in the mft mirror in
104           ntfs_mount().
105         - Add new fields mftmirr_ni and mftmirr_na to ntfs_volume structure and
106           initialize them in ntfs_mount to the $MFTMirr inode and $DATA
107           attribute. Ditto for mft_ni ($MFT inode), mft_na ($MFT/$DATA),
108           mftbmp_na ($MFT/$BITMAP), lcnbmp_ni ($Bitmap inode), and
109           lcnbmp_na ($Bitmap/$DATA). Remove previous fields replaced by these.
110         - Rename a few fields in ntfs_volume structure to make them shorter,
111           e.g. now have nr_mft_records and nr_clusters.
112         - Add new API for doing I/O on both normal and multi sector transfer
113           protected ntfs attributes described by the ntfs_attr structure,
114           provided by attrib.[hc] (note writing is still restricted to
115           overwrite only):
116                 ntfs_attr_p{read,write}(), and
117                 ntfs_attr_mst_p{read,write}().
118         - Fix detection of read-only mounts in volume.c::ntfs_mntent_check().
119         - Start modularising ntfs_mount():
120                 - Split off the boot sector parsing code and move it to
121                   bootsect.c::ntfs_boot_sector_parse().
122                 - Move $MFT loading and parsing code to separate function
123                   volume.c::ntfs_mft_load().
124                 - Move $MFTMirr loading and parsing code to
125                   volume.c::ntfs_mftmirr_load().
126                 - Move all startup code (loading and parsing of bootsector,
127                   $MFT, and $MFTMirr) to volume.c::ntfs_volume_startup().
128         - Update ntfsfix to above modularisation.
129         - Add detection of read-write mounted devices to ntfsfix and refuse to
130           operate on them.
131         - POSIXify libntfs/disk_io.c. All functions now return partial reads
132           and writes and deal with end of file properly. Affected functions:
133                 ntfs_p{read,write}(),
134                 ntfs_mst_p{read,write}(), and
135                 ntfs_cluster_{read,write}().
136         - Change ntfsfix to take into account the automatic mft mirror updates.
137         - Add new API provided by new files dir.[ch]:
138                 ntfs_inode_lookup_by_name(), and
139                 ntfs_readdir().
140         - We now use u8, u16, u32, u64, s8, s16, s32, and s64 types and we
141           typedef them ourselves from the C99 standard uint8_t, etc types which
142           IMO are braindamaged.
143         - Better gcc detection in 'configure.in'. (Szakacsits Szabolcs)
144           Tested with:  egcs-1.0.3 (egcs-2.90.29), egcs-1.1.2 (egcs-2.91.66),
145                         gcc 2.95.3, 2.96 (from RH 7.1 and 7.3), and 3.0.4.
146         - Enable enumeration of attributes using ntfs_attr_lookup() which is
147           requested by passing a type of AT_UNUSED (or simply zero) to
148           ntfs_attr_lookup(). (Based on initial patch by Szakacsits Szabolcs.)
149         - Fix two minor buglets in ntfs_external_attr_find() where we would
150           continue the search when we detect a mismatched type and/or name
151           instead of aborting and returning error EIO to flag the corruption.
152         - Add new syntactic sugar API provided by attrib.h:
153                 ntfs_attrs_walk(). (Szakacsits Szabolcs)
154         - Add new API for compressing runlists into mapping pairs arrays
155           provided by runlist.[hc] (some adapted from mkntfs.c):
156                 ntfs_rl_vcn_to_lcn(),
157                 ntfs_rl_pwrite(),
158                 ntfs_runlists_merge(),
159                 ntfs_mapping_pairs_decompress(),
160                 ntfs_get_nr_significant_bytes(),
161                 ntfs_get_size_for_mapping_pairs(),
162                 ntfs_write_significant_bytes(),
163                 ntfs_mapping_pairs_build(), and
164                 ntfs_rl_truncate(). -- WIP
165         - Convert mkntfs.c to the above API.
166         - Implement attrib.[hc]::ntfs_rl_pwrite() as a low level scatter write
167           function analogous in functionality to mkntfs.c::ntfs_rlwrite() but
168           with arguments more like ntfs_attr_pwrite() to allow for more
169           flexible use.
170         - Don't use string concatenation with __FUNCTION__ as gcc-3.x don't
171           like it.
172         - Move runlist functions to runlist.[hc]. (Richard Russon)
173         - Add new API to volume.[hc] and use it (Szakacsits Szabolcs):
174                 ntfs_version_is_supported(),
175                 NTFS_V{1_[12],2_x,3_[01]}() macros,
176                 ntfs_logfile_reset(), and
177                 ntfs_volume_set_flags().
178         - Change size autodetection of non-block device files in mkntfs to use
179           the stat returned file size rather than the block allocation count to
180           cope with pre-created sparse files.
181         - Remove GPL message text from usage information in mkntfs.
182         - The word is "runlist", not "run_list", "run list", or "run-list".
183         - Prefix all functions with "ntfs_" and make the names of the form
184           "ntfs_object_action()". Keep this for all future functions!
185         - Change unistr.c::ntfs_names_are_equal() to return TRUE when both
186           names have zero length. Thanks to Leonard Norrgard for spotting this.
187         - Fix bug in ntfs_external_attr_find(). (Szakacsits Szabolcs)
188         - Fix stupid logic inversion bug in ntfs_extent_inode_open(). Same bug
189           was fixed in the NTFS kernel driver over six months ago but the fix
190           was never taken over to libntfs. (Szakacsits Szabolcs)
191         - Fix stupid bug in ntfs_ucsncmp(). Spotted by Leonard Norrgard.
192         - Fix bug where the call to ntfs_attr_{put,reinit}_search_ctx() would
193           free the extent inode attached to the search context but leave it
194           attached to the base inode, so this would lead to memory corruption
195           and worse problems. Thanks to Szakacsits Szabolcs for spotting this.
196           We now don't close extent inodes any more at all and just leave it
197           to the closing of the base inode to dispose of all the extent inodes.
198         - Add sanity check to ntfs_inode_close() to detect attempts at closing
199           extent inodes.
200         - Don't free extent inodes in attrib.c! (Szakacsits Szabolcs)
201         - Return the attribute list attribute when enumerating attributes, too.
202           Thanks to Szakacsits Szabolcs for pointing this problem out.
203         - New API function provided by unistr.[hc] and use it in mkntfs:
204                 ntfs_ucsnlen().
205         - New API function provided by attrib.[hc] and use it in mkntfs:
206                 ntfs_resident_attr_value_resize(),
207                 ntfs_attr_truncate(). -- WIP
208         - New API functions provided by inode.[hc]:
209                 ntfs_inode_mark_dirty(),
210                 ntfs_inode_sync().
211         - Change ntfs_inode_close() to write out dirty inodes and inode extents.
212         - New API functions provided by lcnalloc.[hc]:
213                 ntfs_cluster_{alloc,free}(). -- WIP
214         - New API function provided by bitmap.[hc]:
215                 ntfs_bitmap_{set,clear}_run(). -- WIP
216         - Extend the volume.h::ntfs_volume structure with variables required by
217           the cluster and mft allocators and set them up in
218           volume.c::ntfs_volume_startup().
219         - ntfs_umount() now also does an fdatasync() on the device before
220           closing it.
221         - Added new utility ntfstruncate, primarily to be able to test the
222           new ntfs_attr_truncate() function, it is not compiled by default.
223           Note, the library can currently only make attributes smaller and it
224           only works on uncompressed, unencrypted inodes which do not contain
225           attribute lists, i.e. on simple files, but that was quite a lot of
226           new code in itself which needs a lot of testing!
227         - Fix library to never issue writes on volumes that have been mounted
228           read-only.
229         - New API provided by mft.[hc]:
230                 ntfs_mft_record_{alloc,free}(). -- WIP
231
232 12/03/2002 - 1.6.0 - More mkntfs options and cleanups.
233         Fix typo in usage information of mkntfs. Thanks to Richard Russon for
234         spotting it.
235         Change version number in mkntfs and ntfsfix to match the linux-ntfs
236         release version number.
237         Added two new options to mkntfs; -I, which disables content indexing
238         on the volume and -C, which enables compression on the volume.
239
240 01/02/2002 - Attempt to fix compile warnings on powerpc.
241         Attempt to fix compile warnings on powerpc. It seems powerpc uses
242         char == unsigned char which was breaking some signed comparisons.
243
244 26/01/2002 - 1.5.1 - Fix two buglets in ntfsfix and more compilation fixes.
245         Fix two silly buglets in ntfsfix, where we were calling is_baad_record
246         instead of is_baad_recordp. Silly me... Thanks to David Martinez Moreno
247         for reporting the compilation warnings on ia64 which led me to find the
248         bug.
249         Fix compilation problems in logfile.h on big endian arches. Hopefully,
250         now will really compile on all arches.
251
252 10/01/2002 - 1.5.0 - Fix bug in $LogFile size calculation.
253         Fix bug in $LogFile size calculation where we would take the size to
254         be zero on partitions between 200 and 400MiB in size.
255         Add requirement for linux-ntfs to linux-ntfs-devel.
256
257 15/12/2001 - Remove atomic ops and add compiler version check.
258         Hopefully this will preempt "it doesn't compile for me" messages from
259         people with gcc < 2.96.
260         Change bail out error check for seek to backup boot sector to a warning
261         since SuSE 7.2 + loads of stuff and 2.5.1-pre11 returns EINVAL instead
262         of ENOSPC.
263         Remove atomic code as it isn't defined on non-i386 arches.
264
265 06/12/2001 - Change ntfs_mount to accept second argument for mount flags.
266         ntfs_mount() now supports mount flags as per "man 2 mount". Currently
267         only the MS_RDONLY flag is supported/implemented. This breaks
268         compatibility with older libntfs versions and hence the major version
269         number of the library has been increased.
270         Adapt utilities to make use of new ntfs_mount syntax.
271
272 17/11/2001 - Add description of compression algorithm.
273
274 09/11/2001 - 1.4.0 - Major fix in mkntfs, small update to ntfsfix and others.
275         Update ntfsfix to support Windows XP NTFS volumes (NTFS 3.1).
276         Update layout.h with more information.
277         (Re)enable shared libraries.
278         Changes to mkntfs:
279           - Correct handling of directories on volumes with cluster sizes
280             above 4096 bytes.
281           - Lower minimum size of NTFS partitions to 1MiB, scaling down the
282             logfile size as necessary.
283           - Support a wider range of input parameters. Now should have all
284             valid combinations covered.
285           - Update man page.
286           - Implement better determination of device size.
287           - Various bug fixes.
288
289 22/08/2001 - 1.2.2 - Small fix in mkntfs and minor updates.
290         Small fix in mkntfs for small volumes with non-standard sector sizes,
291         where the default values would result in a sector size smaller than the
292         sector size and mkntfs would refuse to run because of this. The man
293         page was updated accordingly.
294         Minor updates/clarifications to include/layout.h.
295
296 02/08/2001 - 1.2.1 - Added ntfsfix man page and minor cleanup.
297         David Martínez Moreno <david.martinez@rediris.es> donated a man page
298         for ntfsfix as well as spelling mistake fixes all over the place.
299
300 26/07/2001 - 1.2.0 - Important bug fixes to mkntfs.
301         Bug fixes for cluster sizes > 4kb involving corrections to mft mirror
302         size and contents, mft data attribute position and mft bitmap size.
303         Some of those were nasty so this is a major improvement. Hopefully these
304         were the last bugs.
305
306 25/07/2001 - 1.0.2 - Small cleanup of the distribution.
307         Move mkntfs to sbin (was put in bin before).
308         Small bugfix to mkntfs man page.
309
310 24/07/2001 - 1.0.1 - Small cleanup of the distribution.
311         Confirmed that at least gcc-2.96 is needed to compile linux-ntfs.
312         Removed ldm.c from linux-ntfs. It will reappear as ldminfo.c in a new
313         package, probably linux-ldm.
314         Taken out some file from the distribution, but they are still present
315         in CVS. This is because they are not really useful except if you are
316         a developer wanting to play about.
317
318 10/06/2001 - 1.0.0 - mkntfs release and bugfixes to ntfslib and the others.
319         Also, released ldm which dumps the ldm database on Win2k/XP dynamic
320         disks.
321         A man page for mkntfs is also installed by make install so man 8 mkntfs
322         can be used to show the recognised command line options.
323         Building of shared libraries is disabled by default as it breaks on
324         some systems.
325         Probably need at least gcc-2.95 or something like that from now on.
326
327 02/02/2001 - Started ChangeLog.
328