Jean-Pierre André
3cc22ba329
Moved general declarations from ntfsrecover.h to logfile.h
...
The declarations related to the log file structure are now grouped
in logfile.h, those specific to the recovery process are kept in
ntfsrecover.h
2016-04-06 11:03:31 +02:00
Jean-Pierre André
9693dd2fc1
Added a usn field to RESTART_PAGE_HEADER
...
Prepare merging ntfsrecover.h into logfile.h by adding a usn field to
RESTART_PAGE_HEADER. As this changes the record size, ignore the new
field in existing code.
2016-04-06 10:58:25 +02:00
Erik Larsson
8daa92717e
ntfsdump_logfile.c: Fix use of wrong byteswapping macro for le16 field.
2016-01-27 15:26:51 +01:00
Erik Larsson
0741f54b2e
ntfsdump_logfile.c: Fix incorrectly parenthesized expression.
...
On big-endian systems the result of the '!=' operation would be
endian-swapped rather than the first argument (which must have been the
intended action).
2016-01-27 15:24:52 +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
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
Erik Larsson
bcdc76f12d
Merge remote branch 'linux-ntfs/libntfs-3g_port-v2_0_0' into PERMISSION_HANDLING_BRANCH
...
Conflicts:
.cvsignore
AUTHORS
CREDITS
ChangeLog
NEWS
README
TODO.libntfs
autogen.sh
configure.ac
include/ntfs/Makefile.am
libntfs-3g/misc.c
libntfs/Makefile.am
libntfs/gnome-vfs-method.c
libntfs/gnome-vfs-module.c
ntfsprogs.spec.in
ntfsprogs/.cvsignore
ntfsprogs/mkntfs.c
ntfsprogs/ntfscat.8.in
ntfsprogs/ntfsclone.c
ntfsprogs/ntfscp.8.in
ntfsprogs/ntfsinfo.c
ntfsprogs/ntfsprogs.8.in
ntfsprogs/ntfsresize.c
ntfsprogs/ntfsrm.c
ntfsprogs/ntfsundelete.h
ntfsprogs/upcase.c
ntfsprogs/utils.c
test/Makefile.am
2010-12-17 09:04:01 +01:00
Erik Larsson
16dbcbec0c
Restored 'local' includes for all the ntfsprogs instead of using system includes (e.g. #include "yada.h" instead of #include <ntfs-3g/yada.h>).
2010-12-16 09:59:42 +01:00
Erik Larsson
3ddcb40f23
ntfsdump_logfile.c: Removed unnecessary reference to unsupported mount option NTFS_MNT_FORENSIC. (The mount option is pointless as we are mounting the volume in read-only mode anyway.)
2010-12-02 22:37:23 +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
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
196f7f6461
Commented out all references to 'version.h' in the 'extra' utilities until libntfs-3g supports such functionality.
2010-12-02 16:49:56 +01:00
Erik Larsson
07bc8d9d17
Redirected all libntfs includes in the 'extra' utilities to libntfs-3g.
2010-12-02 16:47:06 +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
aia21
5302d23f7b
- Empty the journal at mount time. (Anton)
...
- Set the volume dirty bit at mount time (if it is not set already and
clear it again at umount time but only if it was not set to start
with. (Anton)
2006-11-28 10:09:56 +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
flatcap
abf0cfba5d
use new logging
2005-11-20 14:15:33 +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
flatcap
42de4cf905
tidy up some __attribute__ usage
2005-10-12 11:52:40 +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
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
flatcap
7a142ef54c
got bored. don't read the diffs.
2005-07-06 22:47:01 +00:00
antona
39b759ee99
Fix compiler warnings under cygwin.
2005-06-21 09:57:22 +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
(none)!yura
1be3d9fe66
Update logfile.h to be sync with kernel. Update ntfsdump_logfile accordingly.
...
(Logical change 1.656)
2005-01-13 15:55:15 +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
!uv
5a4b6c9eaa
Refactor ntfsdump_logfile.c: split main() into multiple functions.
...
(Logical change 1.513)
2004-08-20 17:50:58 +00:00
!uv
7a64dc8159
Warning fixes: change variable to unsigned.
...
(Logical change 1.508)
2004-08-20 12:30:34 +00:00
!uv
912044e09a
printf format fixes.
...
(Logical change 1.507)
2004-08-20 12:18:22 +00:00
!uv
c3f683c497
Allow better error checking.
...
(Logical change 1.504)
2004-08-20 11:58:24 +00:00
cantab.net!aia21
dd001233ff
Minor off by one bug fix.
...
(Logical change 1.390)
2004-05-11 09:21:24 +00:00
cantab.net!aia21
f90c2cd5b9
Fix some compiler warnings. (Yuval)
...
(Logical change 1.379)
2004-04-23 10:12:49 +00:00
cantab.net!aia21
80cb606d36
Big update. (Not finished yet.)
...
(Logical change 1.355)
2004-04-05 08:42:10 +00:00
cantab.net!aia21
527d7780cb
Make it compile...
...
(Logical change 1.353)
2004-03-31 15:01:05 +00:00
cantab.net!aia21
a111528d7c
Add ability to use a file as the logfile source rather than a ntfs volume
...
containing device, i.e. you can now grab a copy of $LogFile and use
ntfsdump_logfile -f mylogfilecopy.
(Logical change 1.352)
2004-03-31 14:47:08 +00:00
cantab.net!aia21
d224481da9
Make it compile with changes in logfile.h.
...
(Logical change 1.348)
2004-03-26 14:42:21 +00:00
cantab.net!aia21
61fe186d21
Use more libntfs APIs and other cleanups.
...
(Logical change 1.346)
2004-03-24 17:38:31 +00:00
cantab.net!aia21
9bb30a0601
Ooops, forgot to test make extra when changing ntfs_get_attribute_value().
...
(Logical change 1.334)
2004-03-15 11:36:21 +00:00
cantab.net!aia21
ddeee65b8d
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
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
c9076ef627
- Apply patch from Szaka to fix all %L to %ll.
...
- Fix remaining %L ti %ll (compress.c).
- Run ./autogen.sh on SuSE 9.0.
(Logical change 1.263)
2004-01-15 16:57:10 +00:00
cantab.net!aia21
05bf546cb0
Now file_size is signed.
...
(Logical change 1.223)
2003-11-04 13:04:07 +00:00
cantab.net!aia21
7af52becdd
common functions moved from diks_io.h to device.h
...
(Logical change 1.188)
2003-10-06 11:38:25 +00:00
flatcap.org!flatcap
ad1e482a7b
minor layout tweaks
...
(Logical change 1.105)
2003-01-19 22:01:18 +00:00
cantab.net!aia21
69306cc493
new api renames to ntfs_object_action
...
(Logical change 1.36)
2002-12-10 11:53:41 +00:00
cantab.net!aia21
9e79b61437
start of renames to ntfs_object_action() format
...
(Logical change 1.34)
2002-12-09 09:42:12 +00:00
flatcap.org!flatcap
d789fd8385
tidy whitespace
...
(Logical change 1.27)
2002-12-01 18:54:13 +00:00
cantab.net!aia21
cd29ef7745
mvdir
...
(Logical change 1.23)
2002-11-29 12:16:35 +00:00