Commit Graph

181 Commits (e46d4e8959279c24830922d0e4ad94280af38f31)

Author SHA1 Message Date
antona e46d4e8959 Fix silly bug introduced in 1.12.0 which breaks ntfsfix (and others
possibly) when calling ntfs_attr_lookup() with AT_UNNAMED name and
no ntfs inode in the search context.  (Anton)
2005-10-15 20:52:41 +00:00
antona bc4bee7b2f Fix bogus le16_to_cpu() which shouldbe le32_to_cpu() when accessing
the attribute list entry attribute type in some places in
libntfs/attrib.c.  (Anton)
2005-10-15 11:33:42 +00:00
cha0smaster dff50dc5ba oops, forgot one s/_lookup/_find 2005-09-30 18:57:00 +00:00
cha0smaster ad2e6baf35 Refix my previous fix to fix. :-)
Comment thinks better.
2005-09-30 13:13:38 +00:00
cha0smaster 7aeed859b9 Revert Anton's code that breaks functions needed for attribute resize. 2005-09-30 09:52:05 +00:00
antona 8db479a6b1 Patch from Christophe:
A lot of headers are checked by autoconf (AC_CHECK_HEADERS in configure.ac).
Please find a patch that add the missing "#ifdef" to the source code.
2005-09-28 13:47:47 +00:00
antona 2a104d8eda Megapatch!!! Check evecrything!!! I probably broke everything!!! 2005-09-24 22:54:55 +00:00
antona 3a50e66a59 Fix a very(!) longstanding bug in ntfs_attr_find() and co.
Also reapply fix to unistr.c name collation.
2005-09-24 20:28:23 +00:00
cha0smaster 7fee848c26 attrib.c: fix line to be <=80 characters long 2005-09-24 13:06:59 +00:00
cha0smaster 3629d931c6 Fix resident attribute adding: Add @val to ntfs_attr_add and @val and @size to ntfs_resident_attr_record_add.
Still need to fix attribute lis entry adding. :-(
2005-09-16 14:28:18 +00:00
cha0smaster 9028a53dfc Sorry it's very large commit (46K of diffs between my local tree and CVS HEAD
before commit), file and directory creation/deletion recursively requested many
changes. See ChangeLog for description of all changes.
2005-08-14 15:44:46 +00:00
cha0smaster 6d4e6d9893 * fix ntfs_attr_open
* update for 1.11.2
2005-08-04 00:00:27 +00:00
cha0smaster fe67916350 * attrib.c: refix ntfs_attr_p{read,write}
* ntfsmount.c: code that now not really needed, but for any case
2005-08-03 13:52:50 +00:00
szaka 06052dafcf Replaced all occurances of ENOTSUP to EOPNOTSUPP to be in better harmony
with the kernel driver
2005-08-01 22:10:38 +00:00
cha0smaster f7e5e1cc26 * Fix ntfs_attr_p{read,write}. (see Changelog)
* Minor fixes and some stubs for uncommitted code.
* Update README about ./autogen.sh.
2005-08-01 13:40:51 +00:00
cha0smaster e48bd91bbf * Fix bug in index.c (see Changelog).
* Minor fixes to attr{ib,list}.c.
2005-07-23 00:50:31 +00:00
flatcap 7a142ef54c got bored. don't read the diffs. 2005-07-06 22:47:01 +00:00
cha0smaster cb13f36956 Fix typos, patch from debian version of nftsprogs 1.9.4-2. 2005-07-05 16:34:15 +00:00
cha0smaster 3adc040305 Add change protype of ntfs_attr_pwrite: make @b const. 2005-07-02 19:16:18 +00:00
antona 31a8750c4d Fix compiler warnings in libntfs when compiling under cygwin. 2005-06-21 09:55:15 +00:00
antona ca873f0474 Eeek. Someone did a commit just as I was about to commit so the commit
message was lost!  )-:

Now again...

Monster commit from me due to lack of time.  Sorry about that.

Features:

- Version to 1.10.0
- Update readme, etc ready for release.
- Update build system to suse linux 9.3 versions.
- Fix warnings appearing for me on suse 9.3 with --enable-warnings --enable-debug.
- Set attr_name to NULL in libntfs/attrib.c::__ntfs_attr_init() and fixup all
  callers apropriately.  Thanks to FlatCap/Rich for pointing this out.
- Determine endianness in ./configure and use that in addition to existing
  mechanisms for determining endianness.
2005-06-20 14:31:30 +00:00
flatcap 086fd4cc0c probably a bug in __ntfs_attr_init 2005-06-20 14:23:27 +00:00
flatcap 949043ab36 Tidy whitespace: trailing space; <space><tab> at the beginning of lines
Fix warnings about sign differences
Fix warnings about unused parameters
Tidy a few functions that didn't have { on a new line
2005-06-19 21:09:40 +00:00
cha0smaster b1dfa2b306 - Fix memleak in ntfs_attr_pwrite
- Update layout.h a bit to be a kernel driver like.
2005-06-12 15:23:25 +00:00
cha0smaster 676d8782e8 - Update attribute definition handling. (Anton, Yura) 2005-06-09 22:09:39 +00:00
cha0smaster 4b000b3d13 - Implement FILE_NAME attributes update in index during inode sync and enable code that set/clean sparse bit. Also add new inode state bit FileNameDirty to indicate that FILE_NAME attributes need update. At least after attribute resize we leave absolutely consist volume.
- Bugfixes to collate.c and index.c.
- Minor formating fixed to ntfscp and ntfsinfo.
2005-06-05 14:55:08 +00:00
void!yura 03a03359a1 Fix memleak in ntfs_attr_update_mapping_pairs
(Logical change 1.678)
2005-02-17 18:01:56 +00:00
void!yura 668403c146 fix gcc4 warnings in attrib.c
(Logical change 1.663)
2005-01-17 15:04: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 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
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
(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 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 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 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 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 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 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