Erik Larsson
7b3700ed5e
Replace all le32 "and" calculations with le32_and(...).
2016-01-28 08:28:51 +01:00
Erik Larsson
2b4c3a618c
Replace all le16 "and" calculations with le16_and(...).
2016-01-28 08:28:50 +01:00
Erik Larsson
9f5ad52e5f
Replace all le32 non-zero "and" test conditions with !le32_andz(...).
2016-01-28 08:28:48 +01:00
Erik Larsson
35c72761c7
Replace all le16 non-zero "and" test conditions with !le16_andz(...).
2016-01-28 08:28:46 +01:00
Erik Larsson
5097bb9ea3
Replace all sle64 zero test conditions with "sle64_cmpz(...)".
2016-01-28 08:28:44 +01:00
Erik Larsson
17a2c5f58e
Replace all le64 non-zero test conditions with "!le64_cmpz(...)".
2016-01-28 08:28:41 +01:00
Erik Larsson
18990412fa
Replace all le32 non-zero test conditions with "!le32_cmpz(...)".
2016-01-28 08:28:39 +01:00
Erik Larsson
e366bef954
Replace all le16 zero test conditions with "le16_cmpz(...)".
2016-01-28 08:28:38 +01:00
Erik Larsson
90697bb5ab
Replace all le16 non-zero test conditions with "!le16_cmpz(...)".
2016-01-28 08:28:37 +01:00
Erik Larsson
011a9e9e5e
Replace all le32 usage of the '==' operation with "le32_eq(...)".
2016-01-28 08:28:26 +01:00
Jean-Pierre André
c0287870e1
Returned success from ntfsprogs utilities with options --version and --help
...
The ntfsprogs used to return failure when option --version or --help
was used, and this has triggered complains from distribution packagers
who use these options in packaging scripts.
With this patch, success is returned (same behavior as gcc).
2014-04-23 10:13:27 +02:00
Jean-Pierre André
ae459dd7b3
Implemented an extended attribute to get/set EAs
...
The new extended attribute "system.ntfs_ea" can now be used to get or
set the set of EAs of a file or directory.
2014-04-12 09:22:17 +02:00
Jean-Pierre André
d2daead832
Updated copyright claims
2014-02-16 18:25:09 +01:00
Jean-Pierre André
5e18e97d0b
Silenced warnings by gcc >= 4.8 about aliasing
...
Added intermediate variables to avoid warnings by gcc >= 4.8
2013-09-09 15:34:14 +02:00
Jean-Pierre André
2e2550026e
Avoided displaying in non-verbose mode information which is not computed
...
The summary of 'runcount.runs' and 'runcount.fragments' was displayed in
non-verbose mode. However these variables are not updated in non-verbose
mode, so they would always be 0.
We now only display this summary in verbose mode.
2013-02-09 12:08:58 +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
7c600754dd
ntfsinfo.c: Fix printing all the flags in hex in 'ntfs_dump_flags'.
...
The variable 'flags' was modified along the way and did not contain the
original flags at the end as assumed by the last printout. Fixed by
storing the original state of the flags in a temporary const variable.
2012-08-27 21:26:57 +02:00
Jean-Pierre André
9ae4165ee8
Added allocation data to output of "ntfsinfo -m"
...
Volume state and the level of allocation were added to the output
of "ntfsinfo -m", they are useful to identify the state of a volume.
2012-06-18 12:19:27 +02:00
Jean-Pierre André
0aa68c128d
output the numbers of runs and fragments in ntfsinfo
...
It is difficult to identify whether a file from a user complaining about
bad throughput is over-fragmented, so get the information from ntfsinfo.
2012-01-23 17:20:20 +01:00
Jean-Pierre André
b76883dc84
major : Fixed computation of index block size (Anton Altaparmakov)
...
When the cluster size is bigger than the index block size, the index
block size unit is 512 (not the sector size) instead of the cluster size.
The partitions formatted by mkntfs and used by ntfs-3g were not
interoperable with Windows when the cluster size is bigger than 4K
and the sector size is not 512.
2011-11-04 11:01:11 +01:00
Jean-Pierre André
936ca1193f
Displayed times in UTC in ntfsinfo
2010-12-21 15:51:07 +01:00
Jean-Pierre André
8f4aa0883b
Strengthened variable types
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
c5ecb91ffe
Merge remote branch 'linux-ntfs/libntfs-3g_port-edge' into ntfsprogs_merge.edge
...
Conflicts:
ChangeLog
libntfs/libntfs.8.in
2010-12-19 15:20:24 +01:00
Erik Larsson
ef0190cbd7
Merge branch 'master' into libntfs-3g_port-edge
...
Conflicts:
configure.ac
libntfs/bootsect.c
libntfs/logging.c
ntfsprogs/ntfsmount.c
2010-12-19 09:06:45 +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
18789cdeaa
Replaced all occurrences of the libntfs mount flag NTFS_MNT_FORCE with the libntfs-3g mount flag MS_RECOVER.
...
Note: The NTFS_MNT_FORCE, in addition to what MS_RECOVER does, also bypasses the check for the 'dirty' bit in libntfs' ntfs_mount.
However, this check does not exist in libntfs-3g (libntfs-3g will not check or change the dirty bit, being confident that it can handle volumes marked as 'dirty'), so in essence the same behaviour is achieved with MS_RECOVER.
2010-12-02 22:37:06 +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
4a641c85e0
Adapted code to latest libntfs-3g, based on PERMISSION_HANDLING_BRANCH. Now requires libntfs-3g version 2010.5.22 minimum.
2010-12-02 16:35:27 +01:00
Erik Larsson
058e47afbd
Updated references to members of INDEX_HEADER and INDEX_ENTRY that have been renamed in libntfs-3g.
...
INDEX_HEADER: flags -> ih_flags
INDEX_ENTRY: flags -> ie_flags
2010-12-02 16:10:18 +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
Erik Larsson
1860eff1da
Updated all includes in the basic ntfsprogs utilities for libntfs-3g.
2010-12-02 15:57:58 +01:00
Yura Pakhuchiy
5a381d5a9e
Remove some legacy logging traces
2007-10-19 21:15:23 +03:00
Anton Altaparmakov
e0e71a3776
Fix grammar in NEWS and add a few useful extra outputs about the
...
attribute list attribute in ntfsinfo.c. (Anton)
2007-09-28 21:07:15 +01:00
Yura Pakhuchiy
37476cf609
Introduce NTFS_MNT_FORCE instead of third parameter of utils_mount_volume
2007-09-15 18:12:32 +03:00
Yura Pakhuchiy
6df32ed1ab
ntfsinfo: Dump content of LOGGED_UTILITY_STREAM in hex in verbose mode
2007-08-22 19:30:12 +03:00
Yura Pakhuchiy
4b58df6817
New API: ntfs_attr_get_name
...
Add new API ntfs_attr_get_name - returns pointer to unicode name of attribute.
TODO: I believe we have several such local helpers in ntfsprogs and libntfs.
Find and replace them with this one.
2007-08-22 19:28:44 +03:00
Yura Pakhuchiy
d059090386
info: nice LCN dumping
2007-06-08 13:48:28 +03: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
2e44b6ca7c
fix some sparse warnings
...
btw, it looks like sparse loses it head when it see something like:
void foo(s64 *bar)
{
...
}
...
{
s64 baz;
foo(&baz);
...
}
2006-12-12 15:44:52 +00: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
3cd59df400
bit more nice error messages
2006-11-25 18:38:47 +00:00
yura
cb27c9f616
* Rename MS_{RDONLY,NOATIME} to NTFS_MNT_{RDONLY,NOATIME}.
...
2006-11-12 22:46:50 +00:00
yura
116a467dc0
* fix ntfsmount build
...
2006-11-05 14:42:46 +00:00
yura
1b1a135bbd
one more endian bug in ntfsinfo
2006-10-30 23:23:40 +00:00
uvman
87d87073c7
The periodic 'int is not neccessarily 32bit' fixes.
2006-10-28 23:45:22 +00:00