Commit Graph

231 Commits (b8e1188102f35fcd75d76f5c2ff707269787d95c)

Author SHA1 Message Date
cha0smaster b8e1188102 Fix memory managament error in ntfs_inode_close. ntfs_extent_inode_open
allocates buffer for up to 4 extent inodes, to prevent many reallocates.
But ntfs_inode_close always reallocate buffer to store exactly @nr_extents
inodes. Bug will arise in following scenario:
1) ntfs_extent_inode_open (1 extent, allocate buffer for 4)
2) ntfs_extent_inode_open (2 extents, use already allocated buffer)
3) ntfs_inode_close(extent_ni) (1 extent, reallocate buffer for 1 extent)
4) ntfs_extent_inode_open (2 extents, don't reallocate buffer because it should be for 4 elements, but really it's for 1, write to unitialized space, segfault)
2005-07-02 13:58:02 +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
cha0smaster e323ed6a03 Move utils_pathname_to_inode from to library (dir.c), adapt it for library, rename it to ntfs_pathname_to_inode, update all users. 2005-06-12 18:12:55 +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
cha0smaster 2d8dc1736d - Port collate.[ch] from kernel to library and implement

							
						
2005-06-04 00:57:58 +00:00
antona c4cb316418 mkntfs: Add new option -T which fakes the time to be 00:00:00 UTC,
Jan 1, 1970 instead of the current system time.
2005-06-03 22:22:12 +00:00
antona b8a543a27e Do dynamic run-time detection of SetFilePointerEx() instead of defunct
autoconf crap.
Also, fix a really stupid bug in the emulated SetFilePointerEx() which caused
the segfaults.  (It unconditionally wrote to a pointer even when it was NULL.)
2005-06-03 10:27:32 +00:00
szaka 683b707b43 Don't mark NTFS dirty if the backup boot sector could be created 2005-06-02 18:36:43 +00:00
szaka 6aa5cc17fe ntfsresize: fix segfault during fsck if $Bitmap was larger than expected 2005-05-24 21:13:51 +00:00
antona cf2646d607 Update 2005-05-19 21:54:59 +00:00
szaka fbbefe0c70 - read-write ntfs_mount() returns EPERM if the partition is hibernated 2005-05-10 16:53:48 +00:00
cantab.net!aia21 c4761f35bf Update
(Logical change 1.699)
2005-04-25 07:26:08 +00:00
cantab.net!aia21 b13242445a Update
(Logical change 1.698)
2005-04-22 13:52:16 +00:00
cantab.net!aia21 ac492c10bb update
(Logical change 1.697)
2005-04-19 12:01:38 +00:00
void!yura 9b0a58972a update
(Logical change 1.694)
2005-04-06 15:47:43 +00:00
elisa-laajakaista.fi!szaka da1b0e094b ntfsclone: make --metadata work with the new $Logfile checking code.
Save at least the first 16 KiB of $Logfile (the two RSTR records
should always be included if present). Save also records used for
checking empty $Logfile.

(Logical change 1.691)
2005-03-05 19:08:57 +00:00
cantab.net!aia21 19b8d3c7d1 Update
(Logical change 1.686)
2005-03-03 23:57:13 +00:00
elisa-laajakaista.fi!szaka 420c3cb606 ntfsfix: fix invalid mft records in $MFTMirr.
(Logical change 1.683)
2005-03-01 23:11:20 +00:00
elisa-laajakaista.fi!szaka cb2cd394b3 ntfsclone: added a new option, --rescue. It ignores read errors
so disks having bad sectors (dying disks) can be rescued. The content
of the cluster having bad sectors is filled by character '2' and the
start of the cluster is marked by "BadClusteR".

(Logical change 1.682)
2005-03-01 21:48:00 +00:00
elisa-laajakaista.fi!szaka 5d86dff231 ntfsclone: added a new option, --ignore-fs-check. It can be used only with
the --metadata option. The clusters causing the inconsistency are saved too.

(Logical change 1.681)
2005-02-28 19:23:20 +00:00
elisa-laajakaista.fi!szaka c65b34b709 ntfsfix: empty journal and mark volume dirty for chkdsk if ntfs_mount failed. This makes read-write mounting of NTFS metadata images possible by
ntfsprogs and the kernel driver what were created by versions of ntfsclone previous than 2.0.0.

(Logical change 1.680)
2005-02-20 22:20:54 +00:00
cantab.net!aia21 b6b7655c55 Update
(Logical change 1.677)
2005-02-17 17:03:50 +00:00
void!yura b8da6570e0 ntfscp: Added SIGINT (Ctrl+C) handler, improved error handling in
sync failed case.  (Yura)

(Logical change 1.675)
2005-02-07 20:44:07 +00:00
void!yura d5eac44ab9 update
(Logical change 1.672)
2005-01-30 18:13:25 +00:00
void!yura 1354e9b446 Update.
(Logical change 1.666)
2005-01-25 21:41:25 +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 b86f85b7f1 Update.
(Logical change 1.651)
2004-12-22 18:06:07 +00:00
cantab.net!aia21 cabfe89386 Manual merge
2004/12/22 12:40:19+02:00 (none)!yura
Update.

(Logical change 1.647)
2004-12-22 14:22:58 +00:00
cantab.net!aia21 19fbf5b490 Update
(Logical change 1.646)
2004-12-22 14:22:09 +00:00
cantab.net!aia21 b12041e518 Update
(Logical change 1.645)
2004-12-22 14:04:41 +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 2a2aecdb2a Update.
(Logical change 1.632)
2004-11-12 17:09:24 +00:00
(none)!yura 77802ca092 Update
(Logical change 1.627)
2004-11-05 19:53:34 +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 c59b032f7e update
(Logical change 1.613)
2004-10-15 11:38:45 +00:00
(none)!yura 5d5f6497e9 update
(Logical change 1.612)
2004-10-14 18:23:21 +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
(none)!yura 7c1b950052 update
(Logical change 1.603)
2004-10-11 16:26:16 +00:00
(none)!yura 419e3ce8b7 Remove inode.h::NIno{Clear,Set,}AttrListNonResident and attr_list_rl field from inode.h::_ntfs_inode struct. Adapt all users.
(Logical change 1.600)
2004-10-11 09:16:35 +00:00
(none)!yura 07a8918a4c update
(Logical change 1.599)
2004-10-10 17:20:48 +00:00
(none)!yura f79110c80d Update.
(Logical change 1.596)
2004-10-08 16:50:36 +00:00
(none)!yura a929f9f0ba Update.
(Logical change 1.592)
2004-10-07 14:04:09 +00:00
elisa-laajakaista.fi!szaka 63b6f9ff3f ntfsclone: honor bad clusters list ($BadClus:$Bad), known bad sectors aren't tried to be saved anymore (Szaka)
(Logical change 1.587)
2004-09-30 18:16:48 +00:00
cantab.net!aia21 8b3c03e173 Rename scpu_to_le{16,32,64}() to cpu_to_sle{16,32,64}() to match the kernel.
(Logical change 1.586)
2004-09-30 15:00:31 +00:00
(none)!yura 030e531012 SCCS merged
2004/09/29 18:21:24+03:00 (none)!yura
SCCS merged

2004/09/29 18:16:34+03:00 (none)!yura
Update.

(Logical change 1.584)
2004-09-29 15:43:22 +00:00
cantab.net!aia21 a18fb7244f Update
(Logical change 1.583)
2004-09-29 14:45:16 +00:00
elisa-laajakaista.fi!szaka e68a61101a - ntfsclone: save by using our, not NTFS cluster allocation bitmap.
This gives more control in the future what to save.

(Logical change 1.582)
2004-09-28 23:43:15 +00:00
(none)!yura 1e589f3db3 Update.
(Logical change 1.580)
2004-09-26 19:31:31 +00:00
(none)!yura e418cf5345 Update.
(Logical change 1.579)
2004-09-25 20:10:16 +00:00