Commit Graph

102 Commits (c0955e5d74f8f856116b9c87a2b6746b9d44d2bd)

Author SHA1 Message Date
Jean-Pierre André 08bf2b5bcb Avoided logging meaningless fixup errors in ntfsclone and ntfsresize
Logging of fixup errors for uninitialized inodes cause unnecessary
worries and suspicion of malfunctions in ntfs-3g. This patch silences
these loggings in ntfsclone and ntfsresize which have to analyze all
inodes, including the uninitialized ones.
2011-09-23 11:28:42 +02:00
Erik Larsson b8103bbcfe Permit $VOLUME_NAME to be 0-sized, even when $AttrDef says otherwise.
When clearing a volume name in Windows, $VOLUME_NAME is set to size 0, even if
the standard $AttrDef says that the minimum size is 2.

So the definition in $AttrDef doesn't reflect actual Windows behaviour in this
particular case, and to clear volume names ourselves the way Windows does it,
we must must add a special rule to permit us to truncate the $VOLUME_NAME
attribute to 0 even when $AttrDef specifies a higher value as minimum size.
2011-09-12 09:07:00 +02:00
Jean-Pierre André 0b8b7521a4 Fixed the FullyMapped flag when making an attribute resident
When an attribute is truncated and made resident, the NAttrFullyMapped
flags has to be cleared, otherwise the attribute cannot be properly
mapped when the attribute is later made non-resident again.
2011-08-30 16:02:32 +02:00
Jean-Pierre André a1161d552f cosmetic : Removed a pointless store in ntfs_attr_make_resident() (Fabian Keil) 2011-08-04 15:49:36 +02:00
Jean-Pierre André 5cd49257b0 Removed unneeded variables as warned by gcc 4.6 2011-07-05 12:17:29 +02:00
Jean-Pierre André 47a4b0ba17 Fixed a too restrictive consistency check in attrib.c 2011-07-05 12:17:29 +02:00
Jean-Pierre André 262ed5f7df Cleared attribute flags controlling recursive writes 2011-07-05 12:17:28 +02:00
Jean-Pierre André c879697b12 Fixed type of argument (same value)
A boolean argument had been replaced by a tri-state one, but the change
was forgotten in one instance. No visible effect, the value is the same.
2011-03-23 09:10:10 +01:00
Jean-Pierre André 2363a26297 Removed duplicated code
A patch had been applied twice, duplication caused to no visible effects.
2011-03-23 09:02:15 +01:00
Jean-Pierre André 402924cc50 Fixed cluster mapping ahead of mapped runlist
A corner case was wrong and could cause aborted writes with error
"Run lists overlap. Cannot merge" when the clusters required by the
write are described in different MFT extents.
This can only happen in very fragmented files when the cluster size
is smaller than 4096 bytes. It does not cause any metadata corruption.
2011-03-01 12:14:53 +01:00
Jean-Pierre André 30c06f9092 Fixed dealing with holes when expanding an attribute 2011-02-16 12:22:30 +01:00
Jean-Pierre André a46a395006 Updated copyright notices 2011-02-08 13:52:12 +01:00
Jean-Pierre André 82ce1fcdfa Improved appending data to a long hole 2011-02-08 13:52:12 +01:00
Jean-Pierre André addc9be334 Merged sparse testing when appending with ntfsprogs requirement 2011-02-08 13:52:12 +01:00
Jean-Pierre André 6bf4af7544 Fixed allocated size when an attribute update causes unnamed data to be expelled 2011-01-10 11:18:16 +01:00
Jean-Pierre André 0cb35ac7aa Enabled expanding an attribute without creating a hole 2010-12-21 15:51:07 +01:00
Jean-Pierre André 351aec3f7a Enabled renaming of system extended attributes 2010-10-26 08:59:52 +02:00
Jean-Pierre André 1898b11481 Improved appending data to fragmented files 2010-10-26 08:59:51 +02:00
Jean-Pierre André d0725eb251 Fixed rounding to cluster end for compressed files 2010-08-06 21:36:38 +02:00
Jean-Pierre André c6c14cb256 Fixed zeroing the end of fragmented ex-holes 2010-07-22 15:04:53 +02:00
Jean-Pierre André f76d0aacf1 Fixed processing end of partial runlist for compressed files 2010-07-22 15:02:09 +02:00
Jean-Pierre André 400632dea5 Fixed updating compressed sizes 2010-07-22 15:00:37 +02:00
Jean-Pierre André f65aa991a9 Fixed excessive cluster allocation within big holes 2010-07-22 14:48:19 +02:00
Jean-Pierre André 09df7eade5 Fixed creating empty encrypted extended attributes 2010-07-22 14:46:01 +02:00
Jean-Pierre André 49ab780739 Fixed a sanity check when closing a compressed file 2010-07-22 14:37:01 +02:00
Jean-Pierre André b1de6e16fb Fixed compressed attribute made non resident to leave space for another one 2010-06-18 14:02:58 +02:00
Jean-Pierre André ed448ea8b4 fixed cached allocation for compressed files 2010-06-14 14:40:17 +02:00
Jean-Pierre André 207318b504 fixed compression when a runlist relocation is needed 2010-06-14 14:33:34 +02:00
Jean-Pierre André 15c4d282ce Enable/disable compression according to option 2010-06-03 10:11:42 +02:00
Jean-Pierre André ba083200aa Fixed close() after a fragmented truncate of a compressed file 2010-06-03 10:06:08 +02:00
Jean-Pierre André b20d1020fc Fixed data size after an upsizing truncate of a compressed file 2010-05-28 16:32:28 +02:00
Jean-Pierre André 1eed61e1a9 enabled downsizing compressed files 2010-05-25 10:29:34 +02:00
Jean-Pierre André a192775e2a developed overwriting compressed files 2010-05-25 10:25:31 +02:00
Jean-Pierre André 51a9ab8c48 fixed compressions on parent directory or NTFS version < 3.0 2010-05-25 09:52:34 +02:00
Jean-Pierre André 9438188703 fixed a bad error checking when closing a compressed file 2010-04-19 11:03:30 +02:00
jpandre c8fa404931 Fixed a return error code (Fabian Keil) 2010-01-21 08:15:27 +00:00
jpandre 6306826077 Removed an unneeded variable (Fabian Keil) 2010-01-21 08:13:27 +00:00
jpandre f1bd6652b1 Fixed uninitialized variable when closing a file on a read-only partition 2010-01-16 18:17:55 +00:00
jpandre da39179421 Merged Anton's patch for $TXF_DATA attribute 2010-01-08 11:15:46 +00:00
jpandre 393af928d9 Prevented TXF_DATA attribute from being made non-resident 2010-01-04 08:07:29 +00:00
jpandre d75f69d80e Cached inode data for subsequent use 2009-12-18 08:12:23 +00:00
jpandre 195945cdc0 Evaluated file names collations in a single parsing 2009-12-16 09:45:28 +00:00
jpandre 2db43fc118 Included <limits.h> explicitly, needed in some environments 2009-12-15 18:25:15 +00:00
jpandre 029faaabc6 Restricted compression to volumes with cluster size not greater than 4096 2009-12-09 10:52:21 +00:00
jpandre a69136d90b Downgraded an error message 2009-11-25 14:22:28 +00:00
jpandre 892f763d31 Fixed cluster allocation when overwriting a hole in a sparse file 2009-09-29 18:52:02 +00:00
jpandre 88473752c5 Allowed creating holes in compressed files 2009-08-11 08:02:59 +00:00
jpandre c79b3777ca Implemented backup/restoring of encrypted files (by Martin Bene) 2009-05-20 14:17:31 +00:00
jpandre f41cf451f5 Set compression parameters before making data non resident 2009-04-25 12:06:40 +00:00
jpandre c87fc027df Secured write position to compressed files 2009-04-25 12:02:20 +00:00