Commit Graph

2613 Commits

Author SHA1 Message Date
szaka
8f03f5a6ca Optionally create NTFS version 3.0 (W2K) or 3.1 (XP, W2K3, Vista).
Contributed by Erik Sornes. No side-effect for v1.2 NTFS which is still
the default. The implementation needs some minor work: see e.g. the chkdsk
messages and the result of ntfscmp'ing the two images.
2005-10-19 22:04:46 +00:00
antona
a7fd01e543 $EA can be resident and non-resident. Fix libntfs/attrib.c::
ntfs_attr_can_be_resident() apropriately.  (Anton)
2005-10-19 08:13:44 +00:00
cha0smaster
fe408380c7 typo fix 2005-10-17 20:21:22 +00:00
flatcap
ea2c4c6c61 fix build warning - duplicate definition 2005-10-17 14:07:28 +00:00
flatcap
2a8d602d9f ntfsrm has been split up and merged into libntfs.
currently it's #ifdef'd out.
tree.c - code for handling directory trees
rich.c - a few helpers without a home (this file will go away soon)
Note: ntfsrm isn't in the build any more (you need to ./configure --enable-rich; make extras).  When rm is less intrusive, again, I'll put it back in the build.
2005-10-16 23:33:03 +00:00
flatcap
139f6c6603 prevent a few name clashes with the new rm code 2005-10-16 22:37:48 +00:00
flatcap
bde3e0063b centralised logging system 2005-10-16 21:57:00 +00:00
flatcap
2436151e59 fix warning (uninitialised variable) 2005-10-16 21:37:12 +00:00
flatcap
8fa46025d5 trailing whitespace 2005-10-16 19:21:47 +00:00
szaka
27a9764d3a Check and report bad sectors before cluster allocation check because
chkdsk doesn't always fix $Bitmap with bad sectors
2005-10-16 18:50:56 +00:00
szaka
48feb16fa9 Factor out cluster allocation check 2005-10-16 11:12:08 +00:00
antona
a570ee7b37 Fix endiannes bug in libntfs/index.c. (Anton) 2005-10-16 00:07:14 +00:00
antona
85c866fcea More endianness fixes! 2005-10-15 23:51:13 +00:00
antona
6803fa4b76 Fix endianness bug in ntfsinfo. (Anton) 2005-10-15 23:44:57 +00:00
antona
1d4958d38c Fix endianness bug (le16 instead of le32 when accessing mft record
bytes_in_use) in volume.c::ntfs_volume_write_flags() and
ntfsfix.c::OLD_ntfs_volume_set_flags().  (Anton)
2005-10-15 23:13:49 +00:00
antona
3adf923766 Fix compilation and warnings in ntfsdecrypt.c on OSX/gcc4.0.1. The
compilation failure was because we use strnlen() which is gnu
specific and not present on my current version of OSX so ntfsdecrypt
now provides own version if it is not present on system.  (Anton)
2005-10-15 22:30:20 +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
antona
f5961c075e - Fix compilation on OSX in ntfsclone.c where stderr = stdout
is not legal (but happens to work on Linux) to do proper
  low-level file descriptor mangling which is portable.  (Anton)
- Add test/runlist-data to EXTRA_DIST so it gets included in the
  distribution otherwise make test fails on released sources.  Solution
  is not perfect as it also adds the test/runlist-data/CVS directory
  but it will do at least for me.  (Anton)
2005-10-15 21:44:17 +00:00
antona
b9422552da Fix compilation on OSX in ntfsresize.c where stderr = stdout is not
legal (but happens to work on Linux) to do proper low-level file
descriptor mangling which is portable.  (Anton)
2005-10-15 21:26:16 +00:00
antona
e46d4e8959 Fix silly bug introduced in 1.12.0 which breaks ntfsfix (and others
possibly) when calling ntfs_attr_lookup() with AT_UNNAMED name and
no ntfs inode in the search context.  (Anton)
2005-10-15 20:52:41 +00:00
antona
a3ab2bc6a0 Fix stupidity. 2005-10-15 11:34:26 +00:00
antona
bc4bee7b2f Fix bogus le16_to_cpu() which shouldbe le32_to_cpu() when accessing
the attribute list entry attribute type in some places in
libntfs/attrib.c.  (Anton)
2005-10-15 11:33:42 +00:00
antona
9c062a8531 Update changelog 2005-10-15 11:16:32 +00:00
antona
01a929556c Re-add getgccver but a completely different version. This is to cope with all
OS I tried it on (Solaris, OSX, Linux, NetBSD, FreeBSD) and various gcc flavours
including weird ones like "3.5-blah".
2005-10-15 11:14:43 +00:00
antona
be4c70b45e Argh, found one compiler that gives a minor version including text so cut it
off the versions.
2005-10-15 10:16:26 +00:00
antona
c0b2d7dab2 Remove getgccver script and just use -dumpversion option to get the version
directly inside configure.ac.
2005-10-15 09:53:36 +00:00
antona
b67fb5e78f Add a comment about the valid size for $EFS attribute value. 2005-10-15 09:15:46 +00:00
antona
62f9636080 Temporarily disable use of the legal ansi character checking in
libntfs/unistr.c::ntfs_names_collate() pending a proper fix at some
point.  (Anton)
2005-10-13 08:26:02 +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
antona
f0ff7e83e4 Forgot to update the release date! 2005-10-10 13:04:33 +00:00
antona
a40d7e55d6 - Revert patch from Christophe applied by Yura.
- Provide a realpath() alternative for systems which do not have it.
  This is _much_ nicer as it avoids the horrible #ifdef gunk in the code...
2005-10-10 12:55:11 +00:00
cha0smaster
bf91f7c0fc Apply patch from Christophe. 2005-10-10 11:04:56 +00:00
cha0smaster
b1c1348d37 fix build under cygwin if FSCTL_GET_NTFS_VOLUME_DATA is not defined 2005-10-09 13:35:15 +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
cc57c76cd5 Move mount.ntfs-fuse and mkfs.ntfs to be symlinks instead of
hardlinks and move both to /sbin rather than prefix/sbin.  Note we
still obey $destdir so building packages works as well as installing
into alternate chroot / other system still works.
2005-10-07 23:01:23 +00:00
antona
ff86e350bc Update changelog and bump version number on ntfsprogs and libntfs appropriately.
NOTE: If anyone makes libntfs changes that modify the interfaces, please update
the libntfs version appropriately before the next release (see configure.ac for
explanation of how to update the version).
2005-10-07 16:00:42 +00:00
antona
4c3687fc64 Fix hardcoded location for hardlink on uninstall. (Anton, Szaka) 2005-10-07 15:52:29 +00:00
cha0smaster
fdd8dbd819 fix spec too 2005-10-07 15:18:47 +00:00
cha0smaster
8854585270 oops, fix previous fix 2005-10-07 15:15:13 +00:00
cha0smaster
093431f2f7 revert 1.49, mount.ntfs-fuse should be in /sbin, not /usr/sbin or /usr/local/sbin 2005-10-07 15:13:10 +00:00
antona
0377e979d0 Various fixes before release. 2005-10-07 15:02:15 +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
cha0smaster
3814896a5b fix compiler warning 2005-10-07 13:26:44 +00:00
antona
3d46df6b4a Prepare for 1.12.0 release. 2005-10-07 12:52:52 +00:00
antona
5f6a0988e3 Fix compiler warning. 2005-10-07 12:47:03 +00:00
antona
9b1a8920fb Fix "make test". 2005-10-07 12:41:34 +00:00
antona
31ee9de6ac Fix stupid bug in mkntfs which caused it to fail even though only the
backup boot sector could not be written because a 2.4 kernel is used
and the partition has an odd number of sectors.  (Anton)
2005-10-07 12:21:32 +00:00
szaka
ae276bbfe1 Fix 'make install' and 'make uninstall' if FUSE isn't enabled 2005-10-05 20:11:23 +00:00
uvman
81d7457fe8 Add all reasonable warning flags supported by GCC 3.2+ to --enable-warnings. 2005-10-05 19:13:54 +00:00