cantab.net!aia21
39b62e050e
Move Sprintf,Dputs,Dprintf,Dperror to be defines and call proper
...
non-inlined functions which are now in debug.c.
(Logical change 1.503)
2004-08-19 21:01:11 +00:00
cantab.net!aia21
d33e7eaae4
Fix fallout from previous error output changes.
...
(Logical change 1.503)
2004-08-19 21:01:11 +00:00
cantab.net!aia21
930e056c02
Use Sprintf instead of doing it by hand.
...
(Logical change 1.502)
2004-08-18 10:27:49 +00:00
cantab.net!aia21
380f4f1ce1
Silence compiler warnings.
...
(Logical change 1.502)
2004-08-18 10:27:49 +00:00
cantab.net!aia21
4910ed561c
Change all output to only appear if configure with --enable-debug by
...
using Dputs/Dprintf instead of fprintf(stderr,.
(Logical change 1.502)
2004-08-18 10:27:49 +00:00
cantab.net!aia21
183985792c
Only need two spare runlist elements when realocating memory,
...
not three since we no longer add a starting element.
(Logical change 1.501)
2004-08-17 21:07:00 +00:00
cantab.net!aia21
129a7f0399
Fix ntfs_cluster_alloc() to use LCN_RL_NOT_MAPPED rather
...
than LCN_ENOENT as runlist terminator.
Also, make it not create a LCN_RL_NOT_MAPPED element at
the beginning.
(Logical change 1.500)
2004-08-17 20:45:18 +00:00
cantab.net!aia21
24d811c682
Fix some bugs in error recovery code path (runlist unterminated and one bit was not recovered).
...
(Logical change 1.498)
2004-08-15 21:04:22 +00:00
flatcap.org!ntfs
a61808707f
minor build fix
...
(Logical change 1.494)
2004-08-12 13:33:25 +00:00
cantab.net!aia21
aa85d7a8b1
The long waited device-level write support on
...
windows. (Yuval)
(Logical change 1.491)
2004-08-12 08:21:50 +00:00
cantab.net!aia21
98b3b601cf
Use the NDev* macros in win32_io.c too. (Yuval)
...
(Logical change 1.489)
2004-08-12 08:08:25 +00:00
cantab.net!aia21
1fd33a1326
Change the win32_open function to open volumes
...
instead of partitions when possible, and use the windows volume
locking/dismounting mechanism on R/W open to prevent data corruption. (Yuval)
(Logical change 1.488)
2004-08-12 08:06:25 +00:00
cantab.net!aia21
5038a7e1b9
Fix debug output issues in win32_io.c (Yuval)
...
(Logical change 1.487)
2004-08-12 07:58:38 +00:00
flatcap.org!ntfs
1be6deedaf
deltaxcn will only go as high as (max_cluster-1) so the comparisons below were off by one
...
(Logical change 1.485)
2004-08-10 10:45:07 +00:00
cantab.net!aia21
c6d73395e4
Refix the fix to the fix in runlist.c highest_vcn == 0 handling.
...
(Logical change 1.483)
2004-08-09 13:31:10 +00:00
cantab.net!aia21
01e060874b
ntfs_mapping_pairs_decompress for highest_vcn == 0.
...
(Logical change 1.479)
2004-08-05 21:28:14 +00:00
(none)!yura
d3178859aa
bugfix for ntfs_mapping_pairs_decompress for highest_vcn == 0
...
(Logical change 1.478)
2004-08-05 19:35:51 +00:00
(none)!yura
a40f1c30b6
* bugfix ntfs_attr_truncate: determine what we need to do with attribute (expand or shrink) from
...
na->data_size not from na->initialized_size
* revert code and comment update about highest in ntfs_non_resident_attr_{shrink,expand}, because
I fixed that bug
(Logical change 1.478)
2004-08-05 19:35:51 +00:00
(none)!yura
9be1951a31
Restructure of error handling in ntfs_non_resident_attr_expand
...
Comments update
(Logical change 1.477)
2004-08-05 18:41:19 +00:00
(none)!yura
d99c39d980
fixing bugs in ntfs_non_resident_attr_{shrink,expand} that caused not updating highest_vcn,
...
if it was equal to 0
(Logical change 1.476)
2004-08-05 13:20:11 +00:00
cantab.net!aia21
5ece0477c8
Fix a bug in the cluster allocator.
...
Also several debug output bugs.
(Logical change 1.475)
2004-08-05 10:15:54 +00:00
(none)!yura
b2b13a1856
attrib.c::ntfs_non_resident_attr_expand
...
added code to restore mft record, if we failed build mapping pairs
(Logical change 1.474)
2004-08-05 09:32:27 +00:00
cantab.net!aia21
bde8048cac
Fix error code paths in ntfs_non_resident_attr_expand() and also
...
fix starting lcn determination and set it to -1 if
there are no valid lcns in the attribute, i.e. let the
allocator choose in this case.
(Logical change 1.473)
2004-08-04 20:35:58 +00:00
cantab.net!aia21
c1427ce9c9
Move variable declaration to top of statement block.
...
(Logical change 1.472)
2004-08-04 19:17:50 +00:00
(none)!yura
bb8ee06cad
small updates
...
(Logical change 1.471)
2004-08-04 09:47:41 +00:00
(none)!yura
0c92486d08
make ntfs_cluster_free not fail if ntfs_attr_find_vcn returned ENOENT
...
(Logical change 1.470)
2004-08-03 17:53:48 +00:00
(none)!yura
73c333a681
bugfix in ntfs_attr_map{_whole_,_}runlist: make it not fail if runlist already mapped
...
(Logical change 1.470)
2004-08-03 17:53:48 +00:00
(none)!yura
ad91c15528
various updates and fixes
...
(Logical change 1.468)
2004-08-02 16:56:34 +00:00
(none)!yura
910855a174
* bugfix for ntfs_cluster_alloc when @count = 0.
...
* add ntfs_clster_free_from_rl and make ntfs_cluster_alloc use it
(Logical change 1.468)
2004-08-02 16:56:34 +00:00
(none)!yura
03f1839241
add ntfscp to build
...
(Logical change 1.467)
2004-08-02 12:05:21 +00:00
(none)!yura
70bfea1080
Add new function attrib.c::ntfs_non_resident_attr_expand, thus we can expand non resident attributes
...
(Logical change 1.466)
2004-08-01 11:05:46 +00:00
(none)!yura
50b9026628
Add a @start_vcn parameter to lcnalloc.[ch]::ntfs_cluster_alloc
...
(Logical change 1.466)
2004-08-01 11:05:46 +00:00
(none)!yura
d2fd32b481
Fix bug in ntfs_attr_size_bounds_check that caused it always fail if no maximum limit for attribute size
...
(Logical change 1.465)
2004-07-30 13:00:24 +00:00
cantab.net!aia21
faa7f82c0c
Remove 2 unused functions.
...
(Logical change 1.462)
2004-07-15 09:43:09 +00:00
cantab.net!aia21
d3007d5542
Add nice comments to functions.
...
(Logical change 1.461)
2004-07-15 09:41:47 +00:00
cantab.net!aia21
2604474716
Implement ntfs_device_win32_stat().
...
(Logical change 1.460)
2004-07-15 09:40:34 +00:00
cantab.net!aia21
40d7371812
Implement ntfs_device_win32_sync().
...
(Logical change 1.459)
2004-07-15 09:37:03 +00:00
cantab.net!aia21
0dfe86e663
Re-factor the existing ntfs_device_win32_open().
...
(Logical change 1.458)
2004-07-15 09:35:10 +00:00
cantab.net!aia21
3b3ac7b234
Implement ntfs_device_win32_ioctl().
...
(Logical change 1.457)
2004-07-15 09:29:13 +00:00
cantab.net!aia21
a93c3f9549
Include debug.h and remove duplicated code. (Yuval)
...
(Logical change 1.455)
2004-07-13 15:05:15 +00:00
cantab.net!aia21
ae0653cc18
Include attrib.h before debug.h as debug.h no longer includes attrib.h. (Yuval)
...
(Logical change 1.455)
2004-07-13 15:05:15 +00:00
(none)!yura
9576429f7f
ntfs_rl_p{read,write}: "* vol->cluster_size" replaced with faster and more compatible "<< vol->cluster_size_bits"
...
(Logical change 1.448)
2004-07-08 20:19:52 +00:00
(none)!yura
5d43e167d5
Fixed bug that cause ntfs_attr_p{read,write} fail on resident encrypted attribute
...
(Logical change 1.448)
2004-07-08 20:19:52 +00:00
(none)!yura
b8c2ec25b6
fix comment
...
(Logical change 1.446)
2004-07-06 19:53:05 +00:00
cantab.net!aia21
66c60d9659
Fix Yura's fix.
...
(Logical change 1.430)
2004-06-21 09:51:07 +00:00
flatcap.org!ntfs
b429c1fc69
bugfix for ntfs_rl_pread,pwrite for pos > 0
...
(Logical change 1.428)
2004-06-20 16:47:19 +00:00
flatcap.org!ntfs
c05355e711
alloc freeing of a null inode
...
(Logical change 1.400)
2004-05-26 07:41:00 +00:00
cantab.net!aia21
a6cd1084c3
Do not use the ++ operator on a variable when it is being passed as a
...
parameter to a macro in libntfs/unistr.c. (Pete Curran, Yuval)
(Logical change 1.393)
2004-05-21 21:21:38 +00:00
cantab.net!aia21
3423a8a909
Rename uchar_t to ntfschar.
...
(Logical change 1.392)
2004-05-14 13:02:33 +00:00
cantab.net!aia21
9ae1b7306a
Fix access of MFT_RECORD->bytes_in_use to use le32_to_cpu() instead
...
of le16_to_cpu() in libntfs/volume.c. (Pete Curran)
(Logical change 1.391)
2004-05-14 08:07:19 +00:00
cantab.net!aia21
da742f48da
- Fix a bug where we would not always detect that we have reached the
...
end of a compression block because we were ending at minus one byte
which is effectively the same as being at the end. The fix is to
check whether the uncompressed buffer has been fully filled and if so
we assume we have reached the end of the compression block. A big
thank you to Marcin Gibuła for the bug report, the assistance in
tracking down the bug and testing the fix.
- Fix a bug where we forgot to reset the data_size and initialized_size
in two error code paths.
- Fix a bug where an uncompressed block could be misdetected as a
compressed one if it was made up of multiple runs.
(Logical change 1.390)
2004-05-11 09:21:24 +00:00
cantab.net!aia21
653cfec1ca
Add SetFilePointerEx() emulation. (Lode)
...
(Logical change 1.385)
2004-04-28 08:06:17 +00:00
cantab.net!aia21
03a99a7ece
Work around mbstowcs() bug in DJGPP and update workaround for bug in
...
mbsrtowcs() on Cygwin. (Lode, Christophe, Anton)
(Logical change 1.384)
2004-04-27 12:48:14 +00:00
cantab.net!aia21
14449e4e00
- Fix silly bug where j is used to store the error code
...
but i is later expected to be storing it. (Yuval)
- Fix some warnings. (Yuval, me)
(Logical change 1.380)
2004-04-23 10:54:57 +00:00
cantab.net!aia21
cd0bb098d9
Fix silly typo/bug.
...
(Logical change 1.369)
2004-04-15 11:55:46 +00:00
cantab.net!aia21
8d9353c062
Add ntfs_sid_to_mbs_size() and ntfs_sid_to_mbs().
...
(Logical change 1.368)
2004-04-15 11:10:40 +00:00
cantab.net!aia21
56fd4cd70d
Yuval:
...
A few compiler warnings I found using 'configure -enable-warnings'
Mostly trivial.
- 'char *' changed to 'const char *'
- prototypes
- unsigned/signed comparison
- duplicate extern declerations
(Logical change 1.361)
2004-04-09 12:55:19 +00:00
cantab.net!aia21
78922e89fa
Update to automake 1.8.3.
...
(Logical change 1.349)
2004-03-26 14:50:33 +00:00
cantab.net!aia21
a8c7b62ffc
Fix some compiler warnings.
...
(Logical change 1.348)
2004-03-26 14:42:21 +00:00
cantab.net!aia21
3cc9f21016
Update comments.
...
(Logical change 1.346)
2004-03-24 17:38:31 +00:00
cantab.net!aia21
3e63b65e23
Add placeholder for ntfs_attrlist_entry_rm(). -- Not implemented yet.
...
(Logical change 1.345)
2004-03-24 10:36:31 +00:00
cantab.net!aia21
559786d6c9
- Add new API ntfs_device_heads_get() and
...
ntfs_device_sectors_per_track_get().
(Logical change 1.345)
2004-03-24 10:36:31 +00:00
cantab.net!aia21
b1f8254930
Remove the FIXME in ntfs_attr_lookup() and complete the
...
implementation of ntfs_external_attr_find() so it now returns the
attribute list attribute position at which the attribute should be
inserted in @ctx->al_entry (see descritpion for ntfs_attr_lookup() in
attrib.c for details).
(Logical change 1.343)
2004-03-22 10:42:38 +00:00
cantab.net!aia21
1500287b1c
Update
...
(Logical change 1.340)
2004-03-19 17:36:45 +00:00
cantab.net!aia21
6507533a0a
(Logical change 1.340)
2004-03-19 17:36:45 +00:00
cantab.net!aia21
1c970228e2
Initial revision
2004-03-19 17:36:45 +00:00
cantab.net!aia21
592b4662db
Add attrlist.c to build.
...
(Logical change 1.340)
2004-03-19 17:36:45 +00:00
cantab.net!aia21
ae7789dcd0
Support the case where $Volume does not have a $VOLUME_NAME
...
attribute in ntfs_device_mount() and let ntfslabel create the
attribute when it is not present.
(Logical change 1.339)
2004-03-19 10:21:05 +00:00
cantab.net!aia21
93acd345a7
Update
...
(Logical change 1.338)
2004-03-17 16:53:29 +00:00
cantab.net!aia21
117c16ec74
Fix a compiler warning.
...
(Logical change 1.336)
2004-03-17 12:22:03 +00:00
cantab.net!aia21
9318887cd5
Add new API device.[hc]::ntfs_device_partition_start_sector_get() and
...
make mkntfs use it.
(Logical change 1.336)
2004-03-17 12:22:03 +00:00
cantab.net!aia21
2bd298bc2d
Add new API mft.[hc]::ntfs_mft_record_{layout,format}() and make
...
mkntfs use it.
(Logical change 1.335)
2004-03-15 12:50:18 +00:00
cantab.net!aia21
481241602c
Change ntfs_get_attribute_value syntax to not have the MFT_RECORD as it
...
wasn't used anyway and the function is headed for death anyway...
(Logical change 1.332)
2004-03-15 10:54:47 +00:00
cantab.net!aia21
802ed33475
New file: security.c includes new API ntfs_guid_is_zero() and
...
ntfs_guid_to_mbs().
2004/03/14 17:38:29+00:00 cantab.net!aia21
(Logical change 1.330)
2004-03-14 18:04:17 +00:00
cantab.net!aia21
84db0e8dfb
Initial revision
2004-03-14 18:04:17 +00:00
cantab.net!aia21
a8f5ab126d
Add security.c to build.
...
(Logical change 1.330)
2004-03-14 18:04:17 +00:00
cantab.net!aia21
3cfb4590eb
Provide new API functions: ntfs_bitmap_{set,clear}_bit().
...
(Logical change 1.327)
2004-03-12 17:25:04 +00:00
cantab.net!aia21
cb3b41894a
Modify meaning of ntfs_volume->nr_mft_records to be the number of
...
initialized mft records, not total mft records. This makes far more
sense and in fact reflects how nr_mft_records is being used in both
libntfs and the utilities.
(Logical change 1.326)
2004-03-12 15:50:52 +00:00
cantab.net!aia21
9b3652469c
Update with SuSE 9.1 beta 1 versions of GNU build system.
...
(Logical change 1.322)
2004-03-11 15:33:34 +00:00
cantab.net!aia21
3c429be664
Typo fixes (Ender)
...
(Logical change 1.317)
2004-03-10 22:03:54 +00:00
cantab.net!aia21
43d2c583cc
Auto merged
...
2004/03/09 14:38:49+00:00 cantab.net!aia21
Fix all occurences of printf with %ll length modifiers but 64 bit
arguments to typecast the arguments to (unsigned) long long to avoid
the warnings when compiling on 64 bit architectures.
(Logical change 1.306)
2004-03-09 14:47:34 +00:00
cantab.net!aia21
f5bb3c333f
Make the device fd in unix_io.c be stored in malloc()ed space pointed
...
to by the d_private pointer instead of inside the d_private pointer
itself. Makes the warnings on 64 bit architectures go away.
(Logical change 1.304)
2004-03-09 11:06:54 +00:00
cantab.net!aia21
402df7a21e
Auto merged
...
2004/02/20 14:44:47+00:00 cantab.net!aia21
Auto merged
2004/01/15 16:58:19+00:00 cantab.net!aia21
Auto merged
2004/01/07 15:48:41+00:00 cantab.net!aia21
Auto merged
2004/01/05 12:39:36+00:00 cantab.net!aia21
Auto merged
2003/12/05 18:09:00+00:00 cantab.net!aia21
Auto merged
2003/12/03 12:41:54+00:00 cantab.net!aia21
Auto merged
2003/11/04 13:06:21+00:00 cantab.net!aia21
Auto merged
2003/10/28 15:55:31+00:00 flatcap.org!ntfs
a few tweaks to help folding
(Logical change 1.299)
2004-03-06 17:42:28 +00:00
cantab.net!aia21
1564a5b72e
Auto merged
...
2004/01/15 16:58:19+00:00 cantab.net!aia21
Auto merged
2004/01/07 15:48:41+00:00 cantab.net!aia21
Auto merged
2003/11/04 13:06:21+00:00 cantab.net!aia21
Auto merged
2003/10/28 15:55:31+00:00 flatcap.org!ntfs
move comment to help folding
(Logical change 1.299)
2004-03-06 17:42:28 +00:00
cantab.net!aia21
001054baa9
Auto merged
...
2004/01/15 16:58:19+00:00 cantab.net!aia21
Auto merged
2003/10/28 15:55:31+00:00 flatcap.org!ntfs
typo
(Logical change 1.299)
2004-03-06 17:42:28 +00:00
cantab.net!aia21
3c69e66ff8
In attribute lookup code in libntfs/attrib.c, check type against
...
AT_UNUSED and not zero.
(Logical change 1.297)
2004-03-05 11:41:37 +00:00
cantab.net!aia21
607036db7d
Rename private to priv_data in ntfs_device_alloc() to avoid name
...
space clashes with C++. (Yuval Fledel, modified fix by me)
(Logical change 1.295)
2004-03-05 11:23:42 +00:00
cantab.net!aia21
a2e4ff7cb6
Rename INCLUDES to AM_CPPFLAGS.
...
(Logical change 1.294)
2004-03-05 11:04:40 +00:00
cantab.net!aia21
b87932368a
Minor update.
...
(Logical change 1.292)
2004-03-04 17:03:27 +00:00
cantab.net!aia21
3f12891c07
Remove compiler warning by rearranging code a bit in ntfs_mount().
...
(Logical change 1.287)
2004-02-27 16:44:10 +00:00
cantab.net!aia21
7239c1f42b
Adapt BLKGETSIZE64 definition to the one found in 2.6 kernels.
...
(Logical change 1.287)
2004-02-27 16:44:10 +00:00
cantab.net!aia21
4b12f1bfce
Add NO_NTFS_DEVICE_DEFAULT_IO_OPS.
...
(Logical change 1.283)
2004-02-26 11:41:48 +00:00
cantab.net!aia21
1f2547829c
Update for move of include files.
...
(Logical change 1.280)
2004-02-25 14:21:14 +00:00
cantab.net!aia21
441947337e
Include config.h before any other non-ntfs headers.
...
(Logical change 1.279)
2004-02-20 14:44:16 +00:00
cantab.net!aia21
a033e9dfa0
Add use of BLKGETSIZE64 and fix typos in debug output.
...
(Logical change 1.278)
2004-02-17 14:01:22 +00:00
omakaista.fi!szaka
5f20b21ef8
BLKGETSIZE ioctl uses unsigned long, not long for the size parameter.
...
Thus the maximum supported device is 2 TB on 32 bit platforms
instead of only 1 TB.
(Logical change 1.277)
2004-02-17 03:40:22 +00:00
cantab.net!aia21
26fbe3a101
Update for latest libtool/autoconf/automake.
...
(Logical change 1.273)
2004-01-26 09:53:57 +00:00
cantab.net!aia21
e14583bed7
Fix memory leek in error code path ntfs_attr_open(). Thanks to Christophe Grenier who used Valgrind to find it.
...
(Logical change 1.272)
2004-01-22 23:53:36 +00:00
cantab.net!aia21
b19215d1ed
Fix memory leaks in ntfs_readdir() and ntfs_inode_lookup_by_name(). Thanks to Christophe Grenier who used Valgrind to find them.
...
(Logical change 1.272)
2004-01-22 23:53:36 +00:00
cantab.net!aia21
6b87731c2a
Make decompression work in all test cases I tried.
...
(Logical change 1.268)
2004-01-21 12:30:18 +00:00