Commit Graph

313 Commits (ab8ae59c528dea00bd661bc95f8c59553d3aac5b)
 

Author SHA1 Message Date
cantab.net!aia21 ab8ae59c52 Fix debug output for offset.
Only dump attribute records for attribute being resized.

(Logical change 1.69)
2002-12-28 20:10:50 +00:00
cantab.net!aia21 f8c9d4a61d libntfs/attrib.c
Fix truncation of resident attributes (new attribute length calculation
    was incorrect).
ntfsprogs/ntfstruncate.c
    Fix typos and correct a wrong sanity check which prevented truncation
    to zero size.

BKrev: 3e0df92901GVJpef7R3f7Aya7w0XSg
2002-12-28 19:19:05 +00:00
cantab.net!aia21 844432eeca Fix typos and correct a wrong sanity check which prevented truncation
to zero size.

(Logical change 1.68)
2002-12-28 19:19:05 +00:00
cantab.net!aia21 65f89be321 Fix truncation of resident attributes (new attribute length calculation
was incorrect).

(Logical change 1.68)
2002-12-28 19:19:05 +00:00
cantab.net!aia21 ab04f3489a - Only resize resident attribute records if there is a sufficiently
large change in the length of the attribute value.
- Only deallocate clusters, truncate the runlist, and regenerate the
  mapping pairs array if the change in the non-resident attribute
  value is sufficiently large.

BKrev: 3e0d9337b6ZofcTwHmT1nchXDT5Tkg
2002-12-28 12:04:07 +00:00
cantab.net!aia21 cf827730eb - Only resize resident attribute records if there is a sufficiently
large change in the length of the attribute value.
- Only deallocate clusters, truncate the runlist, and regenerate the
  mapping pairs array if the change in the non-resident attribute
  value is sufficiently large.

(Logical change 1.67)
2002-12-28 12:04:07 +00:00
cantab.net!aia21 42c62cc120 update
(Logical change 1.66)
2002-12-27 23:44:01 +00:00
cantab.net!aia21 27f6b2df8d Force is -f not -F.
(Logical change 1.66)
2002-12-27 23:44:01 +00:00
cantab.net!aia21 9fd4cc17e3 Do not perform the actual write on a read-only volume!
(Logical change 1.66)
2002-12-27 23:44:01 +00:00
cantab.net!aia21 b7270466fe - libntfs: Do not perform the actual write on a read-only volume!
- ntfstruncate: Force is -f not -F.

BKrev: 3e0ce5c1pvIVBQfRxu0k7Sv-iooPOQ
2002-12-27 23:44:01 +00:00
cantab.net!aia21 a447c17337 Add ntfstruncate to the BitKeeper ignore list.
BKrev: 3e0cdf0btJHp8R--GQgaRIqMlrvdaA
2002-12-27 23:15:23 +00:00
cantab.net!aia21 98d1f0f5b3 Add ntfstruncate to the BitKeeper ignore list.
(Logical change 1.65)
2002-12-27 23:15:23 +00:00
cantab.net!aia21 8f80ecb2ba update
(Logical change 1.64)
2002-12-27 23:14:11 +00:00
cantab.net!aia21 19c9c5dff3 ntfs_umount() now also does an fdatasync() on the device before closing it.
(Logical change 1.64)
2002-12-27 23:14:11 +00:00
cantab.net!aia21 a6c464ca4d (Logical change 1.64) 2002-12-27 23:14:11 +00:00
cantab.net!aia21 dafd0eefe3 Initial revision 2002-12-27 23:14:11 +00:00
cantab.net!aia21 43c7dfa6af Add ntfstruncate to manual build process.
(Logical change 1.64)
2002-12-27 23:14:11 +00:00
cantab.net!aia21 216ca068fd - Added new utility ntfstruncate, primarily to be able to test the
new ntfs_attr_truncate() function, it is not compiled by default.
  Note, the library can currently only make attributes smaller and it
  only works on uncompressed, unencrypted inodes which do not contain
  attribute lists, i.e. on simple files, but that was quite a lot of
  new code in itself which needs a lot of testing!
- ntfs_umount() now also does an fdatasync() on the device before closing it.

BKrev: 3e0cdec31tkln57-NXAcN4eNov_nBA
2002-12-27 23:14:11 +00:00
cantab.net!aia21 dd92ef9b61 update
(Logical change 1.63)
2002-12-27 18:53:56 +00:00
cantab.net!aia21 66db0a4f86 Implement ntfs_rl_truncate().
BKrev: 3e0ca1c4sg6ib1Q-gDWoTlzCiv1k0A
2002-12-27 18:53:56 +00:00
cantab.net!aia21 ebe9aa33f3 Implement ntfs_rl_truncate().
(Logical change 1.63)
2002-12-27 18:53:56 +00:00
cantab.net!aia21 a50496eca8 update
(Logical change 1.62)
2002-12-27 17:25:45 +00:00
cantab.net!aia21 ac10aa7709 Setup the cluster and mft allocators.
(Logical change 1.62)
2002-12-27 17:25:45 +00:00
cantab.net!aia21 91597fe050 Add variables used by the cluster and mft allocators.
(Logical change 1.62)
2002-12-27 17:25:45 +00:00
cantab.net!aia21 02a141c9c0 - Add variables used bu the cluster and mft allocators
to the ntfs_volume structure.
- Setup the cluster and mft allocators.

BKrev: 3e0c8d19gy-d4BTZdoMOn6CjRiL11w
2002-12-27 17:25:45 +00:00
cantab.net!aia21 3bc805714e update todo
(Logical change 1.61)
2002-12-27 16:48:52 +00:00
cantab.net!aia21 78e207b2f9 Change ntfs_rl_truncate() to take address of the runlist
rather than the runlist to allow reallocation of the runlist
buffer.

BKrev: 3e0c8474LNHF-sHxrKW2PvR56flIAw
2002-12-27 16:48:52 +00:00
cantab.net!aia21 eb98ae1dca Change ntfs_rl_truncate() to take address of the runlist
rather than the runlist to allow reallocation of the runlist
buffer.

(Logical change 1.61)
2002-12-27 16:48:52 +00:00
cantab.net!aia21 66fb584c1a Update todo.
(Logical change 1.60)
2002-12-27 16:35:17 +00:00
cantab.net!aia21 754a34b869 Update changelog.
(Logical change 1.60)
2002-12-27 16:35:17 +00:00
cantab.net!aia21 928eff2891 Move some run list related functions out of attrib.[hc] into runlist.[hc].
(Logical change 1.60)
2002-12-27 16:35:17 +00:00
cantab.net!aia21 e5d59f00f1 Fix compile.
(Logical change 1.60)
2002-12-27 16:35:17 +00:00
cantab.net!aia21 5fe6d01c92 - Move some run list related functions out of attrib.[hc] into runlist.[hc].
- Fix compile of bitmap.c.

BKrev: 3e0c8145BykcQw0WKZvJrJSaZyfmiQ
2002-12-27 16:35:17 +00:00
cantab.net!aia21 f89206c784 update changelog
(Logical change 1.59)
2002-12-27 16:18:10 +00:00
cantab.net!aia21 ccf8a369a2 Update build process for bitmap.c.
(Logical change 1.59)
2002-12-27 16:18:10 +00:00
cantab.net!aia21 42338a8bee Typo fix.
(Logical change 1.59)
2002-12-27 16:18:10 +00:00
cantab.net!aia21 54cde7ab8e (Logical change 1.59) 2002-12-27 16:18:10 +00:00
cantab.net!aia21 26a99e4db3 Initial revision 2002-12-27 16:18:10 +00:00
cantab.net!aia21 5fe5494e4c Fix prototype.
(Logical change 1.59)
2002-12-27 16:18:10 +00:00
cantab.net!aia21 d761ee8105 Fix compilation.
2002/12/27 16:03:18+00:00 cantab.net!aia21
Implement ntfs_cluster_free().

(Logical change 1.59)
2002-12-27 16:18:10 +00:00
cantab.net!aia21 bccfbfbff4 Add export for ntfs_bitmap_clear_run().
(Logical change 1.59)
2002-12-27 16:18:10 +00:00
cantab.net!aia21 f070801f38 - Implement ntfs_cluster_free().
- New API function provided by bitmap.[hc]: ntfs_bitmap_clear_run().

BKrev: 3e0c7d42HRZG_tWdMiPBwVY6SfiePg
2002-12-27 16:18:10 +00:00
cantab.net!aia21 67ae4b9651 Update comments for ntfs_cluster_free().
(Logical change 1.58)
2002-12-26 20:36:52 +00:00
cantab.net!aia21 57e13d7537 Update changelog.
(Logical change 1.58)
2002-12-26 20:36:52 +00:00
cantab.net!aia21 f8a7ee4a7e Typos.
(Logical change 1.58)
2002-12-26 20:36:52 +00:00
cantab.net!aia21 833db0bc4b Typo
(Logical change 1.58)
2002-12-26 20:36:52 +00:00
cantab.net!aia21 1dd01bf3c7 New API: ntfs_rl_truncate().
(Logical change 1.58)
2002-12-26 20:36:52 +00:00
cantab.net!aia21 c9ca9fd9b7 - lowest_vcn is cpu endian not little endian in ntfs_external_attr_find().
- Implement ntfs_non_resident_attr_shrink() for inodes without extents.

(Logical change 1.58)
2002-12-26 20:36:52 +00:00
cantab.net!aia21 90623ee1a8 - New API: ntfs_rl_truncate().
- lowest_vcn is cpu endian not little endian in ntfs_external_attr_find().
- Implement ntfs_non_resident_attr_shrink() for inodes without extents.

BKrev: 3e0b6864kIQCHxlS8aBwkJRuaMCQfA
2002-12-26 20:36:52 +00:00
cantab.net!aia21 d67cb08072 Correct Bitkeeper/etc/ignore with the renamed ntfstools directory to ntfsprogs.
BKrev: 3e0b0c30hCnFLU5zDAjMi1eexzbjuQ
2002-12-26 14:03:28 +00:00