Jean-Pierre André
ab4c6a6141
Fixed tautological comparison
...
Wrong comparison in ntfscmp.c
2016-07-28 16:19:29 +02:00
Erik Larsson
e37258bf01
ntfscmp.c: Fix missing byteswap of little-endian attribute type value.
2016-01-28 09:11:55 +01:00
Erik Larsson
9cf04fd2cd
Fix incorrect usage of native/little-endian types, signed types, etc.
...
This is harmless with regard to code generation but if we turn on strict
type checking these type mismatches will result in errors.
2015-12-21 23:55:31 +01:00
Erik Larsson
f076fae75a
Fix endianness issues in log and terminal output.
...
This commit addresses issues where little-endian variables are emitted
raw to a log or output stream which is to be interpreted by the user.
Outputting data in non-native endianness can cause confusion for anybody
attempting to debug issues with a file system.
2015-12-21 23:31:09 +01:00
Jean-Pierre André
e9a2d29b33
Fixed memory leak while comparing attributes with bad sectors
...
When bad sectors were found when comparing attributes, the attribute
descriptors were not closed and freed (fixed by Rakesh Pandit)
2013-09-09 19:46:00 +02:00
Erik Larsson
7506d8b80b
Rename legacy MS_* flags for ntfs_mount with NTFS_MNT_* flags.
...
The MS_* flags originated from system constants. However the flags
passed to ntfs_mount were really unrelated to the system constants and
many new MS_* flags had to be introduced as different features were
added to the library. Those flags had no counterparts in any system
APIs, so using the same naming scheme is inappropriate.
Instead, let's namespace these flags similarly to what has already been
done in ntfsprogs/libntfs earlier. This avoids any possible conflicts
with system constants.
The values of the flags themselves are kept the same as earlier, so
backward compatibility is retained.
2012-11-07 16:29:48 +01:00
Jean-Pierre André
70490ce10e
Silenced warnings for no return
2010-12-21 15:51:08 +01:00
Jean-Pierre André
dc7317dbcc
Fixed included files in ntfscmp.c
2010-12-21 15:51:07 +01:00
Jean-Pierre André
1ca4a556b2
Silenced warnings for unmatching printf-type formats
2010-12-21 15:51:07 +01:00
Erik Larsson
6ff5d3f8a7
Replaced all occurrences of the libntfs mount flag NTFS_MNT_RDONLY with the corresponding libntfs-3g mount flag MS_RDONLY.
2010-12-02 22:36:58 +01:00
Erik Larsson
41e27e116a
Added 'misc.h' as an include to some source files because of missing ntfs_malloc / ntfs_calloc signatures.
2010-12-02 22:31:56 +01:00
Erik Larsson
713fbb390e
Merge commit 'v2_0_0' into libntfs-3g_port-v2_0_0
...
Conflicts:
configure.ac
include/ntfs/Makefile.am
include/ntfs/attrib.h
include/ntfs/bitmap.h
include/ntfs/collate.h
include/ntfs/debug.h
include/ntfs/dir.h
include/ntfs/endians.h
include/ntfs/index.h
include/ntfs/inode.h
include/ntfs/layout.h
include/ntfs/logfile.h
include/ntfs/logging.h
include/ntfs/mft.h
include/ntfs/ntfstime.h
include/ntfs/runlist.h
include/ntfs/support.h
include/ntfs/types.h
include/ntfs/unistr.h
include/ntfs/volume.h
libntfs/Makefile.am
libntfs/attrib.c
libntfs/attrlist.c
libntfs/bitmap.c
libntfs/bootsect.c
libntfs/collate.c
libntfs/compress.c
libntfs/debug.c
libntfs/device.c
libntfs/device_io.c
libntfs/dir.c
libntfs/index.c
libntfs/inode.c
libntfs/lcnalloc.c
libntfs/logfile.c
libntfs/logging.c
libntfs/mft.c
libntfs/mst.c
libntfs/runlist.c
libntfs/security.c
libntfs/unistr.c
libntfs/unix_io.c
libntfs/volume.c
libntfs/win32_io.c
ntfsprogs/Makefile.am
ntfsprogs/mkntfs.c
ntfsprogs/ntfscat.c
ntfsprogs/ntfsclone.c
ntfsprogs/ntfscmp.c
ntfsprogs/ntfscp.c
ntfsprogs/ntfsinfo.c
ntfsprogs/ntfsmount.8.in
ntfsprogs/ntfsmount.c
ntfsprogs/ntfsundelete.c
ntfsprogs/upcase.c
2010-12-02 22:31:21 +01:00
Erik Larsson
5b9b4c7e49
Removing all references to the libntfs library version until we have such functionality in libntfs-3g.
2010-12-02 16:38:16 +01:00
Erik Larsson
f03d683fa0
Commented out all references to 'version.h' (which doesn't exist in libntfs-3g) and added a stub implementation of ntfs_libntfs_version in utils.h to allow things to compile.
2010-12-02 15:58:14 +01:00
Yura Pakhuchiy
0d264b7d25
Introduce sparse endian annotations. Adopt library (also fix 2 real bugs) and progs (lots of bugs).
2007-06-08 13:47:57 +03:00
yura
10b22550cd
more sparse fixes
...
left only endianness and this stupid problems with s64
2006-12-12 19:00:00 +00:00
yura
cb27c9f616
* Rename MS_{RDONLY,NOATIME} to NTFS_MNT_{RDONLY,NOATIME}.
...
* Introduce NTFS_MNT_CASE_SENSITIVE.
2006-11-12 22:46:50 +00:00
uvman
ff55ecb513
Whitespace cleanup
2006-10-27 12:24:29 +00:00
uvman
acb04c0435
Remove unneeded padding. The compiler will pad if it wan't to.
2006-10-18 14:41:41 +00:00
szaka
6ae2cece3c
fine grained AT_INDEX_ALLOCATION comparison
2006-08-13 15:50:12 +00:00
szaka
c7a53338c0
Fix all incorrect getopt_long() return value usages.
2006-04-05 12:43:06 +00:00
szaka
45bccaf546
Implement special $BadClus:$Bad handling
2006-04-05 02:56:52 +00:00
szaka
6873bab2f1
Compare the full attribute headers for non-resident attributes
2006-04-05 02:55:43 +00:00
szaka
d533c39e36
Compare attribute headers as well. This nicely shows now that compression
...
and allocation sizes aren't set correctly for sparse files in libntfs.
2006-02-19 12:50:54 +00:00
szaka
f1a50e9bd8
Removed old logging macro usage
2005-11-26 17:58:17 +00:00
flatcap
8a584700c5
whitespace fixes - no code changes
2005-10-26 22:54:57 +00:00
flatcap
f4e427e91a
implement logging in libntfs
...
fix whitespace
fix build problems
tidy source code
and more...
2005-10-21 18:05:13 +00:00
antona
da1495a11d
Fix compilation on OSX in ntfscmp.c where stderr = stdout is not legal (but
...
happens to work on Linux) to do portable low-level file descriptor mangling.
2005-10-15 21:48:37 +00:00
flatcap
42de4cf905
tidy up some __attribute__ usage
2005-10-12 11:52:40 +00:00
flatcap
e44bb7afb7
fix build bug - wouldn't build without DEBUG defined
2005-10-11 23:09:07 +00:00
szaka
9e589a7bce
Fix some corner cases and all memory leaks; handle corrupt NTFS more gracefully
2005-10-09 12:53:44 +00:00
antona
0c293d0407
- Add API (actually renamed from what Rich/FlatCap did):
...
volume.[hc]::ntfs_libntfs_version() which returns a pointer to a
static const string of the libntfs verion, i.e. at the moment this is
"8.0.0". This required moving the version specifications from
libntfs/Makefile.am to configure.ac. This should hopefully have the
sideeffect that I will remember to increment it when incrementing the
ntfsprogs version number when making a release given the two are
right under one another. (Anton)
- Change ALL utilities to display the libntfs version they are running
on. This should make debugging easier in the case that people are
running mismatched utilities/library. (Anton)
2005-10-07 14:10:56 +00:00
uvman
62579b84d4
compiler warnings fixes.
2005-10-04 20:36:42 +00:00
antona
813354f56d
Add missing options to mkntfs' getopt() parsing string. (What a silly bug!)
...
Fix a compile warning in ntfscmp.
2005-09-30 19:24:13 +00:00
szaka
a0338ab9b2
Fix uninteded output and typo
2005-09-25 19:35:56 +00:00
antona
2a104d8eda
Megapatch!!! Check evecrything!!! I probably broke everything!!!
2005-09-24 22:54:55 +00:00
szaka
605726b340
ntfscmp: new util for development, debugging, testing, etc.
2005-08-25 20:42:54 +00:00