yura
1b1a135bbd
one more endian bug in ntfsinfo
2006-10-30 23:23:40 +00:00
uvman
87d87073c7
The periodic 'int is not neccessarily 32bit' fixes.
2006-10-28 23:45:22 +00:00
uvman
ff55ecb513
Whitespace cleanup
2006-10-27 12:24:29 +00:00
aia21
280c74470f
Print both decimal and hexadecimal in ntfsinfo.
...
(This follows several patches where we kept switching things from decimal
to hex to decimal because different people apparently use different number
systems in their heads. I am on the hex front myself so I added hex output
which was taken out recently by Szaka so he probably is on the dec front...
In any case having both should make us all happy...)
2006-08-16 09:24:19 +00:00
aia21
a36323bc62
Make ntfsinfo more resilient to corrupt metadata. Otherwise it can cause an
...
infinite loop...
2006-08-16 08:14:22 +00:00
yura
5a36ead2f4
fix endianness in ntfsinfo preparation fix to index code
...
btw, Szaka, you really should consider installing some cross-compiler for BE systems and qemu to test your changes.
2006-08-14 03:52:09 +00:00
szaka
cccf6fd94d
Dump all VCN's in the same numeral system
2006-08-13 19:09:22 +00:00
szaka
3664395e5f
ntfs_dump_flags(): dump FILE_ATTR_DIRECTORY
2006-08-13 19:02:30 +00:00
szaka
a89dce7b38
convert all malloc() to ntfs_malloc()
2006-08-13 18:59:56 +00:00
szaka
babfacfbd2
dump padding between the Update Sequence Array and the first attribute
2006-08-13 18:58:21 +00:00
szaka
551812d8bc
use MFT_RECORD *mrec during dumps
2006-08-13 18:57:37 +00:00
szaka
af055de0c4
fix missing bracket in the former patch
2006-08-13 18:56:25 +00:00
szaka
074b025366
ntfs_dump_index_entries(): cleanup subnode VCN calculation
2006-08-13 18:51:55 +00:00
szaka
2daa9f3c94
add ntfs_dump_bytes(); ntfs_dump_attr_list(): dump ATTR_LIST_ENTRY paddings
2006-08-13 18:48:31 +00:00
szaka
952926725d
ntfs_dump_attr_index_allocation(): dump number of entries per block too
2006-08-13 18:46:22 +00:00
szaka
3c06d7d9c5
ntfs_dump_attr_index_allocation(): don't return if an INDX is corrupt
2006-08-13 18:45:57 +00:00
szaka
0fce94937b
redirect stderr to /dev/null if --debug isn't used in debug mode
2006-08-13 18:44:46 +00:00
szaka
0573a8ff53
fix segfaults when SDS has absolute security descriptor
2006-08-13 18:43:12 +00:00
szaka
89ded2378c
make stdout line buffered
2006-08-13 18:41:13 +00:00
szaka
10e6070b18
fix output indenting
2006-08-13 18:40:35 +00:00
szaka
b51d98dd90
add ntfs_dump_index_block() and use it
2006-08-13 18:39:35 +00:00
szaka
a5bb7301ec
add ntfs_dump_index_header(); dump full ia INDEX_HEADER
2006-08-13 18:35:05 +00:00
szaka
beb044b036
rename 'Flags:' fields to be unique
2006-08-13 18:23:01 +00:00
yura
5369c19613
support missing owner and group in sd
2006-07-13 02:35:32 +00:00
yura
dde61e1091
ntfsinfo: cosmetic fix in SDS dumping
2006-07-01 11:14:08 +00:00
aia21
c0f991b525
- Fix STUPID vcn printing bug in ntfsinfo that waster over 18 hours of my life
...
trying to debug the ntfs driver when it was ntfsinfo that was wrong. )))-:
- Switch vcn output in index listings to show the vcn in hex not decimal.
- Show index block flags for each index block.
2006-05-20 21:27:15 +00:00
szaka
4f13e396a4
ntfs_dump_attr_standard_information(): don't dump some fields multiply times
2006-04-23 11:01:07 +00:00
szaka
63b431150e
Dump USA, USN and LSN for index records
2006-04-23 10:06:39 +00:00
antona
5cd2da96ac
Fix compile warnings that have sneaked in.
2006-04-19 22:03:58 +00:00
antona
f399140b7d
- Improve ntfsinfo to dump standard info completely and filename
...
attribute completely and index entry (filename) completely and all in
correct order. Essential for hunting bugs in directory operations
code... (Anton)
2006-04-19 21:43:11 +00:00
szaka
c7a53338c0
Fix all incorrect getopt_long() return value usages.
2006-04-05 12:43:06 +00:00
szaka
0887a0e261
Update a few copyrights
2006-03-29 22:54:22 +00:00
antona
7b5472724f
fix an ommission in Szaka's cleanup.
2006-03-29 22:44:17 +00:00
szaka
3ffb67ef0f
Move $ObjId/$O data dumping to its logical place, from ntfs_dump_index_key()
...
to ntfs_dump_index_data()
2006-03-29 22:35:54 +00:00
szaka
7a776e2810
ntfsinfo: dump either a minimal (default) or the entire attribute
...
header (--verbose) for all attributes types. Also removed a lot of
redundant code and made some formatting corrections.
2006-03-29 22:29:26 +00:00
antona
8bf1dc2232
Update my copyright for the files changed in the last commits.
2006-03-27 22:49:50 +00:00
antona
588ef46e86
Change ntfsinfo to dump the key data as well as the keys themselves
...
when dumping the $ObjId/$O index. (Anton)
2006-03-27 22:46:13 +00:00
szaka
ddc558f1ec
libntfs: add ntfs_index_root_get() which reads the index root of an attribute
2006-03-27 21:14:56 +00:00
szaka
a8e6766e43
make get_index_root() slightly sexier
2006-03-27 20:50:51 +00:00
szaka
de46da8ade
cleanup get_index_root() named attribute usage
2006-03-27 20:27:38 +00:00
szaka
65c67d5f84
Use more meaningful error messages
2006-03-27 20:14:22 +00:00
szaka
9b801db7c8
libntfs: add ntfs_attr_readall() which reads the entire data from an attribute
2006-03-27 20:01:36 +00:00
szaka
b7aee150a4
ntfs_attr_readall(): fix ntfs_attr leaks in error cases
2006-03-27 19:33:20 +00:00
szaka
d511f34dce
fix attr->name_length endianess conversions: name_length is u8, not u16
2006-03-26 18:14:33 +00:00
szaka
775b208f68
ntfsinfo: fix two freed memory usage when dumping $SDS and index allocation
...
entries; factor out ntfs_attr_readall();
2006-03-26 16:49:42 +00:00
szaka
31fac08864
Dump MFT Record Header fields which weren't yet
2006-02-05 18:56:04 +00:00
szaka
e57cc4521a
Add CHKDSK_UNDERWAY to ntfsinfo
2006-02-03 18:44:13 +00:00
szaka
0130863e72
Improved dumping SDS entries: stop at bogus values instead of crashing and
...
don't stop at empty entries
2006-01-29 01:24:24 +00:00
szaka
53883b3fde
Fix off-by-one in ACL dumping, one ACE was missed
2006-01-14 00:54:51 +00:00
szaka
a79dc381b7
ntfsinfo: dump $Secure:$SDS in verbose mode
2006-01-07 08:20:33 +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
flatcap
af6f7606e4
tidy evil roff usage
...
add/document missing options
add missing authors
standardise program usage()
standardise options look
update download and contact details
2005-11-21 21:25:14 +00:00
szaka
e90fdddc08
- added INDEX_ATTR_DIRECTORY_I30 timestamps dumping
...
- ntfs_dump_index_entries(): reformatted switch to fit the used code style
- ntfs_dump_index_entries(): removed redundant opts.verbose check
- whitespace cleanup
2005-11-18 00:29:36 +00:00
szaka
1b856b5451
Dump $Secure $SDH and $SII, $Quota $O and $R index attribute data;
...
Fix printf field width specifiers
2005-11-16 00:13:10 +00:00
szaka
fc103ec4b0
output cosmetic change; explicit check for /$Extend/$ObjId in get_index_attr_type()
2005-11-12 12:59:20 +00:00
uvman
4137f63c7a
Report the MFT record flags properly in ntfsinfo.
2005-11-11 23:55:14 +00:00
uvman
0d651e54d3
Give a better name to MFT_RECORD_IS_8 and rename FILE_ATTR_DUP_* to match this meaning.
2005-11-11 23:35:56 +00:00
szaka
c1fb378985
VIEW_INDEX is also present in $STANDARD_INFORMATION
2005-11-07 22:28:46 +00:00
uvman
a0665cf5bd
Add myself to the copyright list on ntfsinfo.c
2005-11-06 14:18:12 +00:00
szaka
44b2d2333c
Dump $Quota:$O key SID according to the standard textual representation
2005-11-03 01:43:27 +00:00
szaka
8cfde9cdfd
Fix $Quota::$O key sub authority dumping; dump authorities in hexa
2005-11-01 23:14:34 +00:00
szaka
c47717581a
dump index attribute keys
2005-10-30 23:31:44 +00:00
szaka
370bea1395
ntfsinfo: figure out and dump index attribute types
2005-10-30 22:53:38 +00:00
flatcap
a009bf0b5a
perror -> ntfs_log_perror
2005-10-28 18:57:06 +00:00
flatcap
325ab7c64d
mistake parsing quiet
2005-10-28 18:26:49 +00:00
szaka
d5a925b3bf
ntfsinfo and ntfsls follow the convention how other utilities read
...
the device argument: no -d or --device option is needed
2005-10-28 18:00:44 +00:00
flatcap
755ef674e8
upgrade to use new logging
...
change stderror messages to ntfs_log_perror
note: since the logging changes to utils.c, the --quiet option doesn't do anything
2005-10-28 16:47:41 +00:00
flatcap
8a584700c5
whitespace fixes - no code changes
2005-10-26 22:54:57 +00:00
flatcap
1f68df3f69
shorten ntfs_logging_* to ntfs_log_*
2005-10-26 20:46:37 +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
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
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
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
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
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
antona
6124aafffb
Move timeconv to ntfstime, update changelog, and news for new release.
2005-08-04 09:59:39 +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
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
antona
82fc3cd557
Fix compiler warning under Cygwin.
2005-07-18 20:38:33 +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
7a142ef54c
got bored. don't read the diffs.
2005-07-06 22:47:01 +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
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
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
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
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
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
0a68326fc6
fix bug spotted bug gcc4 in error handling of ntfsinfo
...
(Logical change 1.661)
2005-01-17 12:04:37 +00:00
(none)!yura
88f940caed
ntfsinfo: dump flags names for STANDARD_INFORMATION and FILE_NAME.
...
(Logical change 1.647)
2004-12-22 14:22:58 +00:00
(none)!yura
ff195c0f84
ntfsinfo: print "file attributes" field for $FILE_NAME attribute.
...
(Logical change 1.643)
2004-11-27 11:20:32 +00:00
cantab.net!aia21
e461268d28
No need to allocate a copy of the attribute name to be passed to
...
ntfs_attr_open().
(Logical change 1.576)
2004-09-21 12:10:39 +00:00