Commit Graph

61 Commits

Author SHA1 Message Date
yura
28a2b1f2b0 prepare to Szaka's code merge: remove not working Rich's index code 2006-07-17 11:49:52 +00:00
antona
8bf1dc2232 Update my copyright for the files changed in the last commits. 2006-03-27 22:49:50 +00:00
antona
f4344d6261 Change utils_parse_size() to use a base of 0 instead of 10 when
calling strtoll().  This automagically allows specification of
numbers in hex (and octal if anyone is crazy enough to use that) in
addition to decimal numbers on the command line options to most if
not all utilities.  (Anton)
2006-03-27 22:39:38 +00:00
cha0smaster
eba747ac93 * Add NTFS_DEV_LIST define. Use it everywhere instead of linux-ntfs-dev@lists.sf.net.
* Replace all ntfs_log_trace where we ask to send mail to us with ntfs_log_error
2005-12-18 16:27:20 +00:00
cha0smaster
01787c8c54 update site 2005-12-01 20:44:18 +00:00
flatcap
83b9eddfc9 provide some meaningful function descriptions 2005-11-02 17:34:08 +00:00
szaka
ae42186cf5 utils_inode_get_name(): fix return value in case of success (the function
always returned with failure beforehand)
2005-10-30 22:41:20 +00:00
cha0smaster
1ce16eddb7 minor cleanup 2005-10-27 20:42:10 +00:00
szaka
8b1263c217 Working with regular files needs no longer --force, except for mkntfs 2005-10-27 18:45:45 +00:00
flatcap
5bd198d66e logging renames
utils only uses stderr, now
whitespace fixes
2005-10-26 20:48:00 +00:00
szaka
746dff1a24 NTFS_INDEX_ prefix $I30, $SII, $SDH, $O and $Q indexes 2005-10-23 18:35:58 +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
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
8fa46025d5 trailing whitespace 2005-10-16 19:21:47 +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
ecc920583e revert utils.c revision 1.46, because it breaks ntfsmount output 2005-10-04 21:42:07 +00:00
cha0smaster
f292546aed EPERM is returned if windows was hibernated 2005-10-01 00:42:11 +00:00
szaka
39403911a4 Clarify --force usage 2005-09-30 19:51:12 +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
antona
2a104d8eda Megapatch!!! Check evecrything!!! I probably broke everything!!! 2005-09-24 22:54:55 +00:00
antona
ea0202921d Clarify the logfile check/hibernation warning. (Yuval) 2005-09-10 07:55:58 +00:00
szaka
dc284e1e10 Fix gigaleak in ntfscluster, utils.c::mft_next_record() 2005-08-21 09:46:29 +00:00
flatcap
b312a44483 change utils_dump_mem to take a void ptr
update the comments a bit
2005-08-16 13:25:15 +00:00
flatcap
a1ef87e393 tidy up error message 2005-08-14 15:56:31 +00:00
cha0smaster
4088de1017 Change errno and print more verbose message in case if logfile check failed. 2005-07-29 14:44:23 +00:00
cha0smaster
b39a2a401f - Move ntfs2utc and utc2ntfs from utils.[ch] to timeconv.h.
- Add [acm]time fields to struct ntfs_inode and set them during ntfs_inode_open.  Update ntfsmount to use them.
- Bump version, update autoscripts.
2005-07-20 19:06:28 +00:00
cha0smaster
c8cb65fcd9 Make @outs_len to be 0 when @**outs NULL in ntfs_ucstombs calls. Previous code
it correct since @outs_len is ingored when @**outs == NULL, but may confuse
because it was equal to @ins_len what is incorrect (eg. international utf8
characters).
2005-07-19 23:13:26 +00:00
flatcap
60f27a9a8f prevent a likely error from upsetting the info collection
fix a few error messages
2005-07-13 00:50:52 +00:00
antona
ca873f0474 Eeek. Someone did a commit just as I was about to commit so the commit
message was lost!  )-:

Now again...

Monster commit from me due to lack of time.  Sorry about that.

Features:

- Version to 1.10.0
- Update readme, etc ready for release.
- Update build system to suse linux 9.3 versions.
- Fix warnings appearing for me on suse 9.3 with --enable-warnings --enable-debug.
- Set attr_name to NULL in libntfs/attrib.c::__ntfs_attr_init() and fixup all
  callers apropriately.  Thanks to FlatCap/Rich for pointing this out.
- Determine endianness in ./configure and use that in addition to existing
  mechanisms for determining endianness.
2005-06-20 14:31:30 +00:00
cha0smaster
e323ed6a03 Move utils_pathname_to_inode from to library (dir.c), adapt it for library, rename it to ntfs_pathname_to_inode, update all users. 2005-06-12 18:12:55 +00:00
szaka
954b728dba - Rephrase ntfs_bugs: don't imply that tools have lots of bugs.
That's not true and it unnecessary worries people (originally the
ntfs_bugs idea was taken from the GNU coreutils that _DO_ have often
bugs but they aren't so critical concerning user's data integrity)
2005-06-12 09:24:11 +00:00
cantab.net!aia21
b82469ba50 Remove vol->nr_mft_records and update all users. (Anton)
(Logical change 1.549)
2004-09-13 10:28:54 +00:00
flatcap.org!ntfs
2adcb49e33 jazzed up dump mem
(Logical change 1.439)
2004-06-24 13:08:28 +00:00
flatcap.org!ntfs
ef75cd263f make output human-readable
(Logical change 1.401)
2004-05-29 14:21:50 +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
71c1fe3af8 Update
(Logical change 1.374)
2004-04-16 20:54:34 +00:00
cantab.net!aia21
7e2b0aad08 Move declaration of variable to beginning of block. Thanks to Alexei Alexandrov for the fix.
(Logical change 1.350)
2004-03-30 14:00:35 +00:00
cantab.net!aia21
6dea839252 Auto merged
2004/03/09 14:38:51+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
c4105e54e7 Auto merged
2004/01/07 15:48:41+00:00 cantab.net!aia21
Auto merged

2004/01/06 14:43:22+00:00 cantab.net!aia21
Auto merged

2003/11/19 00:40:18+00:00 flatcap.org!ntfs
Auto merged

2003/10/29 18:13:30+00:00 flatcap.org!ntfs
add dump_mem
remove junk that wasn't being used

(Logical change 1.299)
2004-03-06 17:42:28 +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
3244f17522 Enable lots of compiler warnings and fix warning from libntfs.
(Logical change 1.257)
2004-01-07 15:03:17 +00:00
cantab.net!aia21
3fea49b48c - Compile fixes for DJGPP. (Chrisophe Grenier, me)
- Add compatibility for building on FreeBSD. (Christophe Grenier)

(Logical change 1.249)
2004-01-06 14:31:21 +00:00
cantab.net!aia21
0803017bb6 Fix warnings.
(Logical change 1.235)
2003-11-18 18:00:31 +00:00
cantab.net!aia21
4ddd73798c Fix what must be a logic inverting typo...
(Logical change 1.215)
2003-10-27 15:17:17 +00:00
flatcap.org!ntfs
50df3a4189 adding errnos for bad calling
(Logical change 1.214)
2003-10-26 12:40:40 +00:00
flatcap.org!ntfs
ecbe65ac6b first draft of mft search contexts
(Logical change 1.199)
2003-10-11 15:31:25 +00:00
flatcap.org!ntfs
904b95f03d added utils_pathname_to_inode based on Lode's version from ntfsls
in __metadata
  the root directory is definitely metadata now (rationale: stuff the user cannot delete)
  check for extent inodes of metadata files

(Logical change 1.192)
2003-10-10 21:42:48 +00:00
flatcap.org!ntfs
ecb1673d0e Auto merged
2003/09/28 14:57:05+01:00 flatcap.org!ntfs
add a helper to determine if an inode represents metadata

(Logical change 1.189)
2003-10-06 18:52:00 +00:00
cantab.net!aia21
b8872ed7ad FIXME: utils_valid_device() doesn't work on Cygwin. For now just don't do it.
(Logical change 1.188)
2003-10-06 11:38:25 +00:00