From 6124aafffb090fe5ed9fd58b1e33513aa61019ea Mon Sep 17 00:00:00 2001 From: antona Date: Thu, 4 Aug 2005 09:59:39 +0000 Subject: [PATCH] Move timeconv to ntfstime, update changelog, and news for new release. --- ChangeLog | 61 ++++++++++++++----------- NEWS | 6 +-- include/ntfs/Makefile.am | 2 +- include/ntfs/{timeconv.h => ntfstime.h} | 11 +++-- libntfs/inode.c | 2 +- ntfsprogs/mkntfs.c | 2 +- ntfsprogs/ntfscat.c | 2 - ntfsprogs/ntfsinfo.c | 2 +- ntfsprogs/ntfsls.c | 2 +- ntfsprogs/ntfsrm.c | 2 +- ntfsprogs/ntfsundelete.c | 2 +- 11 files changed, 52 insertions(+), 42 deletions(-) rename include/ntfs/{timeconv.h => ntfstime.h} (90%) diff --git a/ChangeLog b/ChangeLog index 94819b73..a87cb166 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,36 +1,45 @@ -04/07/2005 - 1.11.2 - A lot of fixes and improvements. +04/08/2005 - 1.11.2 - ntfsdecrypt now works and lots of fixes and improvements. - - ntfsls: fix showing not system files started with '$'. (Yura) - - Move ntfs2utc and utc2ntfs from utils.[ch] to timeconv.h. (Yura) + - ntfsls: Fix display of non-system files whose name begins with the + '$' character. (Yura) + - Move ntfs2utc and utc2ntfs from utils.[ch] to ntfstime.h. (Yura, + Anton) - Add [acm]time fields to struct ntfs_inode and set them during - ntfs_inode_open. Update ntfsmount to use them. (Yura) - - index.c::ntfs_index_lookup: fix bug when index context didn't point - on index root in which entry located. (Yura) - - ntfsresize: relocate_attributes(): don't stop processing of MFT - record attributes at AT_DATA of $BadClus and $Bitmap. In practice, - there aren't non-resident attributes after them so this bug, - introduced in 1.11.0, shouldn't have ever caused data loss. (Szaka) - - ntfsresize: support relocation of $MFT with $ATTRIBUTE_LIST. (Szaka) - - ntfsresize: support resizing into the middle of a $MFT $DATA + ntfs_inode_openi(). Update ntfsmount to use them. (Yura) + - index.c::ntfs_index_lookup(): Fix bug when index context did not + point to the index root in which the entry located. (Yura) + - ntfsresize: relocate_attributes(): Do not stop processing MFT record + attributes at AT_DATA of $BadClus and $Bitmap. In practice, there + are no non-resident attributes after them so this is a bug which was + introduced in 1.11.0 which should not have caused data loss. (Szaka) + - ntfsresize: Support relocation of $MFT with $ATTRIBUTE_LIST. (Szaka) + - ntfsresize: Support resizing into the middle of a $MFT $DATA extent. (Szaka) - - ntfscp: fix attribute name parsing bug introduced in 1.10.0. (Yura) - - ntfsinfo: dump more information for indexes. (Yura) - - Fix unistr.c::ntfs_mbstoucs on systems with utf8 locale. (Yura) - - Change errno and print more verbose message in case if logfile check - failed. (Yura) - - Fix random errno returned by ntfs_inode_open() if the MFT record - wasn't in use. (Szaka) - - Fix ntfs_attr_p{read,write} to not return less bytes if trapped on + - ntfscp: Fix attribute name parsing bug introduced in 1.10.0. (Yura) + - ntfsinfo: Dump more information about indexes. (Yura) + - Fix unistr.c::ntfs_mbstoucs() on systems with utf8 locale. (Yura) + - Change errno and print more verbose message in the case of a failing + logfile check. (Yura) + - Fix random errno returned by ntfs_inode_open() if the MFT record was + not in use. (Szaka) + - Fix ntfs_attr_p{read,write}() to not return less bytes if trapped on unmapped runlist region. (Yura) - Make find work correctly on volumes mounted by ntfsmount. (Yura) - - Replaced all occurances of ENOTSUP to EOPNOTSUPP to be in better + - Replaced all occurances of ENOTSUP with EOPNOTSUPP to be in better harmony with the kernel driver. (Szaka) - - Fix ntfs_is_cb_compressed for nasty runlist merging case in which - compression block was incorrectly treated as not compressed. (Yura) - - ntfsresize: fix for ntfs_rl_truncate() EIO: always set the correct - size for $BadClus:$Bad, even if Windows set it incorrectly. (Szaka) - - Make ntfs_attr_open resolve attribute name for ntfs_attr struct + - Fix ntfs_is_cb_compressed() for nasty runlist merging case in which + compression block was incorrectly treated as not compressed. (Yura, + Anton) + - ntfsresize: Fix for ntfs_rl_truncate() EIO: Always set the correct + size for $BadClus::$Bad, even if Windows set it incorrectly. (Szaka) + - Make ntfs_attr_open() resolve attribute name for ntfs_attr struct in case NULL passed instead of name. (Yura) + - ntfsdecrypt (make extra) is now fully functional under Windows/Cygwin + using libgcrypt. It decrypts all types of compressed files that ntfs + creates, i.e. DesX, AES-256, and 3Des. The only reason it only works + on Windows is that it needs the user's private key to be able to + decrypt the File Encryption Key so it can decrypt the file. (Yuval, + Anton) 20/07/2005 - 1.11.1 - Fix several ntfsmount bugs. diff --git a/NEWS b/NEWS index 64202d35..9354b2f7 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,9 @@ changing the file size and can read/write/add/remove named data streams via "file:stream" interface and list them via "ntfs.streams.list" extended attribute (this only if xattr support is enabled). (Yura Pakhuchiy) +Older news +========== + Attribute resize code for normal and sparse files is completed. Thus, ntfscp should always successfully overwrite any normal or sparse file even if file size is changed. (Yura Pakhuchiy) @@ -31,9 +34,6 @@ this modifies the command line options a little as well as the returned output so applications using ntfsresize might need modifications before they will work with the updated ntfsresize. (Szakacsits Szabolcs) -Older news -========== - ntfsprogs now should ./configure and compile cleanly on SuSE as well as RedHat Linux. diff --git a/include/ntfs/Makefile.am b/include/ntfs/Makefile.am index 2d8951c4..918ceaf4 100644 --- a/include/ntfs/Makefile.am +++ b/include/ntfs/Makefile.am @@ -26,7 +26,7 @@ linux_ntfsinclude_HEADERS = \ runlist.h \ security.h \ support.h \ - timeconv.h \ + ntfstime.h \ types.h \ unistr.h \ volume.h diff --git a/include/ntfs/timeconv.h b/include/ntfs/ntfstime.h similarity index 90% rename from include/ntfs/timeconv.h rename to include/ntfs/ntfstime.h index eba91504..d6c9677f 100644 --- a/include/ntfs/timeconv.h +++ b/include/ntfs/ntfstime.h @@ -1,6 +1,7 @@ /* - * timeconv.h - NTFS time conversion functions. Part of the Linux-NTFS project. + * ntfstime.h - NTFS time related functions. Part of the Linux-NTFS project. * + * Copyright (c) 2005 Anton Altaparmakov * Copyright (c) 2005 Yura Pakhuchiy * * This program/include file is free software; you can redistribute it and/or @@ -19,11 +20,13 @@ * Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _NTFS_TIMECONV_H -#define _NTFS_TIMECONV_H +#ifndef _NTFS_NTFSTIME_H +#define _NTFS_NTFSTIME_H #include +#include "types.h" + #define NTFS_TIME_OFFSET ((s64)(369 * 365 + 89) * 24 * 3600 * 10000000) /** @@ -61,4 +64,4 @@ static __inline__ s64 utc2ntfs(time_t utc_time) return (s64)utc_time * 10000000 + NTFS_TIME_OFFSET; } -#endif /* _NTFS_TIMECONV_H */ +#endif /* _NTFS_NTFSTIME_H */ diff --git a/libntfs/inode.c b/libntfs/inode.c index f76c44a8..68a8650f 100644 --- a/libntfs/inode.c +++ b/libntfs/inode.c @@ -38,7 +38,7 @@ #include "lcnalloc.h" #include "index.h" #include "dir.h" -#include "timeconv.h" +#include "ntfstime.h" /** * Internal: diff --git a/ntfsprogs/mkntfs.c b/ntfsprogs/mkntfs.c index 13fe6745..f368a06e 100644 --- a/ntfsprogs/mkntfs.c +++ b/ntfsprogs/mkntfs.c @@ -126,7 +126,7 @@ #include "mst.h" #include "runlist.h" #include "utils.h" -#include "timeconv.h" +#include "ntfstime.h" #ifdef NO_NTFS_DEVICE_DEFAULT_IO_OPS # error "No default device io operations! Cannot build mkntfs. \ diff --git a/ntfsprogs/ntfscat.c b/ntfsprogs/ntfscat.c index 6f977424..ceef7868 100644 --- a/ntfsprogs/ntfscat.c +++ b/ntfsprogs/ntfscat.c @@ -393,5 +393,3 @@ int main (int argc, char *argv[]) return result; } - - diff --git a/ntfsprogs/ntfsinfo.c b/ntfsprogs/ntfsinfo.c index 107b58a6..af0a3fbe 100644 --- a/ntfsprogs/ntfsinfo.c +++ b/ntfsprogs/ntfsinfo.c @@ -65,7 +65,7 @@ #include "security.h" #include "mst.h" #include "dir.h" -#include "timeconv.h" +#include "ntfstime.h" static const char *EXEC_NAME = "ntfsinfo"; diff --git a/ntfsprogs/ntfsls.c b/ntfsprogs/ntfsls.c index 653cabe3..6b6e0824 100644 --- a/ntfsprogs/ntfsls.c +++ b/ntfsprogs/ntfsls.c @@ -40,7 +40,7 @@ #include "utils.h" #include "dir.h" #include "list.h" -#include "timeconv.h" +#include "ntfstime.h" static const char *EXEC_NAME = "ntfsls"; diff --git a/ntfsprogs/ntfsrm.c b/ntfsprogs/ntfsrm.c index 7353adea..decfdde8 100644 --- a/ntfsprogs/ntfsrm.c +++ b/ntfsprogs/ntfsrm.c @@ -33,7 +33,7 @@ #include "dir.h" #include "lcnalloc.h" #include "mft.h" -#include "timeconv.h" +#include "ntfstime.h" static const char *EXEC_NAME = "ntfsrm"; static struct options opts; diff --git a/ntfsprogs/ntfsundelete.c b/ntfsprogs/ntfsundelete.c index 4f487281..110e17a6 100644 --- a/ntfsprogs/ntfsundelete.c +++ b/ntfsprogs/ntfsundelete.c @@ -52,7 +52,7 @@ #include "device.h" #include "utils.h" #include "debug.h" -#include "timeconv.h" +#include "ntfstime.h" static const char *EXEC_NAME = "ntfsundelete"; static const char *MFTFILE = "mft";