Commit Graph

443 Commits

Author SHA1 Message Date
cantab.net!aia21
9fca23feb2 Fix type casts after Yura's prototype changes.
(Logical change 1.664)
2005-01-19 10:31:46 +00:00
void!yura
668403c146 fix gcc4 warnings in attrib.c
(Logical change 1.663)
2005-01-17 15:04:56 +00:00
void!yura
954c8d121e change prototypes of ntfs_write_significant_bytes and
ntfs_mapping_pairs_build to fix a lot of compiler warnings.

(Logical change 1.660)
2005-01-17 11:58:33 +00:00
void!yura
3dd3b08b07 fix compiler warning about ntfs_inode_sync_standard_information
(Logical change 1.659)
2005-01-17 11:50:36 +00:00
cantab.net!aia21
a05c3cc3e1 Update to more recent build tools.
(Logical change 1.654)
2005-01-13 09:56:56 +00:00
(none)!yura
14db887f8e Rename NTFS_SECTOR_SIZE to NTFS_BLOCK_SIZE to keep in sync with kernel driver.
(Logical change 1.653)
2005-01-11 20:28:28 +00:00
(none)!yura
81fd8478ff Fix potential bug in ntfs_inode_sync_standard_information (potential,
because standard information seems always to be in the base mft record)

(Logical change 1.652)
2004-12-23 11:27:38 +00:00
(none)!yura
59a2803283 Update standard information during inode sync.
(Logical change 1.651)
2004-12-22 18:06:07 +00:00
(none)!yura
48dee17d12 I understood that it's safe to uncomment some pieces of code.
(Logical change 1.650)
2004-12-22 16:42:46 +00:00
(none)!yura
5325a7c608 Set NIno{Compressed,Sparse,Encrypted} during ntfs_inode_open
(Logical change 1.648)
2004-12-22 16:17:07 +00:00
cantab.net!aia21
140a6d2479 Rename/move inode.[hc]::ntfs_inode_{add,rm}_attr() to
attrib.[hc]::ntfs_attr_{add,rm}(), respectively.  (Anton)

(Logical change 1.646)
2004-12-22 14:22:09 +00:00
cantab.net!aia21
db7c9da42f Move NAttr{Sparse,Compressed,Encrypted} to inode struct preserving
the previous interface.  (Yura, with fixes from Anton)

(Logical change 1.645)
2004-12-22 14:04:41 +00:00
cantab.net!aia21
003b867d71 Update build for change to configure.ac.
(Logical change 1.644)
2004-12-17 14:41:57 +00:00
cantab.net!aia21
725e19422c Patch for a better compilation under NT 4 that lacks
SetFilePointerEx and FSCTL_GET_NTFS_VOLUME_DATA.  (Christophe)

(Logical change 1.644)
2004-12-17 14:41:57 +00:00
(none)!yura
173cbd1d54 Implement attribute move out in case attribute is to small to add
compressed_size field to it and we have no free space in the current
mft record.

(Logical change 1.642)
2004-11-21 13:39:13 +00:00
(none)!yura
9c6cce1bf2 Fix bug in ntfs_inode_add_attr.
(Logical change 1.641)
2004-11-21 12:31:51 +00:00
(none)!yura
2afeb1523d Fix format string in ntfs_rl_sparse and ntfs_rl_get_compressed_size.
(Logical change 1.640)
2004-11-21 12:30:53 +00:00
(none)!yura
e2ba16e3db Add @extra parameter to ntfs_attr_record_move_away. New attribute record
holder must have free @extra bytes after moving attribute record to it.

(Logical change 1.639)
2004-11-21 11:13:09 +00:00
(none)!yura
a6258ef736 Rename layout.h::ATTR_RECORD::{compressed_non_,non_,}resident_attr_end
to more shorter {non_,}resident_end and compressed_end.

(Logical change 1.637)
2004-11-21 10:53:22 +00:00
(none)!yura
793120bfb6 fix ntfs_rl_sparse and ntfs_rl_get_compressed_size name in their comments
(Logical change 1.636)
2004-11-13 20:59:44 +00:00
cantab.net!aia21
cdf56dbe79 Fix bug in ntfs_rl_get_compressed_size() and optimize it a bit.
(Logical change 1.635)
2004-11-13 08:35:46 +00:00
(none)!yura
4ae8b449af Implement code that set/clean sparse bit. But I have to disable it for now
(look to the comment of the ntfs_attr_update_mapping_pairs).

(Logical change 1.634)
2004-11-12 17:32:55 +00:00
(none)!yura
339c87da38 Endians fix in ntfs_attrlist_entry_add.
(Logical change 1.633)
2004-11-12 17:10:56 +00:00
(none)!yura
38be5f3e95 New API's ntfs_runlist_sparse and ntfs_rl_get_compressed_size.
(Logical change 1.632)
2004-11-12 17:09:24 +00:00
(none)!yura
9afb493617 Comments and message fixes in ntfs_attr_update_mapping_pairs.
(Logical change 1.631)
2004-11-10 16:10:10 +00:00
(none)!yura
c99889736e fix some paths of attribute instantiating code
(Logical change 1.629)
2004-11-05 21:43:48 +00:00
(none)!yura
1c283737c5 Change prototype of ntfs_cluster_alloc like in kernel driver.
(Logical change 1.628)
2004-11-05 20:02:16 +00:00
(none)!yura
93d9ed05aa - ntfs_attr_pwrite now can instantiate holes
- modify ntfs_non_resident_attr_expand to add sparse runs

(Logical change 1.627)
2004-11-05 19:53:34 +00:00
(none)!yura
e7f6573732 Update outdated ENOTSUP return values.
(Logical change 1.626)
2004-11-05 14:31:00 +00:00
(none)!yura
8073aaff7d ntfs_attr_pwrite: write zeros between initializes_size and @pos if needed.
(Logical change 1.625)
2004-11-05 13:54:34 +00:00
(none)!yura
3bfc11a073 Implement writing beyond data_size in ntfs_attr_pwrite.
(Logical change 1.624)
2004-11-05 11:54:43 +00:00
(none)!yura
104b710f20 cleanup to attrib.c
(Logical change 1.623)
2004-11-04 15:52:13 +00:00
(none)!yura
8b1c81fd64 Remove check that prevent attributes in inodes with attribute list become resident from ntfs_attr_make_resident.
Bugfix and cleanups to ntfs_attr_make_resident.

(Logical change 1.622)
2004-11-04 15:39:50 +00:00
(none)!yura
a90e99ff95 Fix determine of resident or not should be new attribute in ntfs_inode_add_attr.
(Logical change 1.622)
2004-11-04 15:39:50 +00:00
(none)!yura
415693011c Remove unused function ntfs_rl_merge. (Thanks to Adrian Bunk for spoting it)
(Logical change 1.621)
2004-10-30 12:47:27 +00:00
(none)!yura
b47cb7aa81 remove unused code from ntfs_resident_attr_value_resize
(Logical change 1.620)
2004-10-20 17:42:20 +00:00
(none)!yura
fb156edd1a fix stupid bug in ntfs_attr_truncate
(Logical change 1.619)
2004-10-18 19:35:46 +00:00
(none)!yura
7df47f7703 add proper rollback to ntfs_inode_add_attrlist
(Logical change 1.618)
2004-10-18 16:34:01 +00:00
(none)!yura
135a0559c8 replace 0 with NULL where applicable
(Logical change 1.616)
2004-10-18 10:00:09 +00:00
(none)!yura
3cb8b787bd - Remove attrlist.[ch]::ntfs_attrlist_set because it was very bad idea to separate it from ntfs_attrlist_entry_{add,rm}.
- Update ntfs_attrlist_entry_{add,rm} and ntfs_inode_add_attrlist to work without it.
- Some other fixes, improvements and cleanups.

(Logical change 1.615)
2004-10-17 15:56:39 +00:00
(none)!yura
827ed37ec3 Validate attribute type in ntfs_inode_add_attr().
(Logical change 1.614)
2004-10-17 09:50:21 +00:00
(none)!yura
1ff0764a9a make a bit more beautiful assignment in ntfs_non_resident_attr_record_add
(Logical change 1.613)
2004-10-15 11:38:45 +00:00
(none)!yura
28cdf0d524 add new api ntfs_inode_rm_attr
(Logical change 1.613)
2004-10-15 11:38:45 +00:00
(none)!yura
76cc3b3c6a improve ntfs_non_resident_attr_record_add
(Logical change 1.612)
2004-10-14 18:23:21 +00:00
(none)!yura
c8e53dcdec add new high level API ntfs_inode_add_attr
(Logical change 1.612)
2004-10-14 18:23:21 +00:00
(none)!yura
1a9a051f31 fix stupid bug in ntfs_inode_free_space
(Logical change 1.611)
2004-10-13 12:01:03 +00:00
(none)!yura
01161bc99b add check that $ATTRIBUTE_LIST should be <= 0x40000 to ntfs_attr_size_bounds_check
(Logical change 1.611)
2004-10-13 12:01:03 +00:00
cantab.net!aia21
3f58b75146 Enforce minimum inode allocation 24 in ntfs_mft_bitmap_find_free_rec().
(Logical change 1.610)
2004-10-13 10:56:24 +00:00
(none)!yura
09fe1580a3 fixes and cleanup to attribute resize functions
(Logical change 1.608)
2004-10-13 09:51:05 +00:00
(none)!yura
488e4b5d30 move ntfscp from extra to standard program set
(Logical change 1.607)
2004-10-12 20:05:02 +00:00