[ros-diffs] [tthompson] 75817: [NTFS] - Respect NTFS' file ordering when enumerating a directory. Split off part of BrowseIndexEntries() into a separate function to simplify the code. AddNewMftEntry()

2017-09-09 Thread tthompson
Author: tthompson Date: Sat Sep 9 23:10:52 2017 New Revision: 75817 URL: http://svn.reactos.org/svn/reactos?rev=75817=rev Log: [NTFS] - Respect NTFS' file ordering when enumerating a directory. Split off part of BrowseIndexEntries() into a separate function to simplify the code. AddNewMftEntry

[ros-diffs] [tthompson] 75727: [NTFS] - Fix some errors that break building in C89 mode, and remove an extraneous "ninja livecd" that got inserted in a comment. Thanks to Doug Lyons for spotting these

2017-08-31 Thread tthompson
Author: tthompson Date: Fri Sep 1 00:27:34 2017 New Revision: 75727 URL: http://svn.reactos.org/svn/reactos?rev=75727=rev Log: [NTFS] - Fix some errors that break building in C89 mode, and remove an extraneous "ninja livecd" that got inserted in a comment. Thanks to Doug Lyons fo

[ros-diffs] [tthompson] 75707: [NTFS] - Add some helper functions for new features. Add some fixes. Add support for creating an index allocation, splitting a b-tree node, or "demoting" the index root.

2017-08-29 Thread tthompson
Author: tthompson Date: Tue Aug 29 15:51:14 2017 New Revision: 75707 URL: http://svn.reactos.org/svn/reactos?rev=75707=rev Log: [NTFS] - Add some helper functions for new features. Add some fixes. Add support for creating an index allocation, splitting a b-tree node, or "demoting"

[ros-diffs] [tthompson] 75694: [NTFS] - Fix increasing the mft size, to keep chkdsk happy. IncreaseMftSize() - Add some fixes. Write blank records to newly-allocated mft entries, and update $MFTMirr w

2017-08-27 Thread tthompson
Author: tthompson Date: Mon Aug 28 03:11:38 2017 New Revision: 75694 URL: http://svn.reactos.org/svn/reactos?rev=75694=rev Log: [NTFS] - Fix increasing the mft size, to keep chkdsk happy. IncreaseMftSize() - Add some fixes. Write blank records to newly-allocated mft entries, and update $MFTMirr

[ros-diffs] [tthompson] 75693: [NTFS] - Fix for C89 compliance.

2017-08-27 Thread tthompson
Author: tthompson Date: Sun Aug 27 14:43:35 2017 New Revision: 75693 URL: http://svn.reactos.org/svn/reactos?rev=75693=rev Log: [NTFS] - Fix for C89 compliance. Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/create.c Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs

[ros-diffs] [tthompson] 75692: [NTFS] - Add support for directory creation. Add some helper functions, some comments, and some fixes. +AddIndexRoot() - Creates an $INDEX_ROOT attribute and adds it to

2017-08-27 Thread tthompson
Author: tthompson Date: Sun Aug 27 14:37:17 2017 New Revision: 75692 URL: http://svn.reactos.org/svn/reactos?rev=75692=rev Log: [NTFS] - Add support for directory creation. Add some helper functions, some comments, and some fixes. +AddIndexRoot() - Creates an $INDEX_ROOT attribute and adds

[ros-diffs] [tthompson] 75671: [NTFS] - When creating files: -Don't add a preceding backslash when creating files on root. -Use NTFS_FILE_NAME_POSIX name type if CaseSensitive option is specified. -Do

2017-08-25 Thread tthompson
Author: tthompson Date: Fri Aug 25 17:16:04 2017 New Revision: 75671 URL: http://svn.reactos.org/svn/reactos?rev=75671=rev Log: [NTFS] - When creating files: -Don't add a preceding backslash when creating files on root. -Use NTFS_FILE_NAME_POSIX name type if CaseSensitive option is specified

[ros-diffs] [tthompson] 75557: [NTFS] - Allow for creating a file when the index root gets too large and needs to be moved into an index record. Add some helper functions. +AllocateIndexNode() - Alloc

2017-08-15 Thread tthompson
Author: tthompson Date: Tue Aug 15 19:57:55 2017 New Revision: 75557 URL: http://svn.reactos.org/svn/reactos?rev=75557=rev Log: [NTFS] - Allow for creating a file when the index root gets too large and needs to be moved into an index record. Add some helper functions. +AllocateIndexNode

[ros-diffs] [tthompson] 75554: [NTFS] - Allow for resizing an attribute in the middle of a file record. Add a helper function and minor improvements: AddRun() - Allow for resizing the size of the data

2017-08-15 Thread tthompson
Author: tthompson Date: Tue Aug 15 19:32:20 2017 New Revision: 75554 URL: http://svn.reactos.org/svn/reactos?rev=75554=rev Log: [NTFS] - Allow for resizing an attribute in the middle of a file record. Add a helper function and minor improvements: AddRun() - Allow for resizing the size

[ros-diffs] [tthompson] 75493: [NTFS] - Refactor to allow the copy of the attribute stored in NTFS_ATTR_CONTEXT to have a dynamic length; change Record member from an NTFS_ATTR_RECORD to a PNTFS_ATTR_

2017-08-05 Thread tthompson
Author: tthompson Date: Sun Aug 6 02:54:15 2017 New Revision: 75493 URL: http://svn.reactos.org/svn/reactos?rev=75493=rev Log: [NTFS] - Refactor to allow the copy of the attribute stored in NTFS_ATTR_CONTEXT to have a dynamic length; change Record member from an NTFS_ATTR_RECORD

[ros-diffs] [tthompson] 75479: [NTFS] - Fix index entries storing the wrong allocated file size when the file is resident. Fix a typo in a DPRINT.

2017-08-04 Thread tthompson
Author: tthompson Date: Fri Aug 4 17:58:06 2017 New Revision: 75479 URL: http://svn.reactos.org/svn/reactos?rev=75479=rev Log: [NTFS] - Fix index entries storing the wrong allocated file size when the file is resident. Fix a typo in a DPRINT. Modified: branches/GSoC_2016/NTFS/drivers

[ros-diffs] [tthompson] 75428: [NTFS] - Add some improvements to B-Tree support. Add preliminary support for trees of arbitrary depth. Add support for creating files in directories which have an index

2017-07-27 Thread tthompson
Author: tthompson Date: Thu Jul 27 19:52:33 2017 New Revision: 75428 URL: http://svn.reactos.org/svn/reactos?rev=75428=rev Log: [NTFS] - Add some improvements to B-Tree support. Add preliminary support for trees of arbitrary depth. Add support for creating files in directories which have

[ros-diffs] [tthompson] 75424: [NTFS] - Add some utility functions and improve some comments. Improve NtfsAddFilenameToDirectory(). +PrintAllVCNs() - Diagnostic function which prints VCN of every node

2017-07-27 Thread tthompson
Author: tthompson Date: Thu Jul 27 18:22:24 2017 New Revision: 75424 URL: http://svn.reactos.org/svn/reactos?rev=75424=rev Log: [NTFS] - Add some utility functions and improve some comments. Improve NtfsAddFilenameToDirectory(). +PrintAllVCNs() - Diagnostic function which prints VCN of every

[ros-diffs] [tthompson] 75423: [NTFS] - After creating a new file, update creation disposition before calling NtfsCreateFile() recursively. This fixes creating a file via right-clicking in a folder.

2017-07-27 Thread tthompson
Author: tthompson Date: Thu Jul 27 11:35:50 2017 New Revision: 75423 URL: http://svn.reactos.org/svn/reactos?rev=75423=rev Log: [NTFS] - After creating a new file, update creation disposition before calling NtfsCreateFile() recursively. This fixes creating a file via right-clicking in a folder

[ros-diffs] [tthompson] 75371: [NTFS] - Fix some more issues, including remaining issues marked as "unresolved" from CR-123: -Add define for indexed flag for resident attributes, RA_INDEXED. -CreateBT

2017-07-18 Thread tthompson
Author: tthompson Date: Tue Jul 18 19:59:36 2017 New Revision: 75371 URL: http://svn.reactos.org/svn/reactos?rev=75371=rev Log: [NTFS] - Fix some more issues, including remaining issues marked as "unresolved" from CR-123: -Add define for indexed flag for resident attributes,

[ros-diffs] [tthompson] 75290: [NTFS] - Fix some formatting / style issues, per CR-123.

2017-07-05 Thread tthompson
Author: tthompson Date: Wed Jul 5 22:10:22 2017 New Revision: 75290 URL: http://svn.reactos.org/svn/reactos?rev=75290=rev Log: [NTFS] - Fix some formatting / style issues, per CR-123. Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/attrib.c branches/GSoC_2016/NTFS/drivers

[ros-diffs] [tthompson] 75288: [NTFS] - Add a few fixes and improvements, most from CR-123: -Add ATTR_RECORD_ALIGNMENT define to replace magic value of 8 when we need to adjust an attribute's beginnin

2017-07-05 Thread tthompson
Author: tthompson Date: Wed Jul 5 16:29:16 2017 New Revision: 75288 URL: http://svn.reactos.org/svn/reactos?rev=75288=rev Log: [NTFS] - Add a few fixes and improvements, most from CR-123: -Add ATTR_RECORD_ALIGNMENT define to replace magic value of 8 when we need to adjust an attribute's

[ros-diffs] [tthompson] 75284: [NTFS] - Add some fixes and improvements to mft.c from CR-123: FindAttribute() - Use * sizeof(WCHAR) in place bit-shifting wizardry. IncreaseMftSize() - Remove two usele

2017-07-04 Thread tthompson
Author: tthompson Date: Wed Jul 5 05:09:51 2017 New Revision: 75284 URL: http://svn.reactos.org/svn/reactos?rev=75284=rev Log: [NTFS] - Add some fixes and improvements to mft.c from CR-123: FindAttribute() - Use * sizeof(WCHAR) in place bit-shifting wizardry. IncreaseMftSize() - Remove two

[ros-diffs] [tthompson] 75283: [NTFS] - Add some fixes and improvements to finfo.c from CR-123: NtfsSetEndOfFile() - Make fileNameAttribute and filename variables uppercase. Don't leak FileRecord if w

2017-07-04 Thread tthompson
Author: tthompson Date: Wed Jul 5 03:11:13 2017 New Revision: 75283 URL: http://svn.reactos.org/svn/reactos?rev=75283=rev Log: [NTFS] - Add some fixes and improvements to finfo.c from CR-123: NtfsSetEndOfFile() - Make fileNameAttribute and filename variables uppercase. Don't leak FileRecord

[ros-diffs] [tthompson] 75281: [NTFS] - Add some fixes and improvements to create.c, dirctl.c and fcb.c from CR-123: -NtfsOpenFile() - Replace an ExFreePool() with ExFreePoolWithTag(). -NtfsCreateFile

2017-07-04 Thread tthompson
Author: tthompson Date: Tue Jul 4 22:34:17 2017 New Revision: 75281 URL: http://svn.reactos.org/svn/reactos?rev=75281=rev Log: [NTFS] - Add some fixes and improvements to create.c, dirctl.c and fcb.c from CR-123: -NtfsOpenFile() - Replace an ExFreePool() with ExFreePoolWithTag

[ros-diffs] [tthompson] 75280: [NTFS] - Add some fixes and improvements to btree.c from CR-123: -CompareTreeKeys() - Assert that the first key isn't the dummy key. -CreateIndexRootFromBTree() - Assert

2017-07-04 Thread tthompson
Author: tthompson Date: Tue Jul 4 21:47:43 2017 New Revision: 75280 URL: http://svn.reactos.org/svn/reactos?rev=75280=rev Log: [NTFS] - Add some fixes and improvements to btree.c from CR-123: -CompareTreeKeys() - Assert that the first key isn't the dummy key. -CreateIndexRootFromBTree() - Assert

[ros-diffs] [tthompson] 75279: [NTFS] - Add some fixes and improvements to attribute.c from CR-123: -AddFileName() - Don't use dedicated buffer for FileNameNoPath, just point into FileObject->FileName

2017-07-04 Thread tthompson
Author: tthompson Date: Tue Jul 4 21:40:02 2017 New Revision: 75279 URL: http://svn.reactos.org/svn/reactos?rev=75279=rev Log: [NTFS] - Add some fixes and improvements to attribute.c from CR-123: -AddFileName() - Don't use dedicated buffer for FileNameNoPath, just point into FileObject

[ros-diffs] [tthompson] 75278: [NTFS] - Fix UpdateFileNameRecord() when the file being updated resides in $INDEX_ROOT. Also, don't attempt to read beyond size of index root attribute, and check return

2017-07-04 Thread tthompson
Author: tthompson Date: Tue Jul 4 21:16:46 2017 New Revision: 75278 URL: http://svn.reactos.org/svn/reactos?rev=75278=rev Log: [NTFS] - Fix UpdateFileNameRecord() when the file being updated resides in $INDEX_ROOT. Also, don't attempt to read beyond size of index root attribute, and check

[ros-diffs] [tthompson] 75277: [NTFS] - Fix AddFileName() when the file path is two or more directories deep.

2017-07-04 Thread tthompson
Author: tthompson Date: Tue Jul 4 20:47:06 2017 New Revision: 75277 URL: http://svn.reactos.org/svn/reactos?rev=75277=rev Log: [NTFS] - Fix AddFileName() when the file path is two or more directories deep. Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/attrib.c Modified

[ros-diffs] [tthompson] 75228: [NTFS] - Fix gcc build. Fix CompareTreeKeys(): Don't consider Key1 a possible dummy key. Don't assume filenames are the same length.

2017-06-28 Thread tthompson
Author: tthompson Date: Thu Jun 29 02:36:00 2017 New Revision: 75228 URL: http://svn.reactos.org/svn/reactos?rev=75228=rev Log: [NTFS] - Fix gcc build. Fix CompareTreeKeys(): Don't consider Key1 a possible dummy key. Don't assume filenames are the same length. Modified: branches/GSoC_2016

[ros-diffs] [tthompson] 75224: [NTFS] - Fix a couple of issues spotted by Thomas: Maintain alphabetical ordering of CMakeLists.txt, fix casts to BOOLEAN with BooleanFlagOn macro.

2017-06-28 Thread tthompson
Author: tthompson Date: Wed Jun 28 18:22:42 2017 New Revision: 75224 URL: http://svn.reactos.org/svn/reactos?rev=75224=rev Log: [NTFS] - Fix a couple of issues spotted by Thomas: Maintain alphabetical ordering of CMakeLists.txt, fix casts to BOOLEAN with BooleanFlagOn macro. Modified

[ros-diffs] [tthompson] 75199: [NTFS] - Add some minor fixes and improvements: Improve, add, or fix some DPRINTs. In particular, ULONG's should use %lu, not %u. Also, don't be silent about filesystem

2017-06-25 Thread tthompson
Author: tthompson Date: Mon Jun 26 05:17:08 2017 New Revision: 75199 URL: http://svn.reactos.org/svn/reactos?rev=75199=rev Log: [NTFS] - Add some minor fixes and improvements: Improve, add, or fix some DPRINTs. In particular, ULONG's should use %lu, not %u. Also, don't be silent about filesystem

[ros-diffs] [tthompson] 75193: [NTFS] - Fix creation of files with long filenames.

2017-06-24 Thread tthompson
Author: tthompson Date: Sun Jun 25 04:29:04 2017 New Revision: 75193 URL: http://svn.reactos.org/svn/reactos?rev=75193=rev Log: [NTFS] - Fix creation of files with long filenames. Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/attrib.c Modified: branches/GSoC_2016/NTFS/drivers

[ros-diffs] [tthompson] 75192: [NTFS] - In the NtfsAddFilenameToDirectory() function, rename DirectoryContext parameter to the more descriptive, and accurate, IndexRootContext (to simplify the next co

2017-06-24 Thread tthompson
Author: tthompson Date: Sun Jun 25 02:56:40 2017 New Revision: 75192 URL: http://svn.reactos.org/svn/reactos?rev=75192=rev Log: [NTFS] - In the NtfsAddFilenameToDirectory() function, rename DirectoryContext parameter to the more descriptive, and accurate, IndexRootContext (to simplify the next

[ros-diffs] [tthompson] 75191: [NTFS] - Fix a mistake with AddFileName() from my last commit. Also, move CaseSensitive parameter before output parameters in the parameter list of several functions.

2017-06-24 Thread tthompson
Author: tthompson Date: Sun Jun 25 02:38:15 2017 New Revision: 75191 URL: http://svn.reactos.org/svn/reactos?rev=75191=rev Log: [NTFS] - Fix a mistake with AddFileName() from my last commit. Also, move CaseSensitive parameter before output parameters in the parameter list of several functions

[ros-diffs] [tthompson] 75178: [NTFS] - Fix POSIX rules. Fix accessing long filenames created in Windows when 8dot3 name creation is disabled. Whether or not a filename should be interpreted as case-s

2017-06-23 Thread tthompson
Author: tthompson Date: Sat Jun 24 04:36:28 2017 New Revision: 75178 URL: http://svn.reactos.org/svn/reactos?rev=75178=rev Log: [NTFS] - Fix POSIX rules. Fix accessing long filenames created in Windows when 8dot3 name creation is disabled. Whether or not a filename should be interpreted as case

[ros-diffs] [tthompson] 75170: [NTFS] - Fix IncreaseMftSize(); check IrpContext to see if waiting for exclusive access to the MFT is allowed. As pointed out by Pierre.

2017-06-23 Thread tthompson
Author: tthompson Date: Fri Jun 23 17:30:13 2017 New Revision: 75170 URL: http://svn.reactos.org/svn/reactos?rev=75170=rev Log: [NTFS] - Fix IncreaseMftSize(); check IrpContext to see if waiting for exclusive access to the MFT is allowed. As pointed out by Pierre. Modified: branches

[ros-diffs] [tthompson] 75056: [NTFS] - Add support for expanding the master file table. Fix a bug with BrowseIndexEntries(). Improve diagnostic output. -AddNewMftEntry() - Increase size of MFT as nee

2017-06-16 Thread tthompson
Author: tthompson Date: Fri Jun 16 06:00:09 2017 New Revision: 75056 URL: http://svn.reactos.org/svn/reactos?rev=75056=rev Log: [NTFS] - Add support for expanding the master file table. Fix a bug with BrowseIndexEntries(). Improve diagnostic output. -AddNewMftEntry() - Increase size of MFT

[ros-diffs] [tthompson] 75055: [NTFS] - Restructure some code in preparation for the next commit: -SetAttributeDataLength() has been split into two functions, SetNonResidentAttributeDataLength() and S

2017-06-15 Thread tthompson
Author: tthompson Date: Fri Jun 16 05:43:52 2017 New Revision: 75055 URL: http://svn.reactos.org/svn/reactos?rev=75055=rev Log: [NTFS] - Restructure some code in preparation for the next commit: -SetAttributeDataLength() has been split into two functions, SetNonResidentAttributeDataLength

[ros-diffs] [tthompson] 75054: [NTFS] - Add some improvements to the previous commit, as suggested by Thomas.

2017-06-15 Thread tthompson
Author: tthompson Date: Fri Jun 16 05:42:01 2017 New Revision: 75054 URL: http://svn.reactos.org/svn/reactos?rev=75054=rev Log: [NTFS] - Add some improvements to the previous commit, as suggested by Thomas. Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/attrib.c Modified

[ros-diffs] [tthompson] 74970: [NTFS] - Add the most basic support for file creation. Expand diagnostic output, especially in NtfsDumpIndexRootAttribute(). Replace an ExFreePool() with ExFreePoolWithT

2017-06-08 Thread tthompson
Author: tthompson Date: Fri Jun 9 03:14:30 2017 New Revision: 74970 URL: http://svn.reactos.org/svn/reactos?rev=74970=rev Log: [NTFS] - Add the most basic support for file creation. Expand diagnostic output, especially in NtfsDumpIndexRootAttribute(). Replace an ExFreePool

[ros-diffs] [tthompson] 74695: [CMAKE] - Fix formatting of last configure.cmd commit; change tabs to spaces.

2017-05-28 Thread tthompson
Author: tthompson Date: Sun May 28 23:11:03 2017 New Revision: 74695 URL: http://svn.reactos.org/svn/reactos?rev=74695=rev Log: [CMAKE] - Fix formatting of last configure.cmd commit; change tabs to spaces. Modified: branches/GSoC_2016/NTFS/configure.cmd Modified: branches/GSoC_2016/NTFS

[ros-diffs] [tthompson] 74694: [NTFS] - Decrease debug spam

2017-05-28 Thread tthompson
Author: tthompson Date: Sun May 28 20:51:31 2017 New Revision: 74694 URL: http://svn.reactos.org/svn/reactos?rev=74694=rev Log: [NTFS] - Decrease debug spam Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/mft.c branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/rw.c Modified

[ros-diffs] [tthompson] 74685: [NTFS] - Disable write support by default. Enable it via the registry. [BOOTDATA] - Add a commented-out section to hivesys.inf which can add the required key to enable N

2017-05-27 Thread tthompson
Author: tthompson Date: Sat May 27 19:32:43 2017 New Revision: 74685 URL: http://svn.reactos.org/svn/reactos?rev=74685=rev Log: [NTFS] - Disable write support by default. Enable it via the registry. [BOOTDATA] - Add a commented-out section to hivesys.inf which can add the required key to enable

[ros-diffs] [tthompson] 74675: [NTFS] - Add support for changing a file's size via SetEndOfFile(): -Handle IRP_MJ_SET_INFORMATION IRP requests. +NtfsSetEndOfFile() - Sets the end of file (file size) f

2017-05-26 Thread tthompson
Author: tthompson Date: Sat May 27 03:20:31 2017 New Revision: 74675 URL: http://svn.reactos.org/svn/reactos?rev=74675=rev Log: [NTFS] - Add support for changing a file's size via SetEndOfFile(): -Handle IRP_MJ_SET_INFORMATION IRP requests. +NtfsSetEndOfFile() - Sets the end of file (file size

[ros-diffs] [tthompson] 74525: [NTFS] - Fix a bug with last commit, as spotted by Pierre.

2017-05-13 Thread tthompson
Author: tthompson Date: Sat May 13 09:17:06 2017 New Revision: 74525 URL: http://svn.reactos.org/svn/reactos?rev=74525=rev Log: [NTFS] - Fix a bug with last commit, as spotted by Pierre. Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/mft.c Modified: branches/GSoC_2016/NTFS

[ros-diffs] [tthompson] 74524: [NTFS] - Expand support for resizing resident attributes and fix NtfsAllocateClusters(). -Modify SetAttributeDataLength() to allow a resident attribute to migrate to non

2017-05-13 Thread tthompson
Author: tthompson Date: Sat May 13 08:56:54 2017 New Revision: 74524 URL: http://svn.reactos.org/svn/reactos?rev=74524=rev Log: [NTFS] - Expand support for resizing resident attributes and fix NtfsAllocateClusters(). -Modify SetAttributeDataLength() to allow a resident attribute to migrate

[ros-diffs] [tthompson] 74523: [NTFS] - Commit early results of a small restructuring effort: -Add a new member to the NTFS_ATTR_CONTEXT struct, a LARGE_MCB. This allows an attribute context to descri

2017-05-12 Thread tthompson
Author: tthompson Date: Fri May 12 22:16:20 2017 New Revision: 74523 URL: http://svn.reactos.org/svn/reactos?rev=74523=rev Log: [NTFS] - Commit early results of a small restructuring effort: -Add a new member to the NTFS_ATTR_CONTEXT struct, a LARGE_MCB. This allows an attribute context

[ros-diffs] [tthompson] 74520: [CMAKE] - configure.cmd - Merge latest changes from trunk (support for Visual Studio 15). Add even more foolproofing: -Ensure the source path doesn't contain any spaces.

2017-05-10 Thread tthompson
Author: tthompson Date: Thu May 11 01:06:40 2017 New Revision: 74520 URL: http://svn.reactos.org/svn/reactos?rev=74520=rev Log: [CMAKE] - configure.cmd - Merge latest changes from trunk (support for Visual Studio 15). Add even more foolproofing: -Ensure the source path doesn't contain any

[ros-diffs] [tthompson] 74321: [NTFS] Add support for creating new MFT entries: +AddStandardInformation(), +AddData(), +AddFileName() - Add attributes to a file record +NtfsCreateFileRecord() - Create

2017-04-15 Thread tthompson
Author: tthompson Date: Sun Apr 16 00:17:07 2017 New Revision: 74321 URL: http://svn.reactos.org/svn/reactos?rev=74321=rev Log: [NTFS] Add support for creating new MFT entries: +AddStandardInformation(), +AddData(), +AddFileName() - Add attributes to a file record +NtfsCreateFileRecord

[ros-diffs] [tthompson] 72424: [NTFS] +NtfsDumpFileRecord() - Provides diagnostic information about a file record.

2016-08-22 Thread tthompson
Author: tthompson Date: Mon Aug 22 11:08:22 2016 New Revision: 72424 URL: http://svn.reactos.org/svn/reactos?rev=72424=rev Log: [NTFS] +NtfsDumpFileRecord() - Provides diagnostic information about a file record. Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/mft.c branches

[ros-diffs] [tthompson] 72423: [NTFS] *UpdateFileRecord() - Fix a DPRINT

2016-08-22 Thread tthompson
Author: tthompson Date: Mon Aug 22 08:27:35 2016 New Revision: 72423 URL: http://svn.reactos.org/svn/reactos?rev=72423=rev Log: [NTFS] *UpdateFileRecord() - Fix a DPRINT Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/mft.c Modified: branches/GSoC_2016/NTFS/drivers/filesystems

[ros-diffs] [tthompson] 72422: [NTFS] Add some fixes to attrib.c, as suggested by Pierre Schweitzer: *ConvertLargeMCBToDataRuns() - Use MS portable type, ULONG, for variable i. *FreeClusters(), AddRun

2016-08-22 Thread tthompson
Author: tthompson Date: Mon Aug 22 08:11:12 2016 New Revision: 72422 URL: http://svn.reactos.org/svn/reactos?rev=72422=rev Log: [NTFS] Add some fixes to attrib.c, as suggested by Pierre Schweitzer: *ConvertLargeMCBToDataRuns() - Use MS portable type, ULONG, for variable i. *FreeClusters(), AddRun

[ros-diffs] [tthompson] 71968: [NTFS] +FreeClusters(). Fix a DPRINT.

2016-07-19 Thread tthompson
Author: tthompson Date: Tue Jul 19 15:31:22 2016 New Revision: 71968 URL: http://svn.reactos.org/svn/reactos?rev=71968=rev Log: [NTFS] +FreeClusters(). Fix a DPRINT. Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/attrib.c branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/mft.c

[ros-diffs] [tthompson] 71957: [NTFS] Address some minor issues with attrib.c: Fix gcc build. Fix formatting.

2016-07-17 Thread tthompson
Author: tthompson Date: Sun Jul 17 14:04:01 2016 New Revision: 71957 URL: http://svn.reactos.org/svn/reactos?rev=71957=rev Log: [NTFS] Address some minor issues with attrib.c: Fix gcc build. Fix formatting. Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/attrib.c Modified

[ros-diffs] [tthompson] 71945: [NTFS] *AddRun() - Don't leak RunBuffer when encountering errors. Handle exception from FsRtlAddLargeMcbEntry().

2016-07-15 Thread tthompson
Author: tthompson Date: Fri Jul 15 15:27:04 2016 New Revision: 71945 URL: http://svn.reactos.org/svn/reactos?rev=71945=rev Log: [NTFS] *AddRun() - Don't leak RunBuffer when encountering errors. Handle exception from FsRtlAddLargeMcbEntry(). Modified: branches/GSoC_2016/NTFS/drivers

[ros-diffs] [tthompson] 71942: [NTFS] Implement AddRun(). Add support functions and documentation. +ConvertDataRunsToLargeMCB() +ConvertLargeMCBToDataRuns() *SetAttributeDataLength(), *NtfsWriteFile()

2016-07-14 Thread tthompson
Author: tthompson Date: Thu Jul 14 15:20:48 2016 New Revision: 71942 URL: http://svn.reactos.org/svn/reactos?rev=71942=rev Log: [NTFS] Implement AddRun(). Add support functions and documentation. +ConvertDataRunsToLargeMCB() +ConvertLargeMCBToDataRuns() *SetAttributeDataLength(), *NtfsWriteFile

[ros-diffs] [tthompson] 71922: [NTFS] Various minor changes to fix GCC build.

2016-07-13 Thread tthompson
Author: tthompson Date: Wed Jul 13 14:49:46 2016 New Revision: 71922 URL: http://svn.reactos.org/svn/reactos?rev=71922=rev Log: [NTFS] Various minor changes to fix GCC build. Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/mft.c branches/GSoC_2016/NTFS/drivers/filesystems/ntfs

[ros-diffs] [tthompson] 71921: [NTFS] Add support functions, fix warning from previous commit. +NtfsDumpDataRuns(), +NtfsDumpDataRunData() - Provide diagnostic output. +GetPackedByteCount() - Used to

2016-07-13 Thread tthompson
Author: tthompson Date: Wed Jul 13 11:51:16 2016 New Revision: 71921 URL: http://svn.reactos.org/svn/reactos?rev=71921=rev Log: [NTFS] Add support functions, fix warning from previous commit. +NtfsDumpDataRuns(), +NtfsDumpDataRunData() - Provide diagnostic output. +GetPackedByteCount() - Used

[ros-diffs] [tthompson] 71920: [NTFS] UpdateFileRecord() - Remove fixup array before returning.

2016-07-13 Thread tthompson
Author: tthompson Date: Wed Jul 13 09:26:04 2016 New Revision: 71920 URL: http://svn.reactos.org/svn/reactos?rev=71920=rev Log: [NTFS] UpdateFileRecord() - Remove fixup array before returning. Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/mft.c Modified: branches/GSoC_2016/NTFS

[ros-diffs] [tthompson] 71897: [NTFS] Add error-checking to InternalGetNextAttribute(); don't crash if CurrAttr->Length is invalid.

2016-07-12 Thread tthompson
Author: tthompson Date: Tue Jul 12 09:57:16 2016 New Revision: 71897 URL: http://svn.reactos.org/svn/reactos?rev=71897=rev Log: [NTFS] Add error-checking to InternalGetNextAttribute(); don't crash if CurrAttr->Length is invalid. Modified: branches/GSoC_2016/NTFS/drivers/filesystems/n

[ros-diffs] [tthompson] 71858: [NTFS] Fix broken check for free disk space in NtfsAllocateClusters().

2016-07-08 Thread tthompson
Author: tthompson Date: Fri Jul 8 12:05:19 2016 New Revision: 71858 URL: http://svn.reactos.org/svn/reactos?rev=71858=rev Log: [NTFS] Fix broken check for free disk space in NtfsAllocateClusters(). Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/volinfo.c Modified: branches

[ros-diffs] [tthompson] 71857: [NTFS] Simplify GetLastClusterInDataRun() and clean up NtfsAllocateClusters(). No functional changes.

2016-07-08 Thread tthompson
Author: tthompson Date: Fri Jul 8 11:59:25 2016 New Revision: 71857 URL: http://svn.reactos.org/svn/reactos?rev=71857=rev Log: [NTFS] Simplify GetLastClusterInDataRun() and clean up NtfsAllocateClusters(). No functional changes. Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs

[ros-diffs] [tthompson] 71837: [NTFS] Simplify and optimize InternalSetResidentAttributeLength(), as suggested by Pierre.

2016-07-07 Thread tthompson
Author: tthompson Date: Thu Jul 7 08:17:07 2016 New Revision: 71837 URL: http://svn.reactos.org/svn/reactos?rev=71837=rev Log: [NTFS] Simplify and optimize InternalSetResidentAttributeLength(), as suggested by Pierre. Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/mft.c

[ros-diffs] [tthompson] 71832: [NTFS] Fix copy-paste error in SetAttributeDataLength()

2016-07-06 Thread tthompson
Author: tthompson Date: Wed Jul 6 07:57:57 2016 New Revision: 71832 URL: http://svn.reactos.org/svn/reactos?rev=71832=rev Log: [NTFS] Fix copy-paste error in SetAttributeDataLength() Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/mft.c Modified: branches/GSoC_2016/NTFS/drivers

[ros-diffs] [tthompson] 71820: [NTFS] Add ability to write to resident attributes. SetAttributeDataLength() - Check if the file is memory mapped before truncating +InternalSetResidentAttributeLength()

2016-07-05 Thread tthompson
Author: tthompson Date: Tue Jul 5 07:00:43 2016 New Revision: 71820 URL: http://svn.reactos.org/svn/reactos?rev=71820=rev Log: [NTFS] Add ability to write to resident attributes. SetAttributeDataLength() - Check if the file is memory mapped before truncating +InternalSetResidentAttributeLength

[ros-diffs] [tthompson] 71807: [NTFS][FREELDR] Fix ReadAttribute() and NtfsReadAttribute() in the case when an attribute contains two data runs; Remove extra if statement that prevents second data run

2016-07-04 Thread tthompson
Author: tthompson Date: Mon Jul 4 17:02:10 2016 New Revision: 71807 URL: http://svn.reactos.org/svn/reactos?rev=71807=rev Log: [NTFS][FREELDR] Fix ReadAttribute() and NtfsReadAttribute() in the case when an attribute contains two data runs; Remove extra if statement that prevents second data

[ros-diffs] [tthompson] 71697: [NTFS] Fix typo in NtfsAllocateClusters(), spotted by ThFabba.

2016-06-29 Thread tthompson
Author: tthompson Date: Wed Jun 29 17:49:36 2016 New Revision: 71697 URL: http://svn.reactos.org/svn/reactos?rev=71697=rev Log: [NTFS] Fix typo in NtfsAllocateClusters(), spotted by ThFabba. Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/volinfo.c Modified: branches/GSoC_2016

[ros-diffs] [tthompson] 71696: [NTFS] Lay some groundwork for extending allocation size. +AddRun() - Unimplemented +GetLastClusterInDataRun() +NtfsAllocateClusters()

2016-06-29 Thread tthompson
Author: tthompson Date: Wed Jun 29 16:35:36 2016 New Revision: 71696 URL: http://svn.reactos.org/svn/reactos?rev=71696=rev Log: [NTFS] Lay some groundwork for extending allocation size. +AddRun() - Unimplemented +GetLastClusterInDataRun() +NtfsAllocateClusters() Modified: branches/GSoC_2016

[ros-diffs] [tthompson] 71680: [NTFS] Allow for an existing file to be opened with FILE_OVERWRITE, FILE_OVERWRITE_IF, or FILE_SUPERSEDE dispositions, and truncate that file. This allows for a file to

2016-06-26 Thread tthompson
Author: tthompson Date: Sun Jun 26 21:06:02 2016 New Revision: 71680 URL: http://svn.reactos.org/svn/reactos?rev=71680=rev Log: [NTFS] Allow for an existing file to be opened with FILE_OVERWRITE, FILE_OVERWRITE_IF, or FILE_SUPERSEDE dispositions, and truncate that file. This allows for a file

[ros-diffs] [tthompson] 71677: [NTFS] Remove unused parameter from SetAttributeDataLength.

2016-06-26 Thread tthompson
Author: tthompson Date: Sun Jun 26 17:03:31 2016 New Revision: 71677 URL: http://svn.reactos.org/svn/reactos?rev=71677=rev Log: [NTFS] Remove unused parameter from SetAttributeDataLength. Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/mft.c branches/GSoC_2016/NTFS/drivers

[ros-diffs] [tthompson] 71664: [NTFS] Update a file's size in the relevant $FILE_NAME attribute of the index entry in the parent directory. +UpdateFileNameRecord() - Searches a parent directory for th

2016-06-23 Thread tthompson
Author: tthompson Date: Thu Jun 23 18:02:03 2016 New Revision: 71664 URL: http://svn.reactos.org/svn/reactos?rev=71664=rev Log: [NTFS] Update a file's size in the relevant $FILE_NAME attribute of the index entry in the parent directory. +UpdateFileNameRecord() - Searches a parent directory

[ros-diffs] [tthompson] 71662: [NTFS] Fix Up AddFixupArray - It needs to accept a PNTFS_RECORD_HEADER for parameter 2, not a PFILE_RECORD_HEADER.

2016-06-23 Thread tthompson
Author: tthompson Date: Thu Jun 23 15:37:19 2016 New Revision: 71662 URL: http://svn.reactos.org/svn/reactos?rev=71662=rev Log: [NTFS] Fix Up AddFixupArray - It needs to accept a PNTFS_RECORD_HEADER for parameter 2, not a PFILE_RECORD_HEADER. Modified: branches/GSoC_2016/NTFS/drivers

[ros-diffs] [tthompson] 71660: [NTFS] When writing to a file, increase the file size if trying to write past the end. *FindAttribute() has been given an optional pointer to a ULONG that will receive t

2016-06-22 Thread tthompson
Author: tthompson Date: Wed Jun 22 21:20:50 2016 New Revision: 71660 URL: http://svn.reactos.org/svn/reactos?rev=71660=rev Log: [NTFS] When writing to a file, increase the file size if trying to write past the end. *FindAttribute() has been given an optional pointer to a ULONG that will receive

[ros-diffs] [tthompson] 71616: [NTFS] Add fixes to WriteAttribute(): -Remove erroneous check for end of run (before writing to the last run returned) -Properly dereference RealLengthWritten pointer, a

2016-06-11 Thread tthompson
Author: tthompson Date: Sun Jun 12 04:02:52 2016 New Revision: 71616 URL: http://svn.reactos.org/svn/reactos?rev=71616=rev Log: [NTFS] Add fixes to WriteAttribute(): -Remove erroneous check for end of run (before writing to the last run returned) -Properly dereference RealLengthWritten pointer

[ros-diffs] [tthompson] 71494: [CMAKE] Add some fool-proofing to configure.cmd related to MSVS: -VSSolution switch now outputs to a dedicated folder if running from source directory. -Give an error if

2016-06-01 Thread tthompson
Author: tthompson Date: Wed Jun 1 21:41:53 2016 New Revision: 71494 URL: http://svn.reactos.org/svn/reactos?rev=71494=rev Log: [CMAKE] Add some fool-proofing to configure.cmd related to MSVS: -VSSolution switch now outputs to a dedicated folder if running from source directory. -Give an error

[ros-diffs] [tthompson] 71407: [FsRtl] -Rewrote FsRtlGetNextBaseMcbEntry(), FsRtlLookupBaseMcbEntry(), and FsRtlNumberOfRunsInBaseMcb() using simpler logic. -Commented-out StaticRunBelow0, since it's

2016-05-26 Thread tthompson
Author: tthompson Date: Thu May 26 12:27:16 2016 New Revision: 71407 URL: http://svn.reactos.org/svn/reactos?rev=71407=rev Log: [FsRtl] -Rewrote FsRtlGetNextBaseMcbEntry(), FsRtlLookupBaseMcbEntry(), and FsRtlNumberOfRunsInBaseMcb() using simpler logic. -Commented-out StaticRunBelow0, since it's

[ros-diffs] [tthompson] 71341: [ext2] Removed MainResourceAcquired from Ext2GetReparsePoint() to make MSVC happy. This boolean was unused and unneeded; the function does not acquire the main resource.

2016-05-16 Thread tthompson
Author: tthompson Date: Mon May 16 08:32:58 2016 New Revision: 71341 URL: http://svn.reactos.org/svn/reactos?rev=71341=rev Log: [ext2] Removed MainResourceAcquired from Ext2GetReparsePoint() to make MSVC happy. This boolean was unused and unneeded; the function does not acquire the main

[ros-diffs] [tthompson] 71224: [NTFS] Added minimal write support from CORE-10998 along with updates as suggested by CR-90.

2016-05-01 Thread tthompson
Author: tthompson Date: Sun May 1 16:21:53 2016 New Revision: 71224 URL: http://svn.reactos.org/svn/reactos?rev=71224=rev Log: [NTFS] Added minimal write support from CORE-10998 along with updates as suggested by CR-90. Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/blockdev.c