VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / fs / ntfs / ChangeLog
1 ToDo/Notes:
2         - Find and fix bugs.
3         - Checkpoint or disable the user space journal ($UsnJrnl).
4         - Implement sops->dirty_inode() to implement {a,m,c}time updates and
5           such things.  This should probably just flag the ntfs inode such that
6           sops->write_inode(), i.e. ntfs_write_inode(), will copy the times
7           when it is invoked rather than having to update the mft record
8           every time.
9         - In between ntfs_prepare/commit_write, need exclusion between
10           simultaneous file extensions. Need perhaps an NInoResizeUnderway()
11           flag which we can set in ntfs_prepare_write() and clear again in
12           ntfs_commit_write(). Just have to be careful in readpage/writepage,
13           as well as in truncate, that we play nice... We might need to have
14           a data_size field in the ntfs_inode to store the real attribute
15           length. Also need to be careful with initialized_size extention in
16           ntfs_prepare_write. Basically, just be _very_ careful in this code...
17           OTOH, perhaps i_sem, which is held accross generic_file_write is
18           sufficient for synchronisation here. We then just need to make sure
19           ntfs_readpage/writepage/truncate interoperate properly with us.
20         - Implement mft.c::sync_mft_mirror_umount().  We currently will just
21           leave the volume dirty on umount if the final iput(vol->mft_ino)
22           causes a write of any mirrored mft records due to the mft mirror
23           inode having been discarded already.  Whether this can actually ever
24           happen is unclear however so it is worth waiting until someone hits
25           the problem.
26         - Enable the code for setting the NT4 compatibility flag when we start
27           making NTFS 1.2 specific modifications.
28
29 2.1.15 - Invalidate quotas when (re)mounting read-write.
30
31         - Add new element itype.index.collation_rule to the ntfs inode
32           structure and set it appropriately in ntfs_read_locked_inode().
33         - Implement a new inode type "index" to allow efficient access to the
34           indices found in various system files and adapt inode handling
35           accordingly (fs/ntfs/inode.[hc]).  An index inode is essentially an
36           attribute inode (NInoAttr() is true) with an attribute type of
37           AT_INDEX_ALLOCATION.  As such, it is no longer allowed to call
38           ntfs_attr_iget() with an attribute type of AT_INDEX_ALLOCATION as
39           there would be no way to distinguish between normal attribute inodes
40           and index inodes.  The function to obtain an index inode is
41           ntfs_index_iget() and it uses the helper function
42           ntfs_read_locked_index_inode().  Note, we do not overload
43           ntfs_attr_iget() as indices consist of multiple attributes so using
44           ntfs_attr_iget() to obtain an index inode would be confusing.
45         - Ensure that there is no overflow when doing page->index <<
46           PAGE_CACHE_SHIFT by casting page->index to s64 in fs/ntfs/aops.c.
47         - Use atomic kmap instead of kmap() in fs/ntfs/aops.c::ntfs_read_page()
48           and ntfs_read_block().
49         - Use case sensitive attribute lookups instead of case insensitive ones.
50         - Lock all page cache pages belonging to mst protected attributes while
51           accessing them to ensure we never see corrupt data while the page is
52           under writeout.
53         - Add framework for generic ntfs collation (fs/ntfs/collation.[hc]).
54           We have ntfs_is_collation_rule_supported() to check if the collation
55           rule you want to use is supported and ntfs_collation() which actually
56           collates two data items.  We currently only support COLLATION_BINARY
57           and COLLATION_NTOFS_ULONG but support for other collation rules will
58           be added as the need arises.
59         - Add a new type, ntfs_index_context, to allow retrieval of an index
60           entry using the corresponding index key.  To get an index context,
61           use ntfs_index_ctx_get() and to release it, use ntfs_index_ctx_put().
62           This also adds a new slab cache for the index contexts.  To lookup a
63           key in an index inode, use ntfs_index_lookup().  After modifying an
64           index entry, call ntfs_index_entry_flush_dcache_page() followed by
65           ntfs_index_entry_mark_dirty() to ensure the changes are written out
66           to disk.  For details see fs/ntfs/index.[hc].  Note, at present, if
67           an index entry is in the index allocation attribute rather than the
68           index root attribute it will not be written out (you will get a
69           warning message about discarded changes instead).
70         - Load the quota file ($Quota) and check if quota tracking is enabled
71           and if so, mark the quotas out of date.  This causes windows to
72           rescan the volume on boot and update all quota entries.
73         - Add a set_page_dirty address space operation for ntfs_m[fs]t_aops.
74           It is simply set to __set_page_dirty_nobuffers() to make sure that
75           running set_page_dirty() on a page containing mft/ntfs records will
76           not affect the dirty state of the page buffers.
77         - Add fs/ntfs/index.c::__ntfs_index_entry_mark_dirty() which sets all
78           buffers that are inside the ntfs record in the page dirty after which
79           it sets the page dirty.  This allows ->writepage to only write the
80           dirty index records rather than having to write all the records in
81           the page.  Modify fs/ntfs/index.h::ntfs_index_entry_mark_dirty() to
82           use this rather than __set_page_dirty_nobuffers().
83         - Implement fs/ntfs/aops.c::ntfs_write_mst_block() which enables the
84           writing of page cache pages belonging to mst protected attributes
85           like the index allocation attribute in directory indices and other
86           indices like $Quota/$Q, etc.  This means that the quota is now marked
87           out of date on all volumes rather than only on ones where the quota
88           defaults entry is in the index root attribute of the $Quota/$Q index.
89
90 2.1.14 - Fix an NFSd caused deadlock reported by several users.
91
92         - Modify fs/ntfs/ntfs_readdir() to copy the index root attribute value
93           to a buffer so that we can put the search context and unmap the mft
94           record before calling the filldir() callback.  We need to do this
95           because of NFSd which calls ->lookup() from its filldir callback()
96           and this causes NTFS to deadlock as ntfs_lookup() maps the mft record
97           of the directory and since ntfs_readdir() has got it mapped already
98           ntfs_lookup() deadlocks.
99
100 2.1.13 - Enable overwriting of resident files and housekeeping of system files.
101
102         - Implement writing of mft records (fs/ntfs/mft.[hc]), which includes
103           keeping the mft mirror in sync with the mft when mirrored mft records
104           are written.  The functions are write_mft_record{,_nolock}().  The
105           implementation is quite rudimentary for now with lots of things not
106           implemented yet but I am not sure any of them can actually occur so
107           I will wait for people to hit each one and only then implement it.
108         - Commit open system inodes at umount time.  This should make it
109           virtually impossible for sync_mft_mirror_umount() to ever be needed.
110         - Implement ->write_inode (fs/ntfs/inode.c::ntfs_write_inode()) for the
111           ntfs super operations.  This gives us inode writing via the VFS inode
112           dirty code paths.  Note:  Access time updates are not implemented yet.
113         - Implement fs/ntfs/mft.[hc]::{,__}mark_mft_record_dirty() and make
114           fs/ntfs/aops.c::ntfs_writepage() and ntfs_commit_write() use it, thus
115           finally enabling resident file overwrite!  (-8  This also includes a
116           placeholder for ->writepage (ntfs_mft_writepage()), which for now
117           just redirties the page and returns.  Also, at umount time, we for
118           now throw away all mft data page cache pages after the last call to
119           ntfs_commit_inode() in the hope that all inodes will have been
120           written out by then and hence no dirty (meta)data will be lost.  We
121           also check for this case and emit an error message telling the user
122           to run chkdsk.
123         - Use set_page_writeback() and end_page_writeback() in the resident
124           attribute code path of fs/ntfs/aops.c::ntfs_writepage() otherwise
125           the radix-tree tag PAGECACHE_TAG_DIRTY remains set even though the
126           page is clean.
127         - Implement ntfs_mft_writepage() so it now checks if any of the mft
128           records in the page are dirty and if so redirties the page and
129           returns.  Otherwise it just returns (after doing set_page_writeback(),
130           unlock_page(), end_page_writeback() or the radix-tree tag
131           PAGECACHE_TAG_DIRTY remains set even though the page is clean), thus
132           alowing the VM to do with the page as it pleases.  Also, at umount
133           time, now only throw away dirty mft (meta)data pages if dirty inodes
134           are present and ask the user to email us if they see this happening.
135         - Add functions ntfs_{clear,set}_volume_flags(), to modify the volume
136           information flags (fs/ntfs/super.c).
137         - Mark the volume dirty when (re)mounting read-write and mark it clean
138           when unmounting or remounting read-only.  If any volume errors are
139           found, the volume is left marked dirty to force chkdsk to run.
140         - Add code to set the NT4 compatibility flag when (re)mounting
141           read-write for newer NTFS versions but leave it commented out for now
142           since we do not make any modifications that are NTFS 1.2 specific yet
143           and since setting this flag breaks Captive-NTFS which is not nice.
144           This code must be enabled once we start writing NTFS 1.2 specific
145           changes otherwise Windows NTFS driver might crash / cause corruption.
146
147 2.1.12 - Fix the second fix to the decompression engine and some cleanups.
148
149         - Add a new address space operations struct, ntfs_mst_aops, for mst
150           protected attributes.  This is because the default ntfs_aops do not
151           make sense with mst protected data and were they to write anything to
152           such an attribute they would cause data corruption so we provide
153           ntfs_mst_aops which does not have any write related operations set.
154         - Cleanup dirty ntfs inode handling (fs/ntfs/inode.[hc]) which also
155           includes an adapted ntfs_commit_inode() and an implementation of
156           ntfs_write_inode() which for now just cleans dirty inodes without
157           writing them (it does emit a warning that this is happening).
158         - Undo the second decompression engine fix (see 2.1.9 release ChangeLog
159           entry) as it was only fixing a theoretical bug but at the same time
160           it badly broke the handling of sparse and uncompressed compression
161           blocks.
162
163 2.1.11 - Driver internal cleanups.
164
165         - Only build logfile.o if building the driver with read-write support.
166         - Really final white space cleanups.
167         - Use generic_ffs() instead of ffs() in logfile.c which allows the
168           log_page_size variable to be optimized by gcc into a constant.
169         - Rename uchar_t to ntfschar everywhere as uchar_t is unsigned 1-byte
170           char as defined by POSIX and as found on some systems.
171
172 2.1.10 - Force read-only (re)mounting of volumes with unsupported volume flags.
173
174         - Finish off the white space cleanups (remove trailing spaces, etc).
175         - Clean up ntfs_fill_super() and ntfs_read_inode_mount() by removing
176           the kludges around the first iget().  Instead of (re)setting ->s_op
177           we have the $MFT inode set up by explicit new_inode() / set ->i_ino /
178           insert_inode_hash() / call ntfs_read_inode_mount() directly.  This
179           kills the need for second super_operations and allows to return error
180           from ntfs_read_inode_mount() without resorting to ugly "poisoning"
181           tricks.  (Al Viro)
182         - Force read-only (re)mounting if any of the following bits are set in
183           the volume information flags:
184                 VOLUME_IS_DIRTY, VOLUME_RESIZE_LOG_FILE,
185                 VOLUME_UPGRADE_ON_MOUNT, VOLUME_DELETE_USN_UNDERWAY,
186                 VOLUME_REPAIR_OBJECT_ID, VOLUME_MODIFIED_BY_CHKDSK
187           To make this easier we define VOLUME_MUST_MOUNT_RO_MASK with all the
188           above bits set so the test is made easy.
189
190 2.1.9 - Fix two bugs in decompression engine.
191
192         - Fix a bug where we would not always detect that we have reached the
193           end of a compression block because we were ending at minus one byte
194           which is effectively the same as being at the end.  The fix is to
195           check whether the uncompressed buffer has been fully filled and if so
196           we assume we have reached the end of the compression block.  A big
197           thank you to Marcin GibuÅ‚a for the bug report, the assistance in
198           tracking down the bug and testing the fix.
199         - Fix a possible bug where when a compressed read is truncated to the
200           end of the file, the offset inside the last page was not truncated.
201
202 2.1.8 - Handle $MFT mirror and $LogFile, improve time handling, and cleanups.
203
204         - Use get_bh() instead of manual atomic_inc() in fs/ntfs/compress.c.
205         - Modify fs/ntfs/time.c::ntfs2utc(), get_current_ntfs_time(), and
206           utc2ntfs() to work with struct timespec instead of time_t on the
207           Linux UTC time side thus preserving the full precision of the NTFS
208           time and only loosing up to 99 nano-seconds in the Linux UTC time.
209         - Move fs/ntfs/time.c to fs/ntfs/time.h and make the time functions
210           static inline.
211         - Remove unused ntfs_dirty_inode().
212         - Cleanup super operations declaration in fs/ntfs/super.c.
213         - Wrap flush_dcache_mft_record_page() in #ifdef NTFS_RW.
214         - Add NInoTestSetFoo() and NInoTestClearFoo() macro magic to
215           fs/ntfs/inode.h and use it to declare NInoTest{Set,Clear}Dirty.
216         - Move typedefs for ntfs_attr and test_t from fs/ntfs/inode.c to
217           fs/ntfs/inode.h so they can be used elsewhere.
218         - Determine the mft mirror size as the number of mirrored mft records
219           and store it in ntfs_volume->mftmirr_size (fs/ntfs/super.c).
220         - Load the mft mirror at mount time and compare the mft records stored
221           in it to the ones in the mft.  Force a read-only mount if the two do
222           not match (fs/ntfs/super.c).
223         - Fix type casting related warnings on 64-bit architectures.  Thanks
224           to Meelis Roos for reporting them.
225         - Move %L to %ll as %L is floating point and %ll is integer which is
226           what we want.
227         - Read the journal ($LogFile) and determine if the volume has been
228           shutdown cleanly and force a read-only mount if not (fs/ntfs/super.c
229           and fs/ntfs/logfile.c).  This is a little bit of a crude check in
230           that we only look at the restart areas and not at the actual log
231           records so that there will be a very small number of cases where we
232           think that a volume is dirty when in fact it is clean.  This should
233           only affect volumes that have not been shutdown cleanly and did not
234           have any pending, non-check-pointed i/o.
235         - If the $LogFile indicates a clean shutdown and a read-write (re)mount
236           is requested, empty $LogFile by overwriting it with 0xff bytes to
237           ensure that Windows cannot cause data corruption by replaying a stale
238           journal after Linux has written to the volume.
239
240 2.1.7 - Enable NFS exporting of mounted NTFS volumes.
241
242         - Set i_generation in the VFS inode from the seq_no of the NTFS inode.
243         - Make ntfs_lookup() NFS export safe, i.e. use d_splice_alias(), etc.
244         - Implement ->get_dentry() in fs/ntfs/namei.c::ntfs_get_dentry() as the
245           default doesn't allow inode number 0 which is a valid inode on NTFS
246           and even if it did allow that it uses iget() instead of ntfs_iget()
247           which makes it useless for us.
248         - Implement ->get_parent() in fs/ntfs/namei.c::ntfs_get_parent() as the
249           default just returns -EACCES which is not very useful.
250         - Define export operations (->s_export_op) for NTFS (ntfs_export_ops)
251           and set them up in the super block at mount time (super.c) this
252           allows mounted NTFS volumes to be exported via NFS.
253         - Add missing return -EOPNOTSUPP; in
254           fs/ntfs/aops.c::ntfs_commit_nonresident_write().
255         - Enforce no atime and no dir atime updates at mount/remount time as
256           they are not implemented yet anyway.
257         - Move a few assignments in fs/ntfs/attrib.c::load_attribute_list() to
258           after a NULL check.  Thanks to Dave Jones for pointing this out.
259
260 2.1.6 - Fix minor bug in handling of compressed directories.
261
262         - Fix bug in handling of compressed directories.  A compressed
263           directory is not really compressed so when we set the ->i_blocks
264           field of a compressed directory inode we were setting it from the
265           non-existing field ni->itype.compressed.size which gave random
266           results...  For directories we now always use ni->allocated_size.
267
268 2.1.5 - Fix minor bug in attribute list attribute handling.
269
270         - Fix bug in attribute list handling.  Actually it is not as much a bug
271           as too much protection in that we were not allowing attribute lists
272           which waste space on disk while Windows XP clearly allows it and in
273           fact creates such attribute lists so our driver was failing.
274         - Update NTFS documentation ready for 2.6 kernel release.
275
276 2.1.4 - Reduce compiler requirements.
277
278         - Remove all uses of unnamed structs and unions in the driver to make
279           old and newer gcc versions happy. Makes it a bit uglier IMO but at
280           least people will stop hassling me about it.
281
282 2.1.3 - Important bug fixes in corner cases.
283
284         - super.c::parse_ntfs_boot_sector(): Correct the check for 64-bit
285           clusters. (Philipp Thomas)
286         - attrib.c::load_attribute_list(): Fix bug when initialized_size is a
287           multiple of the block_size but not the cluster size. (Szabolcs
288           Szakacsits <szaka@sienet.hu>)
289
290 2.1.2 - Important bug fixes aleviating the hangs in statfs.
291
292         - Fix buggy free cluster and free inode determination logic.
293
294 2.1.1 - Minor updates.
295
296         - Add handling for initialized_size != data_size in compressed files.
297         - Reduce function local stack usage from 0x3d4 bytes to just noise in
298           fs/ntfs/upcase.c. (Randy Dunlap <rddunlap@osdl.ord>)
299         - Remove compiler warnings for newer gcc.
300         - Pages are no longer kmapped by mm/filemap.c::generic_file_write()
301           around calls to ->{prepare,commit}_write.  Adapt NTFS appropriately
302           in fs/ntfs/aops.c::ntfs_prepare_nonresident_write() by using
303           kmap_atomic(KM_USER0).
304
305 2.1.0 - First steps towards write support: implement file overwrite.
306
307         - Add configuration option for developmental write support with an
308           appropriately scary configuration help text.
309         - Initial implementation of fs/ntfs/aops.c::ntfs_writepage() and its
310           helper fs/ntfs/aops.c::ntfs_write_block(). This enables mmap(2) based
311           overwriting of existing files on ntfs. Note: Resident files are
312           only written into memory, and not written out to disk at present, so
313           avoid writing to files smaller than about 1kiB.
314         - Initial implementation of fs/ntfs/aops.c::ntfs_prepare_write(), its
315           helper fs/ntfs/aops.c::ntfs_prepare_nonresident_write() and their
316           counterparts, fs/ntfs/aops.c::ntfs_commit_write(), and
317           fs/ntfs/aops.c::ntfs_commit_nonresident_write(), respectively. Also,
318           add generic_file_write() to the ntfs file operations (fs/ntfs/file.c).
319           This enables write(2) based overwriting of existing files on ntfs.
320           Note: As with mmap(2) based overwriting, resident files are only
321           written into memory, and not written out to disk at present, so avoid
322           writing to files smaller than about 1kiB.
323         - Implement ->truncate (fs/ntfs/inode.c::ntfs_truncate()) and
324           ->setattr() (fs/ntfs/inode.c::ntfs_setattr()) inode operations for
325           files with the purpose of intercepting and aborting all i_size
326           changes which we do not support yet. ntfs_truncate() actually only
327           emits a warning message but AFAICS our interception of i_size changes
328           elsewhere means ntfs_truncate() never gets called for i_size changes.
329           It is only called from generic_file_write() when we fail in
330           ntfs_prepare_{,nonresident_}write() in order to discard any
331           instantiated buffers beyond i_size. Thus i_size is not actually
332           changed so our warning message is enough. Unfortunately it is not
333           possible to easily determine if i_size is being changed or not hence
334           we just emit an appropriately worded error message.
335
336 2.0.25 - Small bug fixes and cleanups.
337
338         - Unlock the page in an out of memory error code path in
339           fs/ntfs/aops.c::ntfs_read_block().
340         - If fs/ntfs/aops.c::ntfs_read_page() is called on an uptodate page,
341           just unlock the page and return. (This can happen due to ->writepage
342           clearing PageUptodate() during write out of MstProtected()
343           attributes.
344         - Remove leaked write code again.
345
346 2.0.24 - Cleanups.
347
348         - Treat BUG_ON() as ASSERT() not VERIFY(), i.e. do not use side effects
349           inside BUG_ON(). (Adam J. Richter)
350         - Split logical OR expressions inside BUG_ON() into individual BUG_ON()
351           calls for improved debugging. (Adam J. Richter)
352         - Add errors flag to the ntfs volume state, accessed via
353           NVol{,Set,Clear}Errors(vol).
354         - Do not allow read-write remounts of read-only volumes with errors.
355         - Clarify comment for ntfs file operation sendfile which was added by
356           Christoph Hellwig a while ago (just using generic_file_sendfile())
357           to say that ntfs ->sendfile is only used for the case where the
358           source data is on the ntfs partition and the destination is
359           somewhere else, i.e. nothing we need to concern ourselves with.
360         - Add generic_file_write() as our ntfs file write operation.
361
362 2.0.23 - Major bug fixes (races, deadlocks, non-i386 architectures).
363
364         - Massive internal locking changes to mft record locking. Fixes lock
365           recursion and replaces the mrec_lock read/write semaphore with a
366           mutex. Also removes the now superfluous mft_count. This fixes several
367           race conditions and deadlocks, especially in the future write code.
368         - Fix ntfs over loopback for compressed files by adding an
369           optimization barrier. (gcc was screwing up otherwise ?)
370         - Miscellaneous cleanups all over the code and a fix or two in error
371           handling code paths.
372         Thanks go to Christoph Hellwig for pointing out the following two:
373         - Remove now unused function fs/ntfs/malloc.h::vmalloc_nofs().
374         - Fix ntfs_free() for ia64 and parisc by checking for VMALLOC_END, too.
375
376 2.0.22 - Cleanups, mainly to ntfs_readdir(), and use C99 initializers.
377
378         - Change fs/ntfs/dir.c::ntfs_reddir() to only read/write ->f_pos once
379           at entry/exit respectively.
380         - Use C99 initializers for structures.
381         - Remove unused variable blocks from fs/ntfs/aops.c::ntfs_read_block().
382
383 2.0.21 - Check for, and refuse to work with too large files/directories/volumes.
384
385         - Limit volume size at mount time to 2TiB on architectures where
386           unsigned long is 32-bits (fs/ntfs/super.c::parse_ntfs_boot_sector()).
387           This is the most we can do without overflowing the 32-bit limit of
388           the block device size imposed on us by sb_bread() and sb_getblk()
389           for the time being.
390         - Limit file/directory size at open() time to 16TiB on architectures
391           where unsigned long is 32-bits (fs/ntfs/file.c::ntfs_file_open() and
392           fs/ntfs/dir.c::ntfs_dir_open()). This is the most we can do without
393           overflowing the page cache page index.
394
395 2.0.20 - Support non-resident directory index bitmaps, fix page leak in readdir.
396
397         - Move the directory index bitmap to use an attribute inode instead of
398           having special fields for it inside the ntfs inode structure. This
399           means that the index bitmaps now use the page cache for i/o, too,
400           and also as a side effect we get support for non-resident index
401           bitmaps for free.
402         - Simplify/cleanup error handling in fs/ntfs/dir.c::ntfs_readdir() and
403           fix a page leak that manifested itself in some cases.
404         - Add fs/ntfs/inode.c::ntfs_put_inode(), which we need to release the
405           index bitmap inode on the final iput().
406
407 2.0.19 - Fix race condition, improvements, and optimizations in i/o interface.
408
409         - Apply block optimization added to fs/ntfs/aops.c::ntfs_read_block()
410           to fs/ntfs/compress.c::ntfs_file_read_compressed_block() as well.
411         - Drop the "file" from ntfs_file_read_compressed_block().
412         - Rename fs/ntfs/aops.c::ntfs_enb_buffer_read_async() to
413           ntfs_end_buffer_async_read() (more like the fs/buffer.c counterpart).
414         - Update ntfs_end_buffer_async_read() with the improved logic from
415           its updated counterpart fs/buffer.c::end_buffer_async_read(). Apply
416           further logic improvements to better determine when we set PageError.
417         - Update submission of buffers in fs/ntfs/aops.c::ntfs_read_block() to
418           check for the buffers being uptodate first in line with the updated
419           fs/buffer.c::block_read_full_page(). This plugs a small race
420           condition.
421
422 2.0.18 - Fix race condition in reading of compressed files.
423
424         - There was a narrow window between checking a buffer head for being
425           uptodate and locking it in ntfs_file_read_compressed_block(). We now
426           lock the buffer and then check whether it is uptodate or not.
427
428 2.0.17 - Cleanups and optimizations - shrinking the ToDo list.
429
430         - Modify fs/ntfs/inode.c::ntfs_read_locked_inode() to return an error
431           code and update callers, i.e. ntfs_iget(), to pass that error code
432           up instead of just using -EIO.
433         - Modifications to super.c to ensure that both mount and remount
434           cannot set any write related options when the driver is compiled
435           read-only.
436         - Optimize block resolution in fs/ntfs/aops.c::ntfs_read_block() to
437           cache the current run list element. This should improve performance
438           when reading very large and/or very fragmented data.
439
440 2.0.16 - Convert access to $MFT/$BITMAP to attribute inode API.
441
442         - Fix a stupid bug introduced in 2.0.15 where we were unmapping the
443           wrong inode in fs/ntfs/inode.c::ntfs_attr_iget().
444         - Fix debugging check in fs/ntfs/aops.c::ntfs_read_block().
445         - Convert $MFT/$BITMAP access to attribute inode API and remove all
446           remnants of the ugly mftbmp address space and operations hack. This
447           means we finally have only one readpage function as well as only one
448           async io completion handler. Yey! The mft bitmap is now just an
449           attribute inode and is accessed from vol->mftbmp_ino just as if it
450           were a normal file. Fake inodes rule. (-:
451
452 2.0.15 - Fake inodes based attribute i/o via the pagecache, fixes and cleanups.
453
454         - Fix silly bug in fs/ntfs/super.c::parse_options() which was causing
455           remounts to fail when the partition had an entry in /etc/fstab and
456           the entry specified the nls= option.
457         - Apply same macro magic used in fs/ntfs/inode.h to fs/ntfs/volume.h to
458           expand all the helper functions NVolFoo(), NVolSetFoo(), and
459           NVolClearFoo().
460         - Move copyright statement from driver initialisation message to
461           module description (fs/super.c). This makes the initialisation
462           message fit on one line and fits in better with rest of kernel.
463         - Update fs/ntfs/attrib.c::map_run_list() to work on both real and
464           attribute inodes, and both for files and directories.
465         - Implement fake attribute inodes allowing all attribute i/o to go via
466           the page cache and to use all the normal vfs/mm functionality:
467           - Add ntfs_attr_iget() and its helper ntfs_read_locked_attr_inode()
468             to fs/ntfs/inode.c.
469           - Add needed cleanup code to ntfs_clear_big_inode().
470         - Merge address space operations for files and directories (aops.c),
471           now just have ntfs_aops:
472           - Rename:
473                 end_buffer_read_attr_async() -> ntfs_end_buffer_read_async(),
474                 ntfs_attr_read_block()       -> ntfs_read_block(),
475                 ntfs_file_read_page()        -> ntfs_readpage().
476           - Rewrite fs/ntfs/aops.c::ntfs_readpage() to work on both real and
477             attribute inodes, and both for files and directories.
478           - Remove obsolete fs/ntfs/aops.c::ntfs_mst_readpage().
479
480 2.0.14 - Run list merging code cleanup, minor locking changes, typo fixes.
481
482         - Change fs/ntfs/super.c::ntfs_statfs() to not rely on BKL by moving
483           the locking out of super.c::get_nr_free_mft_records() and taking and
484           dropping the mftbmp_lock rw_semaphore in ntfs_statfs() itself.
485         - Bring attribute run list merging code (fs/ntfs/attrib.c) in sync with
486           current userspace ntfs library code. This means that if a merge
487           fails the original run lists are always left unmodified instead of
488           being silently corrupted.
489         - Misc typo fixes.
490
491 2.0.13 - Use iget5_locked() in preparation for fake inodes and small cleanups.
492
493         - Remove nr_mft_bits and the now superfluous union with nr_mft_records
494           from ntfs_volume structure.
495         - Remove nr_lcn_bits and the now superfluous union with nr_clusters
496           from ntfs_volume structure.
497         - Use iget5_locked() and friends instead of conventional iget(). Wrap
498           the call in fs/ntfs/inode.c::ntfs_iget() and update callers of iget()
499           to use ntfs_iget(). Leave only one iget() call at mount time so we
500           don't need an ntfs_iget_mount().
501         - Change fs/ntfs/inode.c::ntfs_new_extent_inode() to take mft_no as an
502           additional argument.
503
504 2.0.12 - Initial cleanup of address space operations following 2.0.11 changes.
505
506         - Merge fs/ntfs/aops.c::end_buffer_read_mst_async() and
507           fs/ntfs/aops.c::end_buffer_read_file_async() into one function
508           fs/ntfs/aops.c::end_buffer_read_attr_async() using NInoMstProtected()
509           to determine whether to apply mst fixups or not.
510         - Above change allows merging fs/ntfs/aops.c::ntfs_file_read_block()
511           and fs/ntfs/aops.c::ntfs_mst_readpage() into one function
512           fs/ntfs/aops.c::ntfs_attr_read_block(). Also, create a tiny wrapper
513           fs/ntfs/aops.c::ntfs_mst_readpage() to transform the parameters from
514           the VFS readpage function prototype to the ntfs_attr_read_block()
515           function prototype.
516
517 2.0.11 - Initial preparations for fake inode based attribute i/o.
518
519         - Move definition of ntfs_inode_state_bits to fs/ntfs/inode.h and
520           do some macro magic (adapted from include/linux/buffer_head.h) to
521           expand all the helper functions NInoFoo(), NInoSetFoo(), and
522           NInoClearFoo().
523         - Add new flag to ntfs_inode_state_bits: NI_Sparse.
524         - Add new fields to ntfs_inode structure to allow use of fake inodes
525           for attribute i/o: type, name, name_len. Also add new state bits:
526           NI_Attr, which, if set, indicates the inode is a fake inode, and
527           NI_MstProtected, which, if set, indicates the attribute uses multi
528           sector transfer protection, i.e. fixups need to be applied after
529           reads and before/after writes.
530         - Rename fs/ntfs/inode.c::ntfs_{new,clear,destroy}_inode() to
531           ntfs_{new,clear,destroy}_extent_inode() and update callers.
532         - Use ntfs_clear_extent_inode() in fs/ntfs/inode.c::__ntfs_clear_inode()
533           instead of ntfs_destroy_extent_inode().
534         - Cleanup memory deallocations in {__,}ntfs_clear_{,big_}inode().
535         - Make all operations on ntfs inode state bits use the NIno* functions.
536         - Set up the new ntfs inode fields and state bits in
537           fs/ntfs/inode.c::ntfs_read_inode() and add appropriate cleanup of
538           allocated memory to __ntfs_clear_inode().
539         - Cleanup ntfs_inode structure a bit for better ordering of elements
540           w.r.t. their size to allow better packing of the structure in memory.
541
542 2.0.10 - There can only be 2^32 - 1 inodes on an NTFS volume.
543
544         - Add check at mount time to verify that the number of inodes on the
545           volume does not exceed 2^32 - 1, which is the maximum allowed for
546           NTFS according to Microsoft.
547         - Change mft_no member of ntfs_inode structure to be unsigned long.
548           Update all users. This makes ntfs_inode->mft_no just a copy of struct
549           inode->i_ino. But we can't just always use struct inode->i_ino and
550           remove mft_no because extent inodes do not have an attached struct
551           inode.
552
553 2.0.9 - Decompression engine now uses a single buffer and other cleanups.
554
555         - Change decompression engine to use a single buffer protected by a
556           spin lock instead of per-CPU buffers. (Rusty Russell)
557         - Do not update cb_pos when handling a partial final page during
558           decompression of a sparse compression block, as the value is later
559           reset without being read/used. (Rusty Russell)
560         - Switch to using the new KM_BIO_SRC_IRQ for atomic kmap()s. (Andrew
561           Morton)
562         - Change buffer size in ntfs_readdir()/ntfs_filldir() to use
563           NLS_MAX_CHARSET_SIZE which makes the buffers almost 1kiB each but
564           it also makes everything safer so it is a good thing.
565         - Miscellaneous minor cleanups to comments.
566
567 2.0.8 - Major updates for handling of case sensitivity and dcache aliasing.
568
569         Big thanks go to Al Viro and other inhabitants of #kernel for investing
570         their time to discuss the case sensitivity and dcache aliasing issues.
571
572         - Remove unused source file fs/ntfs/attraops.c.
573         - Remove show_inodes mount option(s), thus dropping support for
574           displaying of short file names.
575         - Remove deprecated mount option posix.
576         - Restore show_sys_files mount option.
577         - Add new mount option case_sensitive, to determine if the driver
578           treats file names as case sensitive or not. If case sensitive, create
579           file names in the POSIX namespace. Otherwise create file names in the
580           LONG/WIN32 namespace. Note, files remain accessible via their short
581           file name, if it exists.
582         - Remove really dumb logic bug in boot sector recovery code.
583         - Fix dcache aliasing issues wrt short/long file names via changes
584           to fs/ntfs/dir.c::ntfs_lookup_inode_by_name() and
585           fs/ntfs/namei.c::ntfs_lookup():
586           - Add additional argument to ntfs_lookup_inode_by_name() in which we
587             return information about the matching file name if the case is not
588             matching or the match is a short file name. See comments above the
589             function definition for details.
590           - Change ntfs_lookup() to only create dcache entries for the correctly
591             cased file name and only for the WIN32 namespace counterpart of DOS
592             namespace file names. This ensures we have only one dentry per
593             directory and also removes all dcache aliasing issues between short
594             and long file names once we add write support. See comments above
595             function for details.
596         - Fix potential 1 byte overflow in fs/ntfs/unistr.c::ntfs_ucstonls().
597
598 2.0.7 - Minor cleanups and updates for changes in core kernel code.
599
600         - Remove much of the NULL struct element initializers.
601         - Various updates to make compatible with recent kernels.
602         - Remove defines of MAX_BUF_PER_PAGE and include linux/buffer_head.h
603           in fs/ntfs/ntfs.h instead.
604         - Remove no longer needed KERNEL_VERSION checks. We are now in the
605           kernel proper so they are no longer needed.
606
607 2.0.6 - Major bugfix to make compatible with other kernel changes.
608
609         - Initialize the mftbmp address space properly now that there are more
610           fields in the struct address_space. This was leading to hangs and
611           oopses on umount since 2.5.12 because of changes to other parts of
612           the kernel. We probably want a kernel generic init_address_space()
613           function...
614         - Drop BKL from ntfs_readdir() after consultation with Al Viro. The
615           only caller of ->readdir() is vfs_readdir() which holds i_sem during
616           the call, and i_sem is sufficient protection against changes in the
617           directory inode (including ->i_size).
618         - Use generic_file_llseek() for directories (as opposed to
619           default_llseek()) as this downs i_sem instead of the BKL which is
620           what we now need for exclusion against ->f_pos changes considering we
621           no longer take the BKL in ntfs_readdir().
622
623 2.0.5 - Major bugfix. Buffer overflow in extent inode handling.
624
625         - No need to set old blocksize in super.c::ntfs_fill_super() as the
626           VFS does so via invocation of deactivate_super() calling
627           fs->fill_super() calling block_kill_super() which does it.
628         - BKL moved from VFS into dir.c::ntfs_readdir(). (Linus Torvalds)
629           -> Do we really need it? I don't think so as we have exclusion on
630           the directory ntfs_inode rw_semaphore mrec_lock. We mmight have to
631           move the ->f_pos accesses under the mrec_lock though. Check this...
632         - Fix really, really, really stupid buffer overflow in extent inode
633           handling in mft.c::map_extent_mft_record().
634
635 2.0.4 - Cleanups and updates for kernel 2.5.11.
636
637         - Add documentation on how to use the MD driver to be able to use NTFS
638           stripe and volume sets in Linux and generally cleanup documentation
639           a bit.
640         Remove all uses of kdev_t in favour of struct block_device *:
641         - Change compress.c::ntfs_file_read_compressed_block() to use
642           sb_getblk() instead of getblk().
643         - Change super.c::ntfs_fill_super() to use bdev_hardsect_size() instead
644           of get_hardsect_size().
645         - No need to get old blocksize in super.c::ntfs_fill_super() as
646           fs/super.c::get_sb_bdev() already does this.
647         - Set bh->b_bdev instead of bh->b_dev throughout aops.c.
648
649 2.0.3 - Small bug fixes, cleanups, and performance improvements.
650
651         - Remove some dead code from mft.c.
652         - Optimize readpage and read_block functions throughout aops.c so that
653           only initialized blocks are read. Non-initialized ones have their
654           buffer head mapped, zeroed, and set up to date, without scheduling
655           any i/o. Thanks to Al Viro for advice on how to avoid the device i/o.
656         Thanks go to Andrew Morton for spotting the below:
657         - Fix buglet in allocate_compression_buffers() error code path.
658         - Call flush_dcache_page() after modifying page cache page contents in
659           ntfs_file_readpage().
660         - Check for existence of page buffers throughout aops.c before calling
661           create_empty_buffers(). This happens when an I/O error occurs and the
662           read is retried. (It also happens once writing is implemented so that
663           needed doing anyway but I had left it for later...)
664         - Don't BUG_ON() uptodate and/or mapped buffers throughout aops.c in
665           readpage and read_block functions. Reasoning same as above (i.e. I/O
666           error retries and future write code paths.)
667
668 2.0.2 - Minor updates and cleanups.
669
670         - Cleanup: rename mst.c::__post_read_mst_fixup to post_write_mst_fixup
671           and cleanup the code a bit, removing the unused size parameter.
672         - Change default fmask to 0177 and update documentation.
673         - Change attrib.c::get_attr_search_ctx() to return the search context
674           directly instead of taking the address of a pointer. A return value
675           of NULL means the allocation failed. Updated all callers
676           appropriately.
677         - Update to 2.5.9 kernel (preserving backwards compatibility) by
678           replacing all occurences of page->buffers with page_buffers(page).
679         - Fix minor bugs in run list merging, also minor cleanup.
680         - Updates to bootsector layout and mft mirror contents descriptions.
681         - Small bug fix in error detection in unistr.c and some cleanups.
682         - Grow name buffer allocations in unistr.c in aligned mutlipled of 64
683           bytes.
684
685 2.0.1 - Minor updates.
686
687         - Make default umask correspond to documentation.
688         - Improve documentation.
689         - Set default mode to include execute bit. The {u,f,d}mask can be used
690           to take it away if desired. This allows binaries to be executed from
691           a mounted ntfs partition.
692
693 2.0.0 - New version number. Remove TNG from the name. Now in the kernel.
694
695         - Add kill_super, just keeping up with the vfs changes in the kernel.
696         - Repeat some changes from tng-0.0.8 that somehow got lost on the way
697           from the CVS import into BitKeeper.
698         - Begin to implement proper handling of allocated_size vs
699           initialized_size vs data_size (i.e. i_size). Done are
700           mft.c::ntfs_mft_readpage(), aops.c::end_buffer_read_index_async(),
701           and attrib.c::load_attribute_list().
702         - Lock the run list in attrib.c::load_attribute_list() while using it.
703         - Fix memory leak in ntfs_file_read_compressed_block() and generally
704           clean up compress.c a little, removing some uncommented/unused debug
705           code.
706         - Tidy up dir.c a little bit.
707         - Don't bother getting the run list in inode.c::ntfs_read_inode().
708         - Merge mft.c::ntfs_mft_readpage() and aops.c::ntfs_index_readpage()
709           creating aops.c::ntfs_mst_readpage(), improving the handling of
710           holes and overflow in the process and implementing the correct
711           equivalent of ntfs_file_get_block() in ntfs_mst_readpage() itself.
712           I am aiming for correctness at the moment. Modularisation can come
713           later.
714         - Rename aops.c::end_buffer_read_index_async() to
715           end_buffer_read_mst_async() and optimize the overflow checking and
716           handling.
717         - Use the host of the mftbmp address space mapping to hold the ntfs
718           volume. This is needed so the async i/o completion handler can
719           retrieve a pointer to the volume. Hopefully this will not cause
720           problems elsewhere in the kernel... Otherwise will need to use a
721           fake inode.
722         - Complete implementation of proper handling of allocated_size vs
723           initialized_size vs data_size (i.e. i_size) in whole driver.
724           Basically aops.c is now completely rewritten.
725         - Change NTFS driver name to just NTFS and set version number to 2.0.0
726           to make a clear distinction from the old driver which is still on
727           version 1.1.22.
728
729 tng-0.0.8 - 08/03/2002 - Now using BitKeeper, http://linux-ntfs.bkbits.net/
730
731         - Replace bdevname(sb->s_dev) with sb->s_id.
732         - Remove now superfluous new-line characters in all callers of
733           ntfs_debug().
734         - Apply kludge in ntfs_read_inode(), setting i_nlink to 1 for
735           directories. Without this the "find" utility gets very upset which is
736           fair enough as Linux/Unix do not support directory hard links.
737         - Further run list merging work. (Richard Russon)
738         - Backwards compatibility for gcc-2.95. (Richard Russon)
739         - Update to kernel 2.5.5-pre1 and rediff the now tiny patch.
740         - Convert to new file system declaration using ->ntfs_get_sb() and
741           replacing ntfs_read_super() with ntfs_fill_super().
742         - Set s_maxbytes to MAX_LFS_FILESIZE to avoid page cache page index
743           overflow on 32-bit architectures.
744         - Cleanup upcase loading code to use ntfs_(un)map_page().
745         - Disable/reenable preemtion in critical sections of compession engine.
746         - Replace device size determination in ntfs_fill_super() with
747           sb->s_bdev->bd_inode->i_size (in bytes) and remove now superfluous
748           function super.c::get_nr_blocks().
749         - Implement a mount time option (show_inodes) allowing choice of which
750           types of inode names readdir() returns and modify ntfs_filldir()
751           accordingly. There are several parameters to show_inodes:
752                 system: system files
753                 win32:  long file names (including POSIX file names) [DEFAULT]
754                 long:   same as win32
755                 dos:    short file names only (excluding POSIX file names)
756                 short:  same as dos
757                 posix:  same as both win32 and dos
758                 all:    all file names
759           Note that the options are additive, i.e. specifying:
760                 -o show_inodes=system,show_inodes=win32,show_inodes=dos
761           is the same as specifying:
762                 -o show_inodes=all
763           Note that the "posix" and "all" options will show all directory
764           names, BUT the link count on each directory inode entry is set to 1,
765           due to Linux not supporting directory hard links. This may well
766           confuse some userspace applications, since the directory names will
767           have the same inode numbers. Thus it is NOT advisable to use the
768           "posix" or "all" options. We provide them only for completeness sake.
769         - Add copies of allocated_size, initialized_size, and compressed_size to
770           the ntfs inode structure and set them up in
771           inode.c::ntfs_read_inode(). These reflect the unnamed data attribute
772           for files and the index allocation attribute for directories.
773         - Add copies of allocated_size and initialized_size to ntfs inode for
774           $BITMAP attribute of large directories and set them up in
775           inode.c::ntfs_read_inode().
776         - Add copies of allocated_size and initialized_size to ntfs volume for
777           $BITMAP attribute of $MFT and set them up in
778           super.c::load_system_files().
779         - Parse deprecated ntfs driver options (iocharset, show_sys_files,
780           posix, and utf8) and tell user what the new options to use are. Note
781           we still do support them but they will be removed with kernel 2.7.x.
782         - Change all occurences of integer long long printf formatting to hex
783           as printk() will not support long long integer format if/when the
784           div64 patch goes into the kernel.
785         - Make slab caches have stable names and change the names to what they
786           were intended to be. These changes are required/made possible by the
787           new slab cache name handling which removes the length limitation by
788           requiring the caller of kmem_cache_create() to supply a stable name
789           which is then referenced but not copied.
790         - Rename run_list structure to run_list_element and create a new
791           run_list structure containing a pointer to a run_list_element
792           structure and a read/write semaphore. Adapt all users of run lists
793           to new scheme and take and release the lock as needed. This fixes a
794           nasty race as the run_list changes even when inodes are locked for
795           reading and even when the inode isn't locked at all, so we really
796           needed the serialization. We use a semaphore rather than a spinlock
797           as memory allocations can sleep and doing everything GFP_ATOMIC
798           would be silly.
799         - Cleanup read_inode() removing all code checking for lowest_vcn != 0.
800           This can never happen due to the nature of lookup_attr() and how we
801           support attribute lists. If it did happen it would imply the inode
802           being corrupt.
803         - Check for lowest_vcn != 0 in ntfs_read_inode() and mark the inode as
804           bad if found.
805         - Update to 2.5.6-pre2 changes in struct address_space.
806         - Use parent_ino() when accessing d_parent inode number in dir.c.
807         - Import Sourceforge CVS repository into BitKeeper repository:
808                 http://linux-ntfs.bkbits.net/ntfs-tng-2.5
809         - Update fs/Makefile, fs/Config.help, fs/Config.in, and
810           Documentation/filesystems/ntfs.txt for NTFS TNG.
811         - Create kernel configuration option controlling whether debugging
812           is enabled or not.
813         - Add the required export of end_buffer_io_sync() from the patches
814           directory to the kernel code.
815         - Update inode.c::ntfs_show_options() with show_inodes mount option.
816         - Update errors mount option.
817
818 tng-0.0.7 - 13/02/2002 - The driver is now feature complete for read-only!
819
820         - Cleanup mft.c and it's debug/error output in particular. Fix a minor
821           bug in mapping of extent inodes. Update all the comments to fit all
822           the recent code changes.
823         - Modify vcn_to_lcn() to cope with entirely unmapped run lists.
824         - Cleanups in compress.c, mostly comments and folding help.
825         - Implement attrib.c::map_run_list() as a generic helper.
826         - Make compress.c::ntfs_file_read_compressed_block() use map_run_list()
827           thus making code shorter and enabling attribute list support.
828         - Cleanup incorrect use of [su]64 with %L printf format specifier in
829           all source files. Type casts to [unsigned] long long added to correct
830           the mismatches (important for architectures which have long long not
831           being 64 bits).
832         - Merge async io completion handlers for directory indexes and $MFT
833           data into one by setting the index_block_size{_bits} of the ntfs
834           inode for $MFT to the mft_record_size{_bits} of the ntfs_volume.
835         - Cleanup aops.c, update comments.
836         - Make ntfs_file_get_block() use map_run_list() so all files now
837           support attribute lists.
838         - Make ntfs_dir_readpage() almost verbatim copy of
839           block_read_full_page() by using ntfs_file_get_block() with only real
840           difference being the use of our own async io completion handler
841           rather than the default one, thus reducing the amount of code and
842           automatically enabling attribute list support for directory indices.
843         - Fix bug in load_attribute_list() - forgot to call brelse in error
844           code path.
845         - Change parameters to find_attr() and lookup_attr(). We no longer
846           pass in the upcase table and its length. These can be gotten from
847           ctx->ntfs_ino->vol->upcase{_len}. Update all callers.
848         - Cleanups in attrib.c.
849         - Implement merging of run lists, attrib.c::merge_run_lists() and its
850           helpers. (Richard Russon)
851         - Attribute lists part 2, attribute extents and multi part run lists:
852           enable proper support for LCN_RL_NOT_MAPPED and automatic mapping of
853           further run list parts via attrib.c::map_run_list().
854         - Tiny endianness bug fix in decompress_mapping_pairs().
855
856 tng-0.0.6 - Encrypted directories, bug fixes, cleanups, debugging enhancements.
857
858         - Enable encrypted directories. (Their index root is marked encrypted
859           to indicate that new files in that directory should be created
860           encrypted.)
861         - Fix bug in NInoBmpNonResident() macro. (Cut and paste error.)
862         - Enable $Extend system directory. Most (if not all) extended system
863           files do not have unnamed data attributes so ntfs_read_inode() had to
864           special case them but that is ok, as the special casing recovery
865           happens inside an error code path so there is zero slow down in the
866           normal fast path. The special casing is done by introducing a new
867           function inode.c::ntfs_is_extended_system_file() which checks if any
868           of the hard links in the inode point to $Extend as being their parent
869           directory and if they do we assume this is an extended system file.
870         - Create a sysctl/proc interface to allow {dis,en}abling of debug output
871           when compiled with -DDEBUG. Default is debug messages to be disabled.
872           To enable them, one writes a non-zero value to /proc/sys/fs/ntfs-debug
873           (if /proc is enabled) or uses sysctl(2) to effect the same (if sysctl
874           interface is enabled). Inspired by old ntfs driver.
875         - Add debug_msgs insmod/kernel boot parameter to set whether debug
876           messages are {dis,en}abled. This is useful to enable debug messages
877           during ntfs initialization and is the only way to activate debugging
878           when the sysctl interface is not enabled.
879         - Cleanup debug output in various places.
880         - Remove all dollar signs ($) from the source (except comments) to
881           enable compilation on architectures whose gcc compiler does not
882           support dollar signs in the names of variables/constants. Attribute
883           types now start with AT_ instead of $ and $I30 is now just I30.
884         - Cleanup ntfs_lookup() and add consistency check of sequence numbers.
885         - Load complete run list for $MFT/$BITMAP during mount and cleanup
886           access functions. This means we now cope with $MFT/$BITMAP being
887           spread accross several mft records.
888         - Disable modification of mft_zone_multiplier on remount. We can always
889           reenable this later on if we really want to, but we will need to make
890           sure we readjust the mft_zone size / layout accordingly.
891
892 tng-0.0.5 - Modernize for 2.5.x and further in line-ing with Al Viro's comments.
893
894         - Use sb_set_blocksize() instead of set_blocksize() and verify the
895           return value.
896         - Use sb_bread() instead of bread() throughout.
897         - Add index_vcn_size{_bits} to ntfs_inode structure to store the size
898           of a directory index block vcn. Apply resulting simplifications in
899           dir.c everywhere.
900         - Fix a small bug somewhere (but forgot what it was).
901         - Change ntfs_{debug,error,warning} to enable gcc to do type checking
902           on the printf-format parameter list and fix bugs reported by gcc
903           as a result. (Richard Russon)
904         - Move inode allocation strategy to Al's new stuff but maintain the
905           divorce of ntfs_inode from struct inode. To achieve this we have two
906           separate slab caches, one for big ntfs inodes containing a struct
907           inode and pure ntfs inodes and at the same time fix some faulty
908           error code paths in ntfs_read_inode().
909         - Show mount options in proc (inode.c::ntfs_show_options()).
910
911 tng-0.0.4 - Big changes, getting in line with Al Viro's comments.
912
913         - Modified (un)map_mft_record functions to be common for read and write
914           case. To specify which is which, added extra parameter at front of
915           parameter list. Pass either READ or WRITE to this, each has the
916           obvious meaning.
917         - General cleanups to allow for easier folding in vi.
918         - attrib.c::decompress_mapping_pairs() now accepts the old run list
919           argument, and invokes attrib.c::merge_run_lists() to merge the old
920           and the new run lists.
921         - Removed attrib.c::find_first_attr().
922         - Implemented loading of attribute list and complete run list for $MFT.
923           This means we now cope with $MFT being spread across several mft
924           records.
925         - Adapt to 2.5.2-pre9 and the changed create_empty_buffers() syntax.
926         - Adapt major/minor/kdev_t/[bk]devname stuff to new 2.5.x kernels.
927         - Make ntfs_volume be allocated via kmalloc() instead of using a slab
928           cache. There are too little ntfs_volume structures at any one time
929           to justify a private slab cache.
930         - Fix bogus kmap() use in async io completion. Now use kmap_atomic().
931           Use KM_BIO_IRQ on advice from IRC/kernel...
932         - Use ntfs_map_page() in map_mft_record() and create ->readpage method
933           for reading $MFT (ntfs_mft_readpage). In the process create dedicated
934           address space operations (ntfs_mft_aops) for $MFT inode mapping. Also
935           removed the now superfluous exports from the kernel core patch.
936         - Fix a bug where kfree() was used insted of ntfs_free().
937         - Change map_mft_record() to take ntfs_inode as argument instead of
938           vfs inode. Dito for unmap_mft_record(). Adapt all callers.
939         - Add pointer to ntfs_volume to ntfs_inode.
940         - Add mft record number and sequence number to ntfs_inode. Stop using
941           i_ino and i_generation for in-driver purposes.
942         - Implement attrib.c::merge_run_lists(). (Richard Russon)
943         - Remove use of proper inodes by extent inodes. Move i_ino and
944           i_generation to ntfs_inode to do this. Apply simplifications that
945           result and remove iget_no_wait(), etc.
946         - Pass ntfs_inode everywhere in the driver (used to be struct inode).
947         - Add reference counting in ntfs_inode for the ntfs inode itself and
948           for the mapped mft record.
949         - Extend mft record mapping so we can (un)map extent mft records (new
950           functions (un)map_extent_mft_record), and so mappings are reference
951           counted and don't have to happen twice if already mapped - just ref
952           count increases.
953         - Add -o iocharset as alias to -o nls for backwards compatibility.
954         - The latest core patch is now tiny. In fact just a single additional
955           export is necessary over the base kernel.
956
957 tng-0.0.3 - Cleanups, enhancements, bug fixes.
958
959         - Work on attrib.c::decompress_mapping_pairs() to detect base extents
960           and setup the run list appropriately using knowledge provided by the
961           sizes in the base attribute record.
962         - Balance the get_/put_attr_search_ctx() calls so we don't leak memory
963           any more.
964         - Introduce ntfs_malloc_nofs() and ntfs_free() to allocate/free a single
965           page or use vmalloc depending on the amount of memory requested.
966         - Cleanup error output. The __FUNCTION__ "(): " is now added
967           automatically. Introduced a new header file debug.h to support this
968           and also moved ntfs_debug() function into it.
969         - Make reading of compressed files more intelligent and especially get
970           rid of the vmalloc_nofs() from readpage(). This now uses per CPU
971           buffers (allocated at first mount with cluster size <= 4kiB and
972           deallocated on last umount with cluster size <= 4kiB), and
973           asynchronous io for the compressed data using a list of buffer heads.
974           Er, we use synchronous io as async io only works on whole pages
975           covered by buffers and not on individual buffer heads...
976         - Bug fix for reading compressed files with sparse compression blocks.
977
978 tng-0.0.2 - Now handles larger/fragmented/compressed volumes/files/dirs.
979
980         - Fixed handling of directories when cluster size exceeds index block
981           size.
982         - Hide DOS only name space directory entries from readdir() but allow
983           them in lookup(). This should fix the problem that Linux doesn't
984           support directory hard links, while still allowing access to entries
985           via their short file name. This also has the benefit of mimicking
986           what Windows users are used to, so it is the ideal solution.
987         - Implemented sync_page everywhere so no more hangs in D state when
988           waiting for a page.
989         - Stop using bforget() in favour of brelse().
990         - Stop locking buffers unnecessarily.
991         - Implemented compressed files (inode->mapping contains uncompressed
992           data, raw compressed data is currently bread() into a vmalloc()ed
993           memory buffer).
994         - Enable compressed directories. (Their index root is marked compressed
995           to indicate that new files in that directory should be created
996           compressed.)
997         - Use vsnprintf rather than vsprintf in the ntfs_error and ntfs_warning
998           functions. (Thanks to Will Dyson for pointing this out.)
999         - Moved the ntfs_inode and ntfs_volume (the former ntfs_inode_info and
1000           ntfs_sb_info) out of the common inode and super_block structures and
1001           started using the generic_ip and generic_sbp pointers instead. This
1002           makes ntfs entirely private with respect to the kernel tree.
1003         - Detect compiler version and abort with error message if gcc less than
1004           2.96 is used.
1005         - Fix bug in name comparison function in unistr.c.
1006         - Implement attribute lists part 1, the infrastructure: search contexts
1007           and operations, find_external_attr(), lookup_attr()) and make the
1008           code use the infrastructure.
1009         - Fix stupid buffer overflow bug that became apparent on larger run
1010           list containing attributes.
1011         - Fix bugs in readdir() that became apparent on larger directories.
1012
1013         The driver is now really useful and survives the test
1014                 find . -type f -exec md5sum "{}" \;
1015         without any error messages on a over 1GiB sized partition with >16k
1016         files on it, including compressed files and directories and many files
1017         and directories with attribute lists.
1018
1019 tng-0.0.1 - The first useful version.
1020
1021         - Added ntfs_lookup().
1022         - Added default upcase generation and handling.
1023         - Added compile options to be shown on module init.
1024         - Many bug fixes that were "hidden" before.
1025         - Update to latest kernel.
1026         - Added ntfs_readdir().
1027         - Added file operations for mmap(), read(), open() and llseek(). We just
1028           use the generic ones. The whole point of going through implementing
1029           readpage() methods and where possible get_block() call backs is that
1030           this allows us to make use of the generic high level methods provided
1031           by the kernel.
1032
1033         The driver is now actually useful! Yey. (-: It undoubtedly has got bugs
1034         though and it doesn't implement accesssing compressed files yet. Also,
1035         accessing files with attribute list attributes is not implemented yet
1036         either. But for small or simple file systems it should work and allow
1037         you to list directories, use stat on directory entries and the file
1038         system, open, read, mmap and llseek around in files. A big mile stone
1039         has been reached!
1040
1041 tng-0.0.0 - Initial version tag.
1042
1043         Initial driver implementation. The driver can mount and umount simple
1044         NTFS file systems (i.e. ones without attribute lists in the system
1045         files). If the mount fails there might be problems in the error handling
1046         code paths, so be warned. Otherwise it seems to be loading the system
1047         files nicely and the mft record read mapping/unmapping seems to be
1048         working nicely, too. Proof of inode metadata in the page cache and non-
1049         resident file unnamed stream data in the page cache concepts is thus
1050         complete.