Commit Graph

89 Commits (a117a21941469ebae5f4059fa2a7ba3d2711bda3)

Author SHA1 Message Date
aia21 2afc70711a Forgot to not apply endianness swapping for old style images when restoring... 2006-08-23 13:21:04 +00:00
aia21 35dcfaac9e Fix endianness problems in both image restore and image create (and in metadata
cloning as well).  (Anton)
2006-08-23 11:58:55 +00:00
aia21 cb35fe2fea Make ntfsclone image format extensible. (Anton) 2006-08-23 11:22:07 +00:00
aia21 5128685d88 - ntfsclone: Define endianness safe image format. (Anton)
- ntfsclone: Redefine image format version number to be the image
  format version and not the NTFS version of the imaged volume which is
  totally useless.  (Anton)
2006-08-23 10:18:34 +00:00
szaka 39b9061d8b wipe_index_allocation_timestamps(): don't try to dump empty ia 2006-08-13 15:15:08 +00:00
szaka 5c0ce5407e metadata cloning: write out extent records 2006-08-13 15:00:27 +00:00
szaka 58699ef91b more detailed error messages 2006-08-13 14:52:19 +00:00
szaka d727768a80 convert all malloc,calloc to ntfs_{malloc,calloc} 2006-08-13 14:49:35 +00:00
szaka bd659977c2 don't create image files with executable bit set 2006-08-13 14:40:28 +00:00
szaka 0dae4a9c77 fix missing error outputs 2006-08-13 14:34:07 +00:00
szaka f61d45b970 fix 64 bit destination size calculation on Mac OS X 2006-06-15 18:43:24 +00:00
szaka c7a53338c0 Fix all incorrect getopt_long() return value usages. 2006-04-05 12:43:06 +00:00
szaka 6772bb4649 Fix ntfsclone idempotency 2006-04-05 02:50:44 +00:00
szaka 813933e1bc libntfs: add ntfs_mft_usn_dec() and convert all copy-pastes to use them 2006-04-05 02:49:24 +00:00
szaka be823c7a1e libntfs: add ntfs_str2ucs and ntfs_freeucs function, and convert
copy-pastes to use them
2006-04-05 02:45:55 +00:00
szaka b4fa78dc58 ntfsclone: the --metadata option will wipe the timestamps in the
index allocation attributes as well. This further decreases the
compressed metadata image size by 10-25% and more importantly it
eliminates non-interesting ntfscmp differences.
2006-03-27 21:40:26 +00:00
szaka 31cc1d2f45 Wiped timestamp data stats were off by 5% in general 2006-02-06 22:17:24 +00:00
szaka 43b4d8a4e1 --metadata sets timestamps to the Epoch time as mkntfs does with -T. This
increases the compressed image sizes by only 0.3-0.8% but ntfsclone creates
now the exact same metadata images as mkntfs, which fact can be used for QA.
2006-02-06 20:51:17 +00:00
szaka fae8feea65 Explain dirty volume 2006-02-05 22:10:01 +00:00
szaka 16b8bc1fd4 Write MFT records with the same USN during metadata cloning. This eases
ntfsclone self-regression, which itself is going to validate other codes
2006-02-05 19:35:20 +00:00
szaka fefc3e5195 ntfsresize, ntfsclone: always use MS_NOATIME 2006-02-05 16:39:35 +00:00
szaka c940df9079 remove usage of old logging macros 2005-11-27 12:31:39 +00:00
szaka 3db9973bcf ntfsclone: --metadata also wipes out the timestamps in the $I30 and
in the /$Extend/$Quota:$Q index root attributes
2005-11-18 00:24:45 +00:00
szaka 2db620bda1 ntfsclone: check the available free space for --save-image too 2005-11-13 21:48:35 +00:00
szaka caa0bf5c4b metadata cloning: wipe metadata timestamps too 2005-11-07 21:38:58 +00:00
szaka da654b4207 shortened opt.metadata_only to opt.metadata 2005-11-07 21:13:31 +00:00
szaka 594c23aff0 ntfsclone: check available free space on the destination 2005-11-07 20:49:18 +00:00
uvman 5b949d07fa Fix comment formats. 2005-10-28 12:55:41 +00:00
flatcap 8a584700c5 whitespace fixes - no code changes 2005-10-26 22:54:57 +00:00
flatcap 1ee8d8b9e2 restore call to ntfs_set_locale
(utils only uses stderr, now)
2005-10-26 20:48:38 +00:00
uvman 0dd0cdc6be Remove {Dputs, Dprintf, Dperror} and convert callers to ntfs_log_*. Make ntfsinfo use ntfs_logging_parse_option(). 2005-10-25 01:28:10 +00:00
szaka f9cdaed3db temporary fix for the corrupted stdout due to the recent logging changes 2005-10-24 21:20:10 +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
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
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
uvman 62579b84d4 compiler warnings fixes. 2005-10-04 20:36:42 +00:00
szaka 54891f3112 Emphasize Windows needs to be rebooted twice after chkdsk /f 2005-09-30 20:29:58 +00:00
szaka ab2ad80ae7 Accept incorrect $Bitmap size if it covers the entire volume 2005-09-29 23:30:15 +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
szaka 431258997d Fix saving by sectors during --rescue 2005-09-25 21:42:47 +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 c5e05165c9 Fix memory leak in ignore_bad_clusters() 2005-07-13 17:07:13 +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
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
szaka 6e1106fc79 - fix mangled formatting in ntfsclone: use more space for wipe statistics 2005-06-12 14:35:57 +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