Commit Graph

353 Commits (4b697efed2d979ce2ab5bf998cabc1e6621dcbf6)

Author SHA1 Message Date
elisa-laajakaista.fi!szaka 61ea0f59d8 ntfsclone --metadata also saves at least the first 8 KiB of the $LogFile
(Logical change 1.365)
2004-04-14 23:31:11 +00:00
elisa-laajakaista.fi!szaka cb7d91eb16 got rid of the global struct bitmap lcn_bitmap (some work towards code reuse)
(Logical change 1.364)
2004-04-14 01:23:36 +00:00
elisa-laajakaista.fi!szaka 443662a5d6 destination device must be opened O_RDWR because device_size_get() might need to read()
(Logical change 1.363)
2004-04-13 22:56:11 +00:00
elisa-laajakaista.fi!szaka 2a97938898 Fix the incorrect usage example.
(Logical change 1.360)
2004-04-08 08:00:53 +00:00
cantab.net!aia21 5e56debf45 Mostly rewrite ntfsinfo. (Yuval Fledel and some fixes by me)
(Logical change 1.356)
2004-04-05 08:44:32 +00:00
cantab.net!aia21 80cb606d36 Big update. (Not finished yet.)
(Logical change 1.355)
2004-04-05 08:42:10 +00:00
omakaista.fi!szaka 1d17c6e429 Update, corrections and removed all mentions of the buggy cp --sparse=always that could corrupt data
if the destination is block device (though GNU cp was fixed after we reported the problem).

(Logical change 1.354)
2004-04-01 21:30:42 +00:00
omakaista.fi!szaka 37cf1d9b38 Added some diagnostic and explanatory messages to ntfsclone.
(Logical change 1.354)
2004-04-01 21:30:42 +00:00
cantab.net!aia21 527d7780cb Make it compile...
(Logical change 1.353)
2004-03-31 15:01:05 +00:00
cantab.net!aia21 a111528d7c Add ability to use a file as the logfile source rather than a ntfs volume
containing device, i.e. you can now grab a copy of $LogFile and use
ntfsdump_logfile -f mylogfilecopy.

(Logical change 1.352)
2004-03-31 14:47:08 +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 78922e89fa Update to automake 1.8.3.
(Logical change 1.349)
2004-03-26 14:50:33 +00:00
cantab.net!aia21 d224481da9 Make it compile with changes in logfile.h.
(Logical change 1.348)
2004-03-26 14:42:21 +00:00
cantab.net!aia21 61fe186d21 Use more libntfs APIs and other cleanups.
(Logical change 1.346)
2004-03-24 17:38:31 +00:00
cantab.net!aia21 ad18c0bac9 Update
(Logical change 1.346)
2004-03-24 17:38:31 +00:00
cantab.net!aia21 163f9002b7 Remove dumplog utility as it was unnecessary and duplicated the
functionality of ntfsdump_logfile.

(Logical change 1.346)
2004-03-24 17:38:31 +00:00
cantab.net!aia21 d37f75cfde Delete: ntfsprogs/dumplog.c
}(Logical change 1.346)
2004-03-24 17:38:31 +00:00
cantab.net!aia21 16bc6199a6 - Provide a new command line option "-H" to mkntfs to allow the user to
specify the number of heads manually.
- Provide a new command line option "-S" to mkntfs to allow the user to
  specify the number of sectors per track manually.

(Logical change 1.345)
2004-03-24 10:36:31 +00:00
cantab.net!aia21 c5a065d048 - Add new API device.[hc]::ntfs_device_heads_get() and make mkntfs use it.
- Provide a new command line option "-H" to mkntfs to allow the user to
  specify the number of heads manually.
- Add new API device.[hc]::ntfs_device_sectors_per_track_get() and make
  mkntfs use it.
- Provide a new command line option "-S" to mkntfs to allow the user to
  specify the number of sectors per track manually.

(Logical change 1.345)
2004-03-24 10:36:31 +00:00
omakaista.fi!szaka 5154256c62 - Check the mount state of the output device in ntfsclone.
- Correct a too strong sanity check in ntfsclone that prevented
  cloning from larger device to a smaller one but the NTFS image
  could have fit fully.

(Logical change 1.344)
2004-03-23 02:00:56 +00:00
omakaista.fi!szaka 8f77300f3a - recommend chkdsk /f if mapping pairs decoding fails with EIO (Kent B. Larsen)
- use corrupt_volume_msg in all relevant cases
- explain "bad sectors" a bit better

(Logical change 1.342)
2004-03-22 09:09:44 +00:00
cantab.net!aia21 ae7789dcd0 Support the case where $Volume does not have a $VOLUME_NAME
attribute in ntfs_device_mount() and let ntfslabel create the
attribute when it is not present.

(Logical change 1.339)
2004-03-19 10:21:05 +00:00
cantab.net!aia21 93acd345a7 Update
(Logical change 1.338)
2004-03-17 16:53:29 +00:00
cantab.net!aia21 08bd36ca62 Provide a new command line option "-p" to allow the user to specify
the partition start sector manually.

(Logical change 1.336)
2004-03-17 12:22:03 +00:00
cantab.net!aia21 60231ba412 - Fix to include sys/ioctl.h.
- Define the ioctls we use if they are not defined, as it is done
  in device.c.

(Logical change 1.336)
2004-03-17 12:22:03 +00:00
cantab.net!aia21 d05932849c - Add new API device.[hc]::ntfs_device_partition_start_sector_get() and
make mkntfs use it.
- Provide a new command line option "-p" to allow the user to specify
  the partition start sector manually.
- Add include sys/ioctl.h to fix sector size detection.

(Logical change 1.336)
2004-03-17 12:22:03 +00:00
cantab.net!aia21 2bd298bc2d Add new API mft.[hc]::ntfs_mft_record_{layout,format}() and make
mkntfs use it.

(Logical change 1.335)
2004-03-15 12:50:18 +00:00
cantab.net!aia21 9bb30a0601 Ooops, forgot to test make extra when changing ntfs_get_attribute_value().
(Logical change 1.334)
2004-03-15 11:36:21 +00:00
cantab.net!aia21 ab2da48e25 Use sizeof(MFT_RECORD_OLD) instead of sizeof(MFT_RECORD) as MFT_RECORD now
includes the NTFS 3.1+ specific fields.

(Logical change 1.333)
2004-03-15 11:34:30 +00:00
cantab.net!aia21 cf419787bd Use sizeof(MFT_RECORD) instead of sizeof(MFT_RECORD) + 6 as MFT_RECORD now
includes the NTFS 3.1+ specific fields.

(Logical change 1.333)
2004-03-15 11:34:30 +00:00
cantab.net!aia21 95ab07c823 Forgot to include security.h...
2004/03/14 18:22:33+00:00 cantab.net!aia21
Implement dumping of object id attribute.  (Yuval Fledel, me)

(Logical change 1.331)
2004-03-14 18:29:21 +00:00
cantab.net!aia21 49f8d5e364 Fix validation of STANDARD_INFORMATION attribute size in ntfsinfo.c
and remove relevant FIXME comments.  (Yuval Fledel)

(Logical change 1.329)
2004-03-13 19:30:28 +00:00
cantab.net!aia21 cb3b41894a Modify meaning of ntfs_volume->nr_mft_records to be the number of
initialized mft records, not total mft records.  This makes far more
sense and in fact reflects how nr_mft_records is being used in both
libntfs and the utilities.

(Logical change 1.326)
2004-03-12 15:50:52 +00:00
cantab.net!aia21 9193cb6298 Update
Fix warnings on powerpc architecture where it would seem char is
unsigned so comparisons with -1 cause a warning that comparison is
always true/wrong.  (Thanks to Ender for reporting.)

(Logical change 1.324)
2004-03-12 09:30:03 +00:00
cantab.net!aia21 9b3652469c Update with SuSE 9.1 beta 1 versions of GNU build system.
(Logical change 1.322)
2004-03-11 15:33:34 +00:00
cantab.net!aia21 d7f7475b58 Update
(Logical change 1.321)
2004-03-10 23:41:00 +00:00
cantab.net!aia21 c446b5b7c0 Update
(Logical change 1.320)
2004-03-10 23:37:54 +00:00
cantab.net!aia21 94036606c8 Update
(Logical change 1.319)
2004-03-10 23:32:43 +00:00
cantab.net!aia21 c86e4174a9 Manual merge.
2004/03/10 21:54:24+00:00 cantab.net!aia21
 Typo fixes (Ender)

(Logical change 1.317)
2004-03-10 22:03:54 +00:00
cantab.net!aia21 41c90506c5 Auto merged
2004/03/10 21:54:27+00:00 cantab.net!aia21
 Typo fixes (Ender)

(Logical change 1.317)
2004-03-10 22:03:54 +00:00
cantab.net!aia21 5dda848553 Auto merged
2004/03/10 21:54:13+00:00 cantab.net!aia21
 Typo fixes (Ender)

(Logical change 1.317)
2004-03-10 22:03:54 +00:00
cantab.net!aia21 3c429be664 Typo fixes (Ender)
(Logical change 1.317)
2004-03-10 22:03:54 +00:00
cantab.net!aia21 f19081ab43 Update for 1.9.0 release.
(Logical change 1.316)
2004-03-10 21:52:35 +00:00
cantab.net!aia21 c5847ae8cf Fix two bugs, a->name_length is 8 bit not 16 bit...
(Logical change 1.313)
2004-03-10 09:36:44 +00:00
omakaista.fi!szaka c90976e023 hand merged
2004/03/10 10:13:38+02:00 omakaista.fi!szaka
- Added warnings about not modifying text messages external tools use
- Options -i -s together aren't supported anymore, if needed use -n -v -s instead
- Usage() cleanup
- Some endianness fixes
- Suggest chkdsk /f if mount fails with EIO (Paul A. Steckler)
- Removed BETA and STABLE hints, now there is only one STABLE
- The --info option estimates the theoretically smallest shrunken size   thus the message changed from "You ccould resize ..." to   "You might resize ...".

(Logical change 1.312)
2004-03-10 09:28:44 +00:00
omakaista.fi!szaka bf67069b3f Spelling fixes and update
(Logical change 1.312)
2004-03-10 09:28:44 +00:00
cantab.net!aia21 6b7c265ea8 Update
(Logical change 1.311)
2004-03-10 09:28:31 +00:00
cantab.net!aia21 95d653045f Auto merged
2004/03/10 09:26:25+00:00 cantab.net!aia21
Move AC_GNU_SOURCE before AC_PROG_CC...

(Logical change 1.310)
2004-03-10 09:26:51 +00:00
cantab.net!aia21 728eff0614 Auto merged
2004/03/10 09:20:50+00:00 cantab.net!aia21
Update.

(Logical change 1.309)
2004-03-10 09:21:53 +00:00
cantab.net!aia21 0acde67dde A few missed.
(Logical change 1.308)
2004-03-09 16:00:13 +00:00
cantab.net!aia21 717484f223 Missed this one.
(Logical change 1.307)
2004-03-09 15:27:10 +00:00
cantab.net!aia21 8b9213603f Manual merge.
2004/03/09 14:38:50+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 ddeee65b8d 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 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 43280fed03 Auto merged
2004/03/09 14:38:50+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 8a26e04bb3 Auto merged
2004/03/09 12:38:19+00:00 cantab.net!aia21
Update.

(Logical change 1.305)
2004-03-09 12:38:51 +00:00
cantab.net!aia21 6c4c7b1721 Fix typo. (From SUSE LINUX)
(Logical change 1.303)
2004-03-08 17:04:17 +00:00
cantab.net!aia21 7e83a08c1e update
(Logical change 1.300)
2004-03-06 18:08:14 +00:00
omakaista.fi!szaka fa02ef73bf Almost completely rewritten, extended with the data relocation
related issues.

2003/11/04 13:06:21+00:00 cantab.net!aia21
Auto merged

2003/10/29 13:34:28+00:00 cantab.net!aia21
Auto merged

2003/10/29 13:30:17+00:00 flatcap.org!ntfs
updates from Szaka

(Logical change 1.299)
2004-03-06 17:42:28 +00:00
omakaista.fi!szaka 278d707401 Added some related utils to "SEE ALSO".
2003/11/12 18:16:17+00:00 flatcap.org!ntfs
Auto merged

2003/11/04 13:06:21+00:00 cantab.net!aia21
Auto merged

2003/10/29 13:34:28+00:00 cantab.net!aia21
Auto merged

2003/10/29 13:30:17+00:00 flatcap.org!ntfs
updates from Szaka

(Logical change 1.299)
2004-03-06 17:42:28 +00:00
omakaista.fi!szaka 7d763a6b29 Added relocation support with the continuous help of Miguel Lastra
and his collegues at the University of Granada, Dewey M. Sasser,
Erik Meade, Martin Fick, Sandro Hawke, Dave Croal, Lorrin Nelson,
Geert Hendrickx, Robert Bjorkman and Richard Burdick.

(Logical change 1.299)
2004-03-06 17:42:28 +00:00
flatcap.org!ntfs 0e41f6aab1 remove unnecessary values for enum
struct for saving last used cluster

2003/10/29 10:25:42+00:00 flatcap.org!ntfs
display cluster info about a file / inode

(Logical change 1.299)
2004-03-06 17:42:28 +00:00
flatcap.org!ntfs 3a6065e753 one more sign problem
2003/11/02 23:22:27+00:00 flatcap.org!ntfs

(Logical change 1.299)
2004-03-06 17:42:28 +00:00
flatcap.org!ntfs e4f970bfc1 no changes
2003/11/02 23:22:27+00:00 flatcap.org!ntfs
move cluster_find to separate source module
implement last option

2003/10/29 10:25:42+00:00 flatcap.org!ntfs
display cluster info about a file / inode

(Logical change 1.299)
2004-03-06 17:42:28 +00:00
flatcap.org!ntfs 100d6d7deb extra options
2003/10/28 15:48:10+00:00 flatcap.org!ntfs

(Logical change 1.299)
2004-03-06 17:42:28 +00:00
flatcap.org!ntfs 86716d6d62 Initial revision 2004-03-06 17:42:28 +00:00
flatcap.org!ntfs 65182be272 Auto merged
2003/10/28 15:50:53+00:00 flatcap.org!ntfs
some cut'n'pasted code to wipe the pagefile and logfile

(Logical change 1.299)
2004-03-06 17:42:28 +00:00
flatcap.org!ntfs c6b229f6d4 (Logical change 1.299) 2004-03-06 17:42:28 +00:00
cantab.net!aia21 e37d6644b2 Fix what seems to be a cut'n'paste error... bitmap_alloc instead of bitmap_free
2003/10/31 18:10:18+00:00 flatcap.org!ntfs
big reorganisation
extra options
will move any attributes now, including dirs
(prevented it touching metadata)

2003/10/29 18:13:30+00:00 flatcap.org!ntfs
move dump_mem to utils

2003/10/28 15:48:10+00:00 flatcap.org!ntfs

(Logical change 1.299)
2004-03-06 17:42:28 +00:00
cantab.net!aia21 76364af60e Initial revision 2004-03-06 17:42:28 +00:00
cantab.net!aia21 6636c33a6d Fix signed/unsigned warnings.
2004/01/06 11:56:52+00:00 cantab.net!aia21
Add attribute and inode options to ntfscat (Szaka, modified by me).

2003/11/13 14:52:41+00:00 cantab.net!aia21
Merge

2003/10/28 15:50:53+00:00 flatcap.org!ntfs
prepare to cat other attributes

(Logical change 1.299)
2004-03-06 17:42:28 +00:00
cantab.net!aia21 476ec32ef8 Auto merged
2004/03/04 17:05:35+00:00 cantab.net!aia21
manual merge fallout.

2004/03/04 17:04:08+00:00 cantab.net!aia21
Auto merged

2004/02/27 17:41:05+00:00 cantab.net!aia21
merge fall out

2004/02/27 17:36:16+00:00 cantab.net!aia21
Auto merged

2004/02/26 11:42:15+00:00 cantab.net!aia21
Auto merged

2004/02/25 14:45:54+00:00 cantab.net!aia21
update

2004/02/25 14:43:31+00:00 cantab.net!aia21
Auto merged

2004/01/26 11:20:15+00:00 cantab.net!aia21
merge

2004/01/26 11:18:38+00:00 cantab.net!aia21
Auto merged

2004/01/22 23:55:32+00:00 cantab.net!aia21
Auto merged

2004/01/21 12:36:41+00:00 cantab.net!aia21
Auto merged

2004/01/15 17:02:30+00:00 cantab.net!aia21
Run ./autogen.sh on SuSE 9.0.

2004/01/15 16:58:19+00:00 cantab.net!aia21
Auto merged

2003/11/19 16:05:20+00:00 cantab.net!aia21
Auto merged

2003/11/07 18:26:20+00:00 cantab.net!aia21
Auto merged

2003/11/07 10:16:23+00:00 cantab.net!aia21
Auto merged

2003/11/04 13:06:21+00:00 cantab.net!aia21
Auto merged

2003/11/02 23:22:27+00:00 flatcap.org!ntfs
add cluster to the build

2003/10/28 15:48:10+00:00 flatcap.org!ntfs
add ntfsmove to the build

(Logical change 1.299)
2004-03-06 17:42:28 +00:00
cantab.net!aia21 d55b3f83c5 Auto merged
2004/02/25 14:43:31+00:00 cantab.net!aia21
Auto merged

2003/11/19 16:05:20+00:00 cantab.net!aia21
Auto merged

2003/11/02 23:22:27+00:00 flatcap.org!ntfs
add cluster to the build

2003/10/28 15:48:10+00:00 flatcap.org!ntfs
add ntfsmove to the build

(Logical change 1.299)
2004-03-06 17:42:28 +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 d6c51bf64c Auto merged
2004/01/07 15:48:41+00:00 cantab.net!aia21
Auto merged

2003/11/02 23:22:27+00:00 flatcap.org!ntfs
declare [EQV]printf

2003/10/29 18:13:30+00:00 flatcap.org!ntfs
added dump_mem

(Logical change 1.299)
2004-03-06 17:42:28 +00:00
cantab.net!aia21 2da888cefe Auto merged
2003/12/03 18:23:31+00:00 flatcap.org!ntfs
fix: output option was being ignored

(Logical change 1.299)
2004-03-06 17:42:28 +00:00
cantab.net!aia21 fdacd99518 Add attribute and inode options to ntfscat (Szaka, modified by me).
(Logical change 1.299)
2004-03-06 17:42:28 +00:00
cantab.net!aia21 654f3b7721 Rename 'opt' struct member stdout to std_out because stdout is a
macro on Cygwin and compilation fails. (Yuval Fledel)

(Logical change 1.296)
2004-03-05 11:27:01 +00:00
cantab.net!aia21 a2e4ff7cb6 Rename INCLUDES to AM_CPPFLAGS.
(Logical change 1.294)
2004-03-05 11:04:40 +00:00
cantab.net!aia21 a6629ede03 And another compiler warning.
(Logical change 1.292)
2004-03-04 17:03:27 +00:00
cantab.net!aia21 6b66bce89d update
(Logical change 1.291)
2004-03-04 16:59:58 +00:00
cantab.net!aia21 852af74c58 Fix mkntfs for large volumes where the number of clusters would
exceed the maximum of 32 bits and mkntfs would segfault.  Now we
increase the cluster size until the number of clusters no longer
exceeds 32 bits or the maximum cluster size is reached.  We then
exit with an appropriate error message.  (Thanks to Szaka for the
bug report.)
Also fix some compiler warnings in mkntfs with --enable-maintainer-mode.

(Logical change 1.291)
2004-03-04 16:59:58 +00:00
cantab.net!aia21 743f2c3632 Fix compiler warning with --enable-maintainer-mode.
(Logical change 1.291)
2004-03-04 16:59:58 +00:00
cantab.net!aia21 ddc702a582 Update to 1.8.6-WIP.
(Logical change 1.289)
2004-02-29 14:20:03 +00:00
cantab.net!aia21 40261dcd62 Update.
(Logical change 1.287)
2004-02-27 16:44:10 +00:00
cantab.net!aia21 6eb9812220 - Fix a duplicated free() in mkntfs. (Andras Erdei)
- Fix option display in mkntfs. (Andras Erdei)

(Logical change 1.285)
2004-02-26 13:48:16 +00:00
cantab.net!aia21 42e3faba21 Fix the fix. (-:
(Logical change 1.284)
2004-02-26 12:08:23 +00:00
cantab.net!aia21 f0ad8c7ed0 Update
(Logical change 1.283)
2004-02-26 11:41:48 +00:00
cantab.net!aia21 6cecd0e726 Detect NO_NTFS_DEVICE_DEFAULT_IO_OPS and #error appropriately.
(Logical change 1.283)
2004-02-26 11:41:48 +00:00
cantab.net!aia21 536b80cb56 Fix bug in stoucs(). Thanks to Andras Erdei.
(Logical change 1.281)
2004-02-25 17:14:40 +00:00
cantab.net!aia21 1f2547829c Update for move of include files.
(Logical change 1.280)
2004-02-25 14:21:14 +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 a033e9dfa0 Add use of BLKGETSIZE64 and fix typos in debug output.
(Logical change 1.278)
2004-02-17 14:01:22 +00:00
omakaista.fi!szaka 46f0709d29 BLKGETSIZE ioctl uses unsigned long, not long for the size parameter.
Thus the maximum supported device is 2 TB on 32 bit platforms
instead of only 1 TB.


(Logical change 1.277)
2004-02-17 03:40:22 +00:00
cantab.net!aia21 5fd2457c54 Fixup ntfsinfo a little bit and give its manpage a small update to
reflect reality a little better.

(Logical change 1.276)
2004-02-05 16:51:10 +00:00
cantab.net!aia21 0dc21e3d77 Start 1.8.5-WIP.
(Logical change 1.274)
2004-01-26 10:19:35 +00:00
cantab.net!aia21 26fbe3a101 Update for latest libtool/autoconf/automake.
(Logical change 1.273)
2004-01-26 09:53:57 +00:00
cantab.net!aia21 cf2c13e079 Start 1.8.4-WIP
(Logical change 1.271)
2004-01-22 15:43:54 +00:00
cantab.net!aia21 892f097d8c Change Lode's email address.
(Logical change 1.270)
2004-01-22 14:56:39 +00:00
cantab.net!aia21 b260aaa7fc Build update.
(Logical change 1.269)
2004-01-21 12:33:31 +00:00