patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / fs / ntfs / ChangeLog
index 668900d..57e8c7e 100644 (file)
@@ -1,12 +1,20 @@
-ToDo:
+ToDo/Notes:
        - Find and fix bugs.
+       - Either invalidate quotas or update the quota charges on NTFS 3.x
+         volumes with quota tracking enabled ($Quota).
+       - Checkpoint or disable the user space journal ($UsnJrnl).
        - Implement aops->set_page_dirty() in order to take control of buffer
          dirtying. Not having it means if page_has_buffers(), all buffers
          will be dirtied with the page. And if not they won't be. That is
          fine for the moment but will break once we enable metadata updates.
-       - Implement sops->dirty_inode() to implement {a,m,c} time updates and
-         such things.
-       - Implement sops->write_inode().
+         For now just always using __set_page_dirty_nobuffers() for metadata
+         pages as nothing can dirty a page other than ourselves. Should this
+         change, we will really need to roll our own ->set_page_dirty().
+       - Implement sops->dirty_inode() to implement {a,m,c}time updates and
+         such things.  This should probably just flag the ntfs inode such that
+         sops->write_inode(), i.e. ntfs_write_inode(), will copy the times
+         when it is invoked rather than having to update the mft record
+         every time.
        - In between ntfs_prepare/commit_write, need exclusion between
          simultaneous file extensions. Need perhaps an NInoResizeUnderway()
          flag which we can set in ntfs_prepare_write() and clear again in
@@ -18,8 +26,128 @@ ToDo:
          OTOH, perhaps i_sem, which is held accross generic_file_write is
          sufficient for synchronisation here. We then just need to make sure
          ntfs_readpage/writepage/truncate interoperate properly with us.
-
-2.1.8 - Handle $MFT mirror and $LogFile, improve time ihandling, and cleanups.
+       - Implement mft.c::sync_mft_mirror_umount().  We currently will just
+         leave the volume dirty on umount if the final iput(vol->mft_ino)
+         causes a write of any mirrored mft records due to the mft mirror
+         inode having been discarded already.  Whether this can actually ever
+         happen is unclear however so it is worth waiting until someone hits
+         the problem.
+       - Enable the code for setting the NT4 compatibility flag when we start
+         making NTFS 1.2 specific modifications.
+
+2.1.14 - Fix an NFSd caused deadlock reported by several users.
+
+       - Modify fs/ntfs/ntfs_readdir() to copy the index root attribute value
+         to a buffer so that we can put the search context and unmap the mft
+         record before calling the filldir() callback.  We need to do this
+         because of NFSd which calls ->lookup() from its filldir callback()
+         and this causes NTFS to deadlock as ntfs_lookup() maps the mft record
+         of the directory and since ntfs_readdir() has got it mapped already
+         ntfs_lookup() deadlocks.
+
+2.1.13 - Enable overwriting of resident files and housekeeping of system files.
+
+       - Implement writing of mft records (fs/ntfs/mft.[hc]), which includes
+         keeping the mft mirror in sync with the mft when mirrored mft records
+         are written.  The functions are write_mft_record{,_nolock}().  The
+         implementation is quite rudimentary for now with lots of things not
+         implemented yet but I am not sure any of them can actually occur so
+         I will wait for people to hit each one and only then implement it.
+       - Commit open system inodes at umount time.  This should make it
+         virtually impossible for sync_mft_mirror_umount() to ever be needed.
+       - Implement ->write_inode (fs/ntfs/inode.c::ntfs_write_inode()) for the
+         ntfs super operations.  This gives us inode writing via the VFS inode
+         dirty code paths.  Note:  Access time updates are not implemented yet.
+       - Implement fs/ntfs/mft.[hc]::{,__}mark_mft_record_dirty() and make
+         fs/ntfs/aops.c::ntfs_writepage() and ntfs_commit_write() use it, thus
+         finally enabling resident file overwrite!  (-8  This also includes a
+         placeholder for ->writepage (ntfs_mft_writepage()), which for now
+         just redirties the page and returns.  Also, at umount time, we for
+         now throw away all mft data page cache pages after the last call to
+         ntfs_commit_inode() in the hope that all inodes will have been
+         written out by then and hence no dirty (meta)data will be lost.  We
+         also check for this case and emit an error message telling the user
+         to run chkdsk.
+       - Use set_page_writeback() and end_page_writeback() in the resident
+         attribute code path of fs/ntfs/aops.c::ntfs_writepage() otherwise
+         the radix-tree tag PAGECACHE_TAG_DIRTY remains set even though the
+         page is clean.
+       - Implement ntfs_mft_writepage() so it now checks if any of the mft
+         records in the page are dirty and if so redirties the page and
+         returns.  Otherwise it just returns (after doing set_page_writeback(),
+         unlock_page(), end_page_writeback() or the radix-tree tag
+         PAGECACHE_TAG_DIRTY remains set even though the page is clean), thus
+         alowing the VM to do with the page as it pleases.  Also, at umount
+         time, now only throw away dirty mft (meta)data pages if dirty inodes
+         are present and ask the user to email us if they see this happening.
+       - Add functions ntfs_{clear,set}_volume_flags(), to modify the volume
+         information flags (fs/ntfs/super.c).
+       - Mark the volume dirty when (re)mounting read-write and mark it clean
+         when unmounting or remounting read-only.  If any volume errors are
+         found, the volume is left marked dirty to force chkdsk to run.
+       - Add code to set the NT4 compatibility flag when (re)mounting
+         read-write for newer NTFS versions but leave it commented out for now
+         since we do not make any modifications that are NTFS 1.2 specific yet
+         and since setting this flag breaks Captive-NTFS which is not nice.
+         This code must be enabled once we start writing NTFS 1.2 specific
+         changes otherwise Windows NTFS driver might crash / cause corruption.
+
+2.1.12 - Fix the second fix to the decompression engine and some cleanups.
+
+       - Add a new address space operations struct, ntfs_mst_aops, for mst
+         protected attributes.  This is because the default ntfs_aops do not
+         make sense with mst protected data and were they to write anything to
+         such an attribute they would cause data corruption so we provide
+         ntfs_mst_aops which does not have any write related operations set.
+       - Cleanup dirty ntfs inode handling (fs/ntfs/inode.[hc]) which also
+         includes an adapted ntfs_commit_inode() and an implementation of
+         ntfs_write_inode() which for now just cleans dirty inodes without
+         writing them (it does emit a warning that this is happening).
+       - Undo the second decompression engine fix (see 2.1.9 release ChangeLog
+         entry) as it was only fixing a theoretical bug but at the same time
+         it badly broke the handling of sparse and uncompressed compression
+         blocks.
+
+2.1.11 - Driver internal cleanups.
+
+       - Only build logfile.o if building the driver with read-write support.
+       - Really final white space cleanups.
+       - Use generic_ffs() instead of ffs() in logfile.c which allows the
+         log_page_size variable to be optimized by gcc into a constant.
+       - Rename uchar_t to ntfschar everywhere as uchar_t is unsigned 1-byte
+         char as defined by POSIX and as found on some systems.
+
+2.1.10 - Force read-only (re)mounting of volumes with unsupported volume flags.
+
+       - Finish off the white space cleanups (remove trailing spaces, etc).
+       - Clean up ntfs_fill_super() and ntfs_read_inode_mount() by removing
+         the kludges around the first iget().  Instead of (re)setting ->s_op
+         we have the $MFT inode set up by explicit new_inode() / set ->i_ino /
+         insert_inode_hash() / call ntfs_read_inode_mount() directly.  This
+         kills the need for second super_operations and allows to return error
+         from ntfs_read_inode_mount() without resorting to ugly "poisoning"
+         tricks.  (Al Viro)
+       - Force read-only (re)mounting if any of the following bits are set in
+         the volume information flags:
+               VOLUME_IS_DIRTY, VOLUME_RESIZE_LOG_FILE,
+               VOLUME_UPGRADE_ON_MOUNT, VOLUME_DELETE_USN_UNDERWAY,
+               VOLUME_REPAIR_OBJECT_ID, VOLUME_MODIFIED_BY_CHKDSK
+         To make this easier we define VOLUME_MUST_MOUNT_RO_MASK with all the
+         above bits set so the test is made easy.
+
+2.1.9 - Fix two bugs in decompression engine.
+
+       - Fix a bug where we would not always detect that we have reached the
+         end of a compression block because we were ending at minus one byte
+         which is effectively the same as being at the end.  The fix is to
+         check whether the uncompressed buffer has been fully filled and if so
+         we assume we have reached the end of the compression block.  A big
+         thank you to Marcin GibuĊ‚a for the bug report, the assistance in
+         tracking down the bug and testing the fix.
+       - Fix a possible bug where when a compressed read is truncated to the
+         end of the file, the offset inside the last page was not truncated.
+
+2.1.8 - Handle $MFT mirror and $LogFile, improve time handling, and cleanups.
 
        - Use get_bh() instead of manual atomic_inc() in fs/ntfs/compress.c.
        - Modify fs/ntfs/time.c::ntfs2utc(), get_current_ntfs_time(), and
@@ -570,12 +698,12 @@ tng-0.0.8 - 08/03/2002 - Now using BitKeeper, http://linux-ntfs.bkbits.net/
          types of inode names readdir() returns and modify ntfs_filldir()
          accordingly. There are several parameters to show_inodes:
                system: system files
-               win32:  long file names (including POSIX file names) [DEFAULT]
+               win32:  long file names (including POSIX file names) [DEFAULT]
                long:   same as win32
-               dos:    short file names only (excluding POSIX file names)
+               dos:    short file names only (excluding POSIX file names)
                short:  same as dos
                posix:  same as both win32 and dos
-               all:    all file names
+               all:    all file names
          Note that the options are additive, i.e. specifying:
                -o show_inodes=system,show_inodes=win32,show_inodes=dos
          is the same as specifying:
@@ -868,4 +996,3 @@ tng-0.0.0 - Initial version tag.
        working nicely, too. Proof of inode metadata in the page cache and non-
        resident file unnamed stream data in the page cache concepts is thus
        complete.
-