Commit Graph

933 Commits (f599394450d42ec2d7923c50e302dfaa95ff194e)

Author SHA1 Message Date
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
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 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
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 4c3687fc64 Fix hardcoded location for hardlink on uninstall. (Anton, Szaka) 2005-10-07 15:52:29 +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 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
antona 95ab175a92 revert manual to say that the volume is marked dirty. Anton 2005-10-05 13:32:39 +00:00
antona aa7e3cc98e return volume set dirty functionality to ntfsfix on Yura's request. Anton 2005-10-05 13:01:10 +00:00
cha0smaster ce52b49c36 Minor man pages updates 2005-10-05 11:14:30 +00:00
szaka 4f74c30984 Revert to the original output but by also fixing the "format string" warnings 2005-10-04 22:03:13 +00:00
cha0smaster ecc920583e revert utils.c revision 1.46, because it breaks ntfsmount output 2005-10-04 21:42:07 +00:00
uvman 62579b84d4 compiler warnings fixes. 2005-10-04 20:36:42 +00:00
cha0smaster fa46de6b6f accept noauto mount option for better support mounting via fstab 2005-10-04 20:00:22 +00:00
cha0smaster cc9bc93221 * change interface: ntfsmount device mnt_point -o opts
* hardlink ntfsmount to /sbin/mount.ntfs-fuse, thus volume can be mounted via fstab without any helpers
* update man page for ntfsmount
2005-10-03 21:07:24 +00:00
cha0smaster 96f31a07ed Add locale options to ntfsmount. 2005-10-03 19:48:54 +00:00
cha0smaster f292546aed EPERM is returned if windows was hibernated 2005-10-01 00:42:11 +00:00
szaka 54891f3112 Emphasize Windows needs to be rebooted twice after chkdsk /f 2005-09-30 20:29:58 +00:00
szaka 39403911a4 Clarify --force usage 2005-09-30 19:51:12 +00:00
szaka d07aab11f5 Update unclean_journal_msg 2005-09-30 19:46:45 +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
flatcap 519d68eb53 remove some junk 2005-09-30 16:58:20 +00:00
szaka ab2ad80ae7 Accept incorrect $Bitmap size if it covers the entire volume 2005-09-29 23:30:15 +00:00
flatcap 9ee916bbd0 need config.h for the autoconf #ifdefs 2005-09-29 12:50:39 +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 2aa1cfe3d9 fix a build warning 2005-09-27 15:25:19 +00:00
szaka 431258997d Fix saving by sectors during --rescue 2005-09-25 21:42:47 +00:00
szaka a0338ab9b2 Fix uninteded output and typo 2005-09-25 19:35:56 +00:00
szaka 660b44f3ed Fix --enable-really-statici: mkntfs redefined ntfs_attr_put_search_ctx() 2005-09-25 19:22:11 +00:00
cha0smaster 8afb8a0daa minor cleanup 2005-09-25 11:42:26 +00:00
szaka 44e60c37c4 Fix 'make extra' (ntfsmove) compilation 2005-09-24 23:46:54 +00:00
antona 2a104d8eda Megapatch!!! Check evecrything!!! I probably broke everything!!! 2005-09-24 22:54:55 +00:00
szaka 99e18269b7 Hint user the --rescue option if they have bad sectors 2005-09-24 21:36:51 +00:00
szaka eb51c61ba4 Emphasize that disk partitioning must use sector as the unit instead of
cylinder to avoid shifting of the partition
2005-09-24 20:12:36 +00:00
cha0smaster 53ffb79352 fix potential bug 2005-09-24 17:06:35 +00:00
cha0smaster cba53f8895 * ntfsmount: implement rename
* update man page for ntfsmount
2005-09-24 16:19:29 +00:00
cha0smaster 464eab4178 add ntfs_link, update ntfsmount to use it 2005-09-24 15:20:49 +00:00
cha0smaster c9294cb701 Remove 'use_ino' because I'm afraid I can not use it with "file:stream" nammed data stream access interface. :-( 2005-09-24 13:05:36 +00:00
szaka 192348fa0a ntfsclone manual: update --ignore-fs-check option description 2005-09-20 16:24:26 +00:00
flatcap 7f8ad30c09 more code juggling
try and sort out transfer
2005-09-20 00:05:49 +00:00
cha0smaster 94be253f74 minor ntfsmount cleanup 2005-09-16 14:30:08 +00:00
cha0smaster 3629d931c6 Fix resident attribute adding: Add @val to ntfs_attr_add and @val and @size to ntfs_resident_attr_record_add.
Still need to fix attribute lis entry adding. :-(
2005-09-16 14:28:18 +00:00
antona ea0202921d Clarify the logfile check/hibernation warning. (Yuval) 2005-09-10 07:55:58 +00:00
cha0smaster 3164c705f7 ntfsmount: Apply patch from Yuval to fix 'df' output. 2005-08-31 14:31:53 +00:00
cha0smaster f80efa5e9a Make ntfsdecrypt compile. 2005-08-26 12:25:13 +00:00
cha0smaster 14702e50f2 ntfsmount: Aplly patch from Yuval with minor fixes to it.
Temporary remove kernel_cache from default options.
2005-08-26 12:23:00 +00:00
antona 190e59886f Define PATH_MAX if not defined in ntfsprogs/ntfsmount.c and
libntfs/volume.c.  Needed to compile on DOS with djgpp.  (Christophe)
2005-08-26 11:44:11 +00:00
szaka 605726b340 ntfscmp: new util for development, debugging, testing, etc. 2005-08-25 20:42:54 +00:00
cha0smaster 0835682401 refix previous fix to man page :) 2005-08-23 12:38:37 +00:00
cha0smaster 1ed76a2d3e small fix to ntfsmount man page 2005-08-23 12:07:26 +00:00
cha0smaster 6f8cd6e5ef Cleanups and memleak fix to error code paths of ntfs_create. 2005-08-22 21:33:07 +00:00
szaka dc284e1e10 Fix gigaleak in ntfscluster, utils.c::mft_next_record() 2005-08-21 09:46:29 +00:00
szaka d29a3e9b97 Fix incorrect volume usage calculation 2005-08-21 00:50:14 +00:00
flatcap fa99ae3d0f more housekeeping - no code changes 2005-08-17 15:59:27 +00:00
flatcap 96e1f45319 housekeeping - no code changes 2005-08-17 14:53:07 +00:00
flatcap db1e9afb1f create an index alloc (needs work) 2005-08-17 14:33:16 +00:00
flatcap 49a4f377f3 fix up dt root add 2005-08-16 13:33:12 +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
szaka 6d7ca452ff Articulate --bad-sectors a bit better 2005-08-15 21:44:10 +00:00
szaka a9e02e7687 Hard link mkfs.ntfs and mkfs.ntfs.8 with mkntfs and mkntfs.8 2005-08-15 20:48:48 +00:00
flatcap 301c8bd331 tidy up complicated mft mess 2005-08-14 22:22:06 +00:00
flatcap 14ab52fb23 give the new file some dummy data 2005-08-14 16:08:44 +00:00
flatcap a1ef87e393 tidy up error message 2005-08-14 15:56:31 +00:00
cha0smaster 9028a53dfc Sorry it's very large commit (46K of diffs between my local tree and CVS HEAD
before commit), file and directory creation/deletion recursively requested many
changes. See ChangeLog for description of all changes.
2005-08-14 15:44:46 +00:00
flatcap 4e292d96f1 remove old version of dt_alloc_children
clean up inode handling
fix ridiculous mft reading bug
mftrec mark free -> set inuse
inc attrib instance ids
successfully create a file
2005-08-14 12:26:55 +00:00
flatcap fd54e78256 more code to start testing add
keep track of dir names
2005-08-11 13:59:08 +00:00
flatcap 8567df0b6d display year in long listing 2005-08-11 13:53:08 +00:00
antona 68aab0dacd Minor cleanup. 2005-08-10 11:33:10 +00:00
antona c9d112e9ea Fix ntfsdecrypt to also work with passwordless files. Note this
requires a patched gnutls library or it still does not work.  (Anton)
2005-08-10 10:17:03 +00:00
antona 8ffbca582f Add comment about broken gnutls empty password handling. 2005-08-09 11:07:26 +00:00
antona 5dd973f683 Fix some memleaks in ntfsdecrypt and do some cleanups there.
Fix testing whether to compile crypto code in configure.ac.
2005-08-09 10:57:40 +00:00
cha0smaster 6a9aca9a22 ntfsmount: fix small memleak 2005-08-08 13:14:41 +00:00
antona 16ed5a54b2 Fix breakage introduced by Yuval. 2005-08-06 14:46:42 +00:00
antona 518c9d6fee Deal with non-password better. 2005-08-06 14:37:31 +00:00
uvman cd37ed9527 fix a few warnings in ntfsdecrypt and make it work. 2005-08-06 14:17:31 +00:00
antona d0dd037463 Set password to NULL instead of empty string "" so GNU TLS assumes it is not
encrypted.
2005-08-06 06:11:56 +00:00
antona 640573bf12 Finish next stage in ntfsdecrypt evolution. It is now almost finished in that
it fully works to decrypt any ntfs enecrypted file both from Linux and Windows.
All you need to supply is your private key in form of a .prx file as exported
for example by the cypher command in XP SP2 or otherwise as exported by the
management console's certificate manager plugin.
2005-08-05 23:41:52 +00:00
szaka a0adaafe38 Credit Ralf Beyer 2005-08-05 17:28:41 +00:00
antona 8d86fdefec Fix make extra directly after ./configure. Thanks to Yuval for the bug report. 2005-08-04 13:12:41 +00:00
antona d658b8f019 Fix typo in ChangeLog (thanks Szaka!).
Do more detection in configure.ac and in particular check for getopt_long,
windows.h, wincrypt.h, and gcrypt.h and most importantly (for now) give command
line option to enable crypto stuff and autodetect if libgcrypt is present.
And only build ntfsdecrypt (still make extra only) only if both --enable-crypto
was specified AND libgcrypt was found.
2005-08-04 10:36:35 +00:00
antona 6124aafffb Move timeconv to ntfstime, update changelog, and news for new release. 2005-08-04 09:59:39 +00:00
szaka 4e8e7ae9fa Fix for ntfs_rl_truncate() EIO: always set the correct size for $BadClus:$Bad,
even if Windows set it incorrectly
2005-08-03 22:40:29 +00:00
cha0smaster 36c5f89d13 Fix ntfsmount warnings. 2005-08-03 22:29:14 +00:00
szaka 26bedb9462 rl_expand(): make it a bit more readable 2005-08-03 21:46:35 +00:00
szaka 22590fea7e rl_expand(): check if new length isn't already more than requested 2005-08-03 21:35:22 +00:00
cha0smaster 39ec2a8347 ntfsmount: perror => Eprintf on partial {read,write}. 2005-08-03 14:06:04 +00:00
cha0smaster fe67916350 * attrib.c: refix ntfs_attr_p{read,write}
* ntfsmount.c: code that now not really needed, but for any case
2005-08-03 13:52:50 +00:00
antona 55760d93e8 Remove include of openssl/md5.h as that is no longer used. 2005-08-02 09:48:42 +00:00
antona 7e53648b59 Fix a warning. 2005-08-02 09:44:58 +00:00
szaka 06052dafcf Replaced all occurances of ENOTSUP to EOPNOTSUPP to be in better harmony
with the kernel driver
2005-08-01 22:10:38 +00:00
cha0smaster fd2e6eb09d ntfsmount: fix nr_links for directories. 2005-08-01 22:04:27 +00:00
szaka cebd8ec132 White space cleanup 2005-08-01 20:33:26 +00:00
szaka 78297900bd Let the user know if the journal file couldn't be checked or was unlean 2005-08-01 20:22:24 +00:00
cha0smaster f7e5e1cc26 * Fix ntfs_attr_p{read,write}. (see Changelog)
* Minor fixes and some stubs for uncommitted code.
* Update README about ./autogen.sh.
2005-08-01 13:40:51 +00:00
cha0smaster 7aebba2e12 minor improvements to index.h and ntfsmount.c 2005-07-29 21:37:09 +00:00
antona 304f060a76 Add all Makefile.in to maintainer-clean target. 2005-07-29 15:51:49 +00:00
antona 69f55f1ee5 Remove all Makefile.in files and add them all to all .cvsignores. 2005-07-29 15:10:19 +00:00
antona 3ccd12241a Start the build system cleanup. Add AM_MAINTAINER_MODE to configure.ac and
remove configure and Makefile.in.  Also add Makefile.in to .cvsignore.
2005-07-29 15:04:57 +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
antona 1a029f788e Remove Openssl linking in for decrypt.c from Makefile.am and update build
system.
2005-07-28 16:24:27 +00:00
antona 79e9e30ee3 Use libgcrypt instead of openssl for desx_key_expand's MD5 hashing. 2005-07-28 16:18:20 +00:00
antona 5b087e6d8a Fix a core dump. 2005-07-28 15:14:40 +00:00
antona f67d8fcee1 Use double indirection in case libgcrypt clones the key for you hack for
closing the des cipher.
2005-07-28 11:27:31 +00:00
antona 2546690ee1 Add EFS structure definitions to layout.h and adapt ntfsdecrypt for it.
More fixes/cleanups to decrypt.c.
This was all Yuval's work but I did some renaming afterwards and some
whitespace cleanups.
2005-07-28 10:36:31 +00:00
antona 0a18d2fce7 Fix some stupid mistakes from the cleanup. 2005-07-27 21:33:00 +00:00
antona 997e23fb15 Fixes to last cleanup. 2005-07-27 18:17:31 +00:00
antona 8c54a0b1a9 First pass at massive cleanup of ntfsdectypt/decrypt. 2005-07-27 15:55:42 +00:00
antona 0eb4cfbb42 Some more cleanups I missed last time. 2005-07-27 10:48:46 +00:00
antona bb3c2172b8 Run through Lindent and some manual aftercleanups. 2005-07-27 10:30:57 +00:00
antona d723668d27 decrypt.c:
- Finally working desx decryption thanks to Yuval figuring out that ntfs uses
  des encryption when decrypting!!!  (Yuval)
- Make it compile on Linux.  (Anton)
- Add CALG_DES constant for Linux.  (Anton)
2005-07-27 09:18:26 +00:00
antona 7cd7b2416f finally have verified des key expansion to be correct and have test cases for
it and des decryption.  Currently the des test fails.  It appears ntfs does not
use standard des encryption.  )-:  Perhaps it uses the export non-restricted
40-bit des key instead of 56-bit des...
2005-07-26 16:35:00 +00:00
antona 54b65e2b3c Fixes for key order for desx. Still doesn't work but now keys are correct. 2005-07-26 01:32:51 +00:00
antona 261f059e3e - Fix bug I introduced causing the IV to be wrong for AES decryption.
- Fix a bug where we fail to supply the buffer size when exporting the key.
  Not sure how that ever worked...
2005-07-25 23:23:48 +00:00
cha0smaster 0de66be9c0 ntfscp.c: fix bug intoduced by Anton in changeset 1.21
ntfsinfo: more info on index dumping
dir.c, layout.h: minor fixes
2005-07-25 22:05:27 +00:00
szaka 61ee94dfb2 Don't show detailed resizing related info by default since the only real
restriction to shrink to the smallest size possible is the relocation of
the first $MFT $DATA extent, usually around 3 GB.
2005-07-25 21:19:08 +00:00
szaka 7943e71620 Support resizing into the middle of a $MFT $DATA extent 2005-07-25 20:40:07 +00:00
szaka 34c676fad3 Support relocation of $MFT with $ATTRIBUTE_LIST 2005-07-24 22:34:36 +00:00
antona 6377902ed4 Update decryption for desx after more reverse engineering. Still doesn't work
though.  )-:
2005-07-24 14:42:43 +00:00
szaka f6c4797379 Fix in relocate_attributes(): don't stop processing of MFT record attributes
at AT_DATA of $BadClus and $Bitmap. In practice, there aren't non-resident
attributes after them so this recent bug shouldn't have caused data loss.
2005-07-24 09:06:55 +00:00
antona 00c7127551 First attempts at DesX decryption (not working yet!). 2005-07-22 23:45:32 +00:00
antona 93194b37a0 Add a function to ntfsprogs/decrypt.c that expands an on-disk desx key from 128
bits to the needed 192 bits so it can be used for {en,de}cryption.
Note I couldn't face using the completely insane libgcrypt api so I used
openssl's libcrypto instead...  Anyone feel free to swap once we have it
working.
2005-07-21 12:12:37 +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 0f4d02e9e4 ntfsls: not all files started with '$' are system files, check by inode number instead. 2005-07-20 16:04:40 +00:00
antona e55c6769e1 Apply some updates after doing some reverse engineering. 2005-07-20 10:59:06 +00:00
antona 0dac29a487 Update for 1.11.1 release. 2005-07-20 08:14:52 +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
cha0smaster 53a1ae67f9 * Fix similar bug in ntfs_fuse_getxattr.
* Update changelog.
2005-07-19 22:58:51 +00:00
cha0smaster 7b9cac2912 Update ChangeLog and auto scripts. 2005-07-19 21:36:07 +00:00
cha0smaster 37b4c63829 ntfsmount:
* Fix bug in inside ntfs_fuse_filler, it's sometimes allocated to small buffer.  (Thanks to Rich for finding this bug)
* Fix bug in error handling of ntfs_fuse_readdir.

ARGH, why we already had release?
2005-07-19 21:22:24 +00:00
flatcap cc1f72948b fix careless mst write
move truncate out of the commit path
2005-07-19 01:56:41 +00:00
flatcap ad7821f458 remove some old code 2005-07-18 23:53:14 +00:00
flatcap 807e7e6dfc remove some old code 2005-07-18 23:42:40 +00:00
szaka d016f808d5 Fix read-only shrinkage failure if new size was too small by relocating and
writing $Bitmap:$DATA only once. This also improves performance.
2005-07-18 22:09:47 +00:00
flatcap 50075bb971 fix some sloppy memory management
tidy up ie handling
2005-07-18 21:45:08 +00:00
antona 6292bc5d8f Fix compilation under Cygwin (and make sure it still works on Linux). 2005-07-18 20:47:48 +00:00
antona 82fc3cd557 Fix compiler warning under Cygwin. 2005-07-18 20:38:33 +00:00
szaka a3ac693fca Move the check for $Bitmap AT_ATTRIBUTE_LIST into resize constraints 2005-07-18 20:34:41 +00:00
flatcap 50c4959f1e root remove got size wrong
a few typos
2005-07-18 16:10:05 +00:00
cha0smaster fc2382b742 libntfs/volume.c: fix ntfs_check_if_mounted to cope with dirrerent names of same file.
ntfsprogs/ntfsmount.c: don't put relative path to /etc/mtab.
2005-07-18 02:09:43 +00:00
antona d8b586c014 Add ntfsdecrypt to .cvsignore. 2005-07-16 18:19:17 +00:00
antona b48dae0c5f Make ntfsdecrypt compile under Linux. 2005-07-16 07:00:57 +00:00
antona 4ed406e68e Add new utility (make extra) - ntfsdecrypt. (Yuval) 2005-07-16 06:53:40 +00:00
cha0smaster 0b75b12544 ntfsmount:
* use mount function from utils.[ch]
* remove fsname option (need to support if volume already mounted)
* add force option to support mount from utils
* update manual page
* fix tiny memleak
2005-07-15 15:53:22 +00:00
flatcap 2c942cb3f4 tidy up dt rollback and commit 2005-07-13 22:55:01 +00:00
szaka 2b2e127d26 Fix segfault during $Bitmap shrinkage introduced very recently by not
differentiating shrinkage and enlargement
2005-07-13 19:37:51 +00:00
szaka 436b290d03 Fix one-time memory leak in relocate_attributes() 2005-07-13 17:47:37 +00:00
szaka c5e05165c9 Fix memory leak in ignore_bad_clusters() 2005-07-13 17:07:13 +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
szaka 8b148a061f ntfsresize: give more hint if an $MFT run should be split. This will be the
next most common restriction when $MFT with ATTRIBUTE_LIST will be supported
2005-07-12 22:03:13 +00:00
szaka 8be0570dab Prepare collect_resize_constraints() for $MFT with AT_ATTRIBUTE_LIST support 2005-07-12 21:46:40 +00:00
flatcap 5bfce5ff73 no code changes, merely reordered some functions 2005-07-12 17:58:47 +00:00
flatcap 0fc1835e47 fix some sloppy memory management
tidy up bmp handling
2005-07-12 17:13:29 +00:00
szaka 9f50872ec2 Spelling typos, Debian bug #300073 2005-07-12 16:18:10 +00:00
flatcap 40f00bd76b another bmp test
fix bmp handling again
fix dt commit for iroot
fix dt root replace
rm now cleanly removes last dir entry
2005-07-11 11:54:38 +00:00
szaka 4c2cfb2583 Rephrase mentioning "dirty" volumes so people hopefully won't think that
Windows repairs what ntfsresize damaged. The real function of leaving
the volume dirty is to make Windows create the backup boot sector because
we can't know where the partitioner will exactly resizes (they optionally
round to some cylinder boundary, defined by ad hoc, arbitrariy rules).
2005-07-10 23:09:02 +00:00
szaka d37968ee84 Update ntfsfix manual 2005-07-10 22:44:00 +00:00
antona 47b52b54e3 Update changelog, fox more mkntfs bugs (thanks Timur!) and update build system
to SuSE 9.3 again.
2005-07-10 21:42:39 +00:00
cha0smaster 48af715f60 * Add check to auto scripts for FUSE to be >= 2.3.0.
* Move ntfsmount back to standard programs set.
2005-07-10 12:38:46 +00:00
antona b942e2c03a Move ntfsmount to extra programs as it doesn't even approximate being
compilable!  (At least on my machine which has fuse 2.2.1.)
And I need a working snapshot for Timur.
2005-07-09 21:32:17 +00:00
antona 9cd8edce5f mkntfs: Fix backup bootsector creation. Thanks to Timur Amirkhanov
for pointing this stupidity out.  (We forgot to set the size before
doing it.)  (Anton)
2005-07-09 21:24:02 +00:00
cha0smaster 9b483d4f42 ntfsinfo: add range check in EA dumping
ntfsmount: fix name in comment
2005-07-09 01:11:46 +00:00
cha0smaster bfbb32f071 Dump every EA record only in verbose mode. 2005-07-09 00:59:30 +00:00
cha0smaster 0b060773f5 - layout.h: update info about EA's.
- ntfsinfo: dump EA and EA_INFORMATION attributes.
2005-07-09 00:09:53 +00:00
flatcap 5693c1fcfb try removing the last entry in a dir (unsucessful, but close) 2005-07-08 18:45:44 +00:00
szaka 7145ab4b19 Document --bad-sectors of ntfsresize; update acknowledgement & known issues 2005-07-07 21:20:04 +00:00
flatcap 7a142ef54c got bored. don't read the diffs. 2005-07-06 22:47:01 +00:00
cha0smaster cb13f36956 Fix typos, patch from debian version of nftsprogs 1.9.4-2. 2005-07-05 16:34:15 +00:00
cha0smaster eb3639e0be ntfsmount:
* Fix named data streams access interface.
* New option: succeed_chmod to avoid chmod errors.
2005-07-05 04:54:28 +00:00
cha0smaster c3586d1d8c Submit ntfsmount manual page.
As usual forgot "cvs new" before commit. :-)
2005-07-05 01:19:20 +00:00
cha0smaster 7553a8da53 * ntfsmount: change default fmask and dmask to 0177 and 0077 respectively.
* Update NEWS, ntfsprogs.8.in, .cvsignore
* Update build system to install nftsmount man page.
2005-07-05 01:18:02 +00:00
flatcap a32e3eca7e fix a few sign warnings 2005-07-04 16:34:14 +00:00
szaka 2af728c6c4 ntfsresize: support bad clusters list ($BadClus:$Bad) 2005-07-03 23:21:01 +00:00
cha0smaster 23181e4d49 ../commit 2005-07-03 15:26:19 +00:00
cha0smaster d31a69bb23 Use gete{u,g}id instead of get{u,g}id. (Thanks to Anton for suggestion.) 2005-07-03 13:07:15 +00:00
cha0smaster 9276557d28 - Change default fsname to "ntfs#device". (Suggested by Miklos Szeredi)
- Fix error handling when no dev option given.
2005-07-03 12:14:57 +00:00
cha0smaster 96f4a39aaf ntfsmount: it's not a error when file didn't contain unnamed data attribute. E.g. $Secure. 2005-07-03 01:49:17 +00:00
cha0smaster 58f7b6b345 Forgot to commit ntfsmount itself. :-) 2005-07-03 00:35:48 +00:00
cha0smaster 3727a729c2 - Add new utility - ntfsmount. It's a FUSE module that rely on libntfs. So,
you need FUSE to compile it, xattr is also highly recommended. This module
support file overwrite changing it size and can list/read/write/add/remove
named data streams via xattr interface.
- Update auto{make,conf} stuff respectively.
2005-07-03 00:18:37 +00:00
szaka 3f7c609ab2 truncate_bitmap_data_attr(): no need to distinguish shrinkage & enlargement 2005-06-30 21:13:34 +00:00
szaka fa2e20b14b ntfsclone man: examples use gzip instead of bzip2; some clarifications 2005-06-28 21:09:35 +00:00
szaka 307c9b43e2 ntfsresize: show device name -- useful for bug reports 2005-06-27 21:18:40 +00:00
szaka 60d0ed80a5 Detect and hint users if the destination fs doesn't support sparse files 2005-06-27 21:03:06 +00:00
szaka 666619ff85 Trying to better guide lost people to the solutions of the non-ntfs
related partition table corruptions
2005-06-26 20:43:21 +00:00
szaka f8dad91b81 Added ntfsclone's rescue capability 2005-06-26 20:11:03 +00:00
szaka 2afa525533 Added ntfscp
Updated ntfsfix and ntfsclone
Added Yuval Fledel and Yura Pakhuchiy to the list of authors
2005-06-26 20:09:26 +00:00
cha0smaster 1dce9cf4ea NTFSCP: don't use printf inside signal handler. 2005-06-25 16:37:50 +00:00
flatcap 31c31a244d ntfsrm:
fix a couple of crashes
	slightly simplify bitmap logic
	wasn't using mst pwrite for INDX
	rm works again
	bmp commit was overwriting end of attr
	strip down bitmap set
	bitmaps: handle cluster boundaries correctly
	overhaul the bitmap code
	ntfs_binary_print
2005-06-23 18:55:03 +00:00
cha0smaster e5a90b161b ntfscp: Fix signal handling. 2005-06-21 13:06:53 +00:00
antona 39b759ee99 Fix compiler warnings under cygwin. 2005-06-21 09:57:22 +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
flatcap 0e364b49aa ntfscat now works with attribute names
ntfscat now removes fixup from:
  $MFT/$DATA
  $MFTMirr/$DATA
  anydir/$INDEX_ALLOCATION
2005-06-20 14:24:53 +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
antona cc992ab0f6 Add more things to .cvsignore files. 2005-06-19 13:20:40 +00:00
cha0smaster 5becfe6c30 - Fix build without config.h.
- Fix gcc4 very large warning in ntfsrm.
2005-06-16 23:16:32 +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 6e1106fc79 - fix mangled formatting in ntfsclone: use more space for wipe statistics 2005-06-12 14:35:57 +00:00
szaka 532e1b71cf - fix bogus extra error message in ntfsresize 2005-06-12 13:44:34 +00:00
szaka 3517936355 - ntfsresize manual update 2005-06-12 13:39:23 +00:00
szaka b4a712b9e1 - Use consistent option and parameter naming convention 2005-06-12 11:02:50 +00:00
szaka 4fcd676f63 - More explanatory error message about failing to open a volume 2005-06-12 10:15:21 +00:00
szaka 8dae1da562 - Revised ntfsclone's usage() message 2005-06-12 09:55:45 +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
szaka dd0b3bdc7e - Add descriptions for the new command line options 2005-06-11 15:30:07 +00:00
cha0smaster aae6371c9d Move namespace dumping into separate function and use it in attribute and index dumping. 2005-06-09 13:08:23 +00:00
flatcap 554b27dd47 ignore built/generated files 2005-06-09 09:05:30 +00:00
flatcap e5c8b9606e Cristi Klein - display the namespace of the file's name 2005-06-09 08:29:03 +00:00
cha0smaster 94cc7ff15f Move flags dumping into the separate function. 2005-06-08 18:01:46 +00:00
antona 1aeb91827c Update build for changes to function detection in configure.ac. 2005-06-06 14:31:37 +00:00
antona b10eb4cb2d Minor cleanup 2005-06-06 14:29:47 +00:00
antona 6bfbf20a19 Fix warnings. (Yuval) 2005-06-06 14:21:53 +00:00
cha0smaster 410432bc9d - Fix bug in index.c pointed by Anton, many thanks to him.
- Small updates all over the place:
   * NEWS
   * ntfscp manual page
   * ntfsinfo prints parent directory for FILE_NAME attribute
   * year in ntfscp copyright
2005-06-05 23:48:55 +00:00
cha0smaster 4b000b3d13 - Implement FILE_NAME attributes update in index during inode sync and enable code that set/clean sparse bit. Also add new inode state bit FileNameDirty to indicate that FILE_NAME attributes need update. At least after attribute resize we leave absolutely consist volume.
- Bugfixes to collate.c and index.c.
- Minor formating fixed to ntfscp and ntfsinfo.
2005-06-05 14:55:08 +00:00
cha0smaster 7cd9b6b22d Small formating fix to ntfsinfo. 2005-06-04 15:20:46 +00:00
cha0smaster 2d8dc1736d - Port collate.[ch] from kernel to library and implement

							
						
2005-06-04 00:57:58 +00:00
antona c4cb316418 mkntfs: Add new option -T which fakes the time to be 00:00:00 UTC,
Jan 1, 1970 instead of the current system time.
2005-06-03 22:22:12 +00:00
antona 8f45d909c1 Only output message that volume is being set dirty if we are actually setting
the dirty flag.  Otherwise the message is pointless.
2005-06-03 21:53:02 +00:00
szaka 683b707b43 Don't mark NTFS dirty if the backup boot sector could be created 2005-06-02 18:36:43 +00:00
szaka 6aa5cc17fe ntfsresize: fix segfault during fsck if $Bitmap was larger than expected 2005-05-24 21:13:51 +00:00
flatcap 0c72b6f242 Giang Nguyen - remove redundancy 2005-05-23 12:07:02 +00:00
szaka 1cefeefd61 - hint to the user what to do if the partition is hibernated 2005-05-10 17:00:03 +00:00
szaka 1a5e15bb5b - fix handle_undelete() declaration (compiler warning) 2005-05-10 16:37:01 +00:00
cantab.net!aia21 50bde64860 For a long while asked feature. The attached patch should be against the
latest ntfsprogs snapshot. Includes,

  - ntfsclone: --rescue works at the lowest, sector and not cluster level
    thus more data can be rescued. The contents of the unreadable sectors
    are filled by character '?' and the beginning of such sectors are
    marked as "BadSectoR\0". Thanks to Krishna Mohan Gundu for his help.

  - ntfsclone: fixed an off-by-one error during --metadata in function
    wipe_data().

Szaka

(Logical change 1.699)
2005-04-25 07:26:08 +00:00
cantab.net!aia21 12d49f4972 fix segfault during filesystem check if NTFS was corrupted
in a way that clusters were referenced outside of the volume.  (Szaka)

(Logical change 1.697)
2005-04-19 12:01:38 +00:00
cantab.net!aia21 ac13794c54 Update with SUSE 9.3 build tools.
(Logical change 1.696)
2005-04-19 12:00:26 +00:00
void!yura 1465436e8c nftscp: add ability to specify directory as destination file
(Logical change 1.694)
2005-04-06 15:47:43 +00:00
flatcap.org!ntfs 14cd02ffc1 Updates from Holger for regex undelete
Fix up code formatting

(Logical change 1.693)
2005-03-23 13:01:27 +00:00
flatcap.org!ntfs 1173ab9c98 Updates from Holger for regex undelete
(Logical change 1.693)
2005-03-23 13:01:27 +00:00
elisa-laajakaista.fi!szaka c5f5dfb4c3 Make --metadata work with the new $Logfile checking code.
Save at least the first 16 KiB of $Logfile (the two RSTR records
should always be included if present). Save also records used for
checking empty $Logfile. (Szaka)

(Logical change 1.691)
2005-03-05 19:08:57 +00:00
elisa-laajakaista.fi!szaka 52fa43efb8 Fix invalid mft records in $MFTMirr.
(Logical change 1.683)
2005-03-01 23:11:20 +00:00
elisa-laajakaista.fi!szaka f1780f9d64 Added a new option, --rescue. It ignores read errors so disks having
bad sectors (dying disks) can be rescued. The content of the cluster
having bad sectors is filled by character '2' and the start of the
cluster is marked by "BadClusteR".

(Logical change 1.682)
2005-03-01 21:48:00 +00:00
elisa-laajakaista.fi!szaka 1d176ad7e0 Added a new option, --ignore-fs-check. It can be used only with the --metadata option. The clusters causing the inconsistency are saved too.
(Logical change 1.681)
2005-02-28 19:23:20 +00:00
elisa-laajakaista.fi!szaka bef59fbd6e Empty journal and mark volume dirty for chkdsk if ntfs_mount failed. This makes read-write mounting of NTFS metadata images possible by
ntfsprogs and the kernel driver what were created by versions of ntfsclone previous than 2.0.0.

(Logical change 1.680)
2005-02-20 22:20:54 +00:00
elisa-laajakaista.fi!szaka f6a7caf21d use getopt, added --help and --version, some output cleanup
(Logical change 1.679)
2005-02-19 19:34:37 +00:00
elisa-laajakaista.fi!szaka e9159478ea ntfsfix: use getopt, added --help and --version, some output cleanup
(Logical change 1.679)
2005-02-19 19:34:37 +00:00
void!yura 5180f05279 I completely forgot about mst protection when I was writing index dumping code. Fix this.
(Logical change 1.676)
2005-02-08 19:06:18 +00:00
void!yura b8da6570e0 ntfscp: Added SIGINT (Ctrl+C) handler, improved error handling in
sync failed case.  (Yura)

(Logical change 1.675)
2005-02-07 20:44:07 +00:00
elisa-laajakaista.fi!szaka 3244499edb document exit codes
(Logical change 1.674)
2005-02-02 22:40:59 +00:00
void!yura 0a16746ca2 remove logfile reset
(Logical change 1.672)
2005-01-30 18:13:25 +00:00
void!yura b03f4a6ec7 fix return value of ntfscp
(Logical change 1.668)
2005-01-27 13:53:02 +00:00
void!yura 39e6fa1339 Add logfile.c to build
(Logical change 1.665)
2005-01-25 19:46:51 +00:00
void!yura d162076f14 fix some complier warning in mkntfs
(Logical change 1.662)
2005-01-17 14:59:52 +00:00