Commit Graph

4092 Commits (02bab2956c93b1a5e2021a4414b54542590ff029)
 

Author SHA1 Message Date
cantab.net!aia21 cb8fc1b9e9 (Logical change 1.77) 2003-01-06 22:09:46 +00:00
cantab.net!aia21 cdcc968ac2 mft.c:
fix compile (thanks to Szaka)

BKrev: 3e19fe408ezU1nHbgzxf9oBHR5PcUA
2003-01-06 22:08:00 +00:00
cantab.net!aia21 8a3f5f4c00 fix compile (thanks to Szaka)
(Logical change 1.76)
2003-01-06 22:08:00 +00:00
cantab.net!aia21 75c2ef39f0 (Logical change 1.76) 2003-01-06 22:08:00 +00:00
cantab.net!aia21 09b1e1c2dc - Clear newly allocated space in ntfs_resident_attr_value_resize().
- Rename ntfs_resident_attr_shrink() to ntfs_resident_attr_resize()
  and make it resize upwards as well as downwards.
- Change ntfs_attr_truncate() to allow resizing upwards of resident
  attributes.

BKrev: 3e103aaelA-DbuSxAZOuXF-SqZHIaA
2002-12-30 12:23:10 +00:00
cantab.net!aia21 08ef32703a - Clear newly allocated space in ntfs_resident_attr_value_resize().
- Rename ntfs_resident_attr_shrink() to ntfs_resident_attr_resize()
  and make it resize upwards as well as downwards.
- Change ntfs_attr_truncate() to allow resizing upwards of resident
  attributes.

(Logical change 1.75)
2002-12-30 12:23:10 +00:00
cantab.net!aia21 f7e003fd49 update
(Logical change 1.74)
2002-12-29 21:37:21 +00:00
cantab.net!aia21 be6376f85e New API provided by mft.[hc]:
ntfs_mft_record_alloc(), -- WIP
	ntfs_mft_record_free().

(Logical change 1.74)
2002-12-29 21:37:21 +00:00
cantab.net!aia21 2dbb7c23a5 Fix erroneusly placed err = errno.
(Logical change 1.74)
2002-12-29 21:37:21 +00:00
cantab.net!aia21 3bcc223bfd Change ntfs_inode_close() to disconnect extent inodes from their base
inode when an extent inode is closed. This is needed byt ntfs_mft_record_free()
in order to be able to free extent mft records.

(Logical change 1.74)
2002-12-29 21:37:21 +00:00
cantab.net!aia21 58f750c289 - Change ntfs_inode_close() to disconnect extent inodes from their base
inode when an extent inode is closed. This is needed byt ntfs_mft_record_free()
  in order to be able to free extent mft records.
- New API provided by mft.[hc]:
	ntfs_mft_record_alloc(), -- WIP
	ntfs_mft_record_free().

BKrev: 3e0f6b11PfOsUTFzT98-K2SKWj_qpg
2002-12-29 21:37:21 +00:00
cantab.net!aia21 efe2271a30 - Change ntfs_inode_close() to disconnect extent inodes from their base
inode when an extent inode is closed. This is needed byt ntfs_mft_record_free()
  in order to be able to free extent mft records.
- New API provided by mft.[hc]:
	ntfs_mft_record_alloc(), -- WIP
	ntfs_mft_record_free().

(Logical change 1.74)
2002-12-29 21:37:21 +00:00
cantab.net!aia21 a9f6279e55 update
(Logical change 1.73)
2002-12-29 17:54:10 +00:00
cantab.net!aia21 84b007cf9c add export for ntfs_attr_size_bounds_check().
(Logical change 1.73)
2002-12-29 17:54:10 +00:00
cantab.net!aia21 36ee87eab4 Add new API ntfs_attr_size_bounds_check().
(Logical change 1.73)
2002-12-29 17:54:10 +00:00
cantab.net!aia21 cfa2dc3960 Add new API attrib.[hc]::ntfs_attr_size_bounds_check() to verify a
size against an attribute type for validity. We check the volume's
attribute definitions table to do so.

BKrev: 3e0f36c20ltAQdArVytoyFjeFUgbKA
2002-12-29 17:54:10 +00:00
cantab.net!aia21 d24d73e13c libntfs/attrib.c
Uncomment still unused label.
ntfsprogs/ntfstruncate.c
    Add ability to specify an attribute name in addition to the attribute type.
include/volume.h
    Add attribute definition table to ntfs volume structure.
libntfs/volume.c
    Load the attribute definition table at mount time and free it at umount time.

BKrev: 3e0ee7df1MNHgnJmH-0-5nWouWa6nQ
2002-12-29 12:17:35 +00:00
cantab.net!aia21 7bd63f4186 Uncomment still unused label.
(Logical change 1.72)
2002-12-29 12:17:35 +00:00
cantab.net!aia21 f75d0c5be5 Load the attribute definition table at mount time and free it at umount time.
(Logical change 1.72)
2002-12-29 12:17:35 +00:00
cantab.net!aia21 a86ad90a97 Finish off / fix ability to specify an attribute name.
2002/12/29 12:03:45+00:00 cantab.net!aia21
Add ability to specify an attribute name in addition to the attribute type.

(Logical change 1.72)
2002-12-29 12:17:35 +00:00
cantab.net!aia21 6258afc6dd Add attribute definition table to ntfs volume structure.
(Logical change 1.72)
2002-12-29 12:17:35 +00:00
cantab.net!aia21 0d45f0a690 Forgot the increment in the while loop. Thanks to Szaka for spotting this.
BKrev: 3e0e2572M2bMOll496m961dIX7EGlQ
2002-12-28 22:28:02 +00:00
cantab.net!aia21 998104321b Forgot the increment in the while loop. Thanks to Szaka for spotting this.
(Logical change 1.71)
2002-12-28 22:28:02 +00:00
cantab.net!aia21 ed19c0cf08 Add test and comments for truncation of non-resident attributes to
zero size. We should be converting such an attribute to a resident
one instead of leaving a zero size non-resident attribute.

BKrev: 3e0e21f2-EOnVjpgx9hG0y9AKl047A
2002-12-28 22:13:06 +00:00
cantab.net!aia21 7b2cb8211f Add test and comments for truncation of non-resident attributes to
zero size. We should be converting such an attribute to a resident
one instead of leaving a zero size non-resident attribute.

(Logical change 1.70)
2002-12-28 22:13:06 +00:00
cantab.net!aia21 ff5a0d104d libntfs/attrib.c
Fix stupid typo bug.
libntfs/bitmap.c
    Fix stupid typo bugs.
libntfs/lcnalloc.c
    Remove silly and wrong sanity check.
ntfsprogs/ntfstruncate.c
    Fix debug output for offset.
    Only dump attribute records for attribute being resized.

BKrev: 3e0e054aZ_gETxMSUP_8y3be4ppXRg
2002-12-28 20:10:50 +00:00
cantab.net!aia21 4084c90c93 Remove silly and wrong sanity check.
(Logical change 1.69)
2002-12-28 20:10:50 +00:00
cantab.net!aia21 3d5d045fe4 Fix stupid typo bugs.
(Logical change 1.69)
2002-12-28 20:10:50 +00:00
cantab.net!aia21 722a3eb12f Fix stupid typo bug.
(Logical change 1.69)
2002-12-28 20:10:50 +00:00
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