Commit Graph

3164 Commits (f5a2ae79a9b0e59d002bbad478bcc11d1a1091f3)
 

Author SHA1 Message Date
Yura Pakhuchiy f5a2ae79a9 Improve endian self-test per discussion with Anton. 2007-08-23 17:39:00 +03:00
Yura Pakhuchiy c0b691ca17 Merge --enable-debug and --enable-debug-logging. Introduce --enable-sparse. 2007-08-22 21:29:19 +03:00
Yura Pakhuchiy 391929cff3 Export NTFS_EFS string 2007-08-22 19:31:24 +03:00
Yura Pakhuchiy 6df32ed1ab ntfsinfo: Dump content of LOGGED_UTILITY_STREAM in hex in verbose mode 2007-08-22 19:30:12 +03:00
Yura Pakhuchiy 4b58df6817 New API: ntfs_attr_get_name
Add new API ntfs_attr_get_name - returns pointer to unicode name of attribute.

TODO: I believe we have several such local helpers in ntfsprogs and libntfs.
Find and replace them with this one.
2007-08-22 19:28:44 +03:00
Yura Pakhuchiy ad0c5f59c9 Transparently integrate reading of encrypted files into library
This adds crypto.[ch], several exported functions that you are not interested
to use and dependency on >=libconfig-1.0.1 to read list of PFX files with keys.
See libntfs/config for example configuration file.
2007-08-22 16:55:57 +03:00
Yura Pakhuchiy efe2c9642c minor cleanup 2007-08-16 13:52:18 +03:00
Yura Pakhuchiy 09affc5d42 Whitespaces cleanup 2007-07-31 20:52:36 +03:00
Yura Pakhuchiy 67f0ef364b fix CREDITS to be in utf8, not in mixed encodings 2007-07-23 18:11:39 +03:00
Yura Pakhuchiy ea4d352f7e Fix sparse warnings from git HEAD version 2007-07-21 22:01:57 +03:00
Yura Pakhuchiy 87b686f9c9 Undef __bitwise and __force in case someone else defined them before us 2007-07-21 15:13:57 +03:00
Yura Pakhuchiy 311ecc507e Memleak 2007-07-21 15:11:42 +03:00
Yura Pakhuchiy 1947aacb89 Cleanup 2007-07-01 01:52:48 +03:00
Yura Pakhuchiy 8981594cf0 ntfsdecrypt: Fix sparse warnings. 2007-06-30 20:19:25 +03:00
Yura Pakhuchiy 7a68bb3ea0 Endian fixes for gnome-vfs module. Thanks to Anton for tip. 2007-06-10 14:30:41 +03:00
Yura Pakhuchiy d059090386 info: nice LCN dumping 2007-06-08 13:48:28 +03:00
Yura Pakhuchiy 0d264b7d25 Introduce sparse endian annotations. Adopt library (also fix 2 real bugs) and progs (lots of bugs). 2007-06-08 13:47:57 +03:00
Yura Pakhuchiy def36146b7 Sparse 0.3 do not longer requires this workaround! 2007-06-08 13:46:10 +03:00
Yura Pakhuchiy 48c336fd6a O(1) mapping pairs update for normal files 2007-06-08 13:45:28 +03:00
Yura Pakhuchiy b99d331f78 We do not need to map whole runlist in this case, only until @pos. Introduce ntfs_attr_map_runlist_range to implement this. 2007-06-08 13:41:10 +03:00
Yura Pakhuchiy e404ce8203 Fix 64bit warnings (Yuval) 2007-06-08 13:36:37 +03:00
Yura Pakhuchiy e6620be16d Do not create holes in ntfs_attr_pwrite that will be instantiated right after creation
* Add new API: __ntfs_attr_truncate that allow user to select whether holes should be created or clusters allocated
* Update ntfs_attr_pwrite and ntfscp to use it.
2007-06-08 13:35:47 +03:00
Yura Pakhuchiy 52d034e5f3 ntfsmount: fix errno in truncate() operation 2007-06-08 13:34:16 +03:00
aia21 62d49cb175 Minor updates for OSX compatibility, i.e. glibtoolize not libtoolize, and
automake 1.10 fix, etc.
2007-03-19 14:39:44 +00:00
yura 2c7fd02349 ntfsmount: use utimens() instead of deprecated utime(). 2007-03-13 18:52:02 +00:00
yura 48399b98b3 cleanup 2007-03-13 18:45:51 +00:00
yura 01dad951c2 minor cleanups 2007-03-13 18:39:47 +00:00
aia21 3575e2089e - mkntfs: Use Vista $Boot rather than XP one. (Anton) 2007-03-06 15:44:30 +00:00
yura 857573a2e4 minor style fix and changelog description 2007-01-07 19:19:53 +00:00
uvman dcc13dca8b ni->allocated_size for resident files is rounded up to multiples of 8. A '>> 9' on such value may round up or down. Fix it to always round up. Samba 3 use st_blocks to detect if a file is sparse. ActiveSync 4 fails on sparse files. 2007-01-07 19:08:22 +00:00
yura 197a4cc756 - upgrade to new shiny fuse option parsing API instead of my old hackish one (more readable and -4kb code)
- remove show_sys_files and add case_insensitive options
2007-01-03 18:27:10 +00:00
aia21 f6adc3fc78 - mkntfs: Create more Vista like volumes. We now match the security
descriptor attributes (but not yet the security descriptors stored in
  $Secure).  (Anton)
- libntfs: Rewrite ntfs_upcase_table_build() to generate a Vista
  compatible upcase table ($UpCase).  (Anton)
- mkntfs: Remove own generation of upcase table, i.e. delete
  ntfsprogs/upcase.[ch] and use ntfs_upcase_table_build() supplied by
  libntfs.  (Anton)
2006-12-19 16:31:52 +00:00
yura 452b99f01b oops, committed temporary thing by accident
hope this will work for everyone
2006-12-18 13:39:23 +00:00
yura bedd6f4a13 add some debug output useful on freebsd for aligned access testing 2006-12-18 13:32:58 +00:00
yura 3c668b7d03 - O_EXCL already handled by MNT_NOT_EXCLUSIVE at more early stage
- fix comments
2006-12-15 17:00:02 +00:00
aia21 1fa522a0a1 - libntfs: Add support for FreeBSD 5.0+ sector aligned access
requirements.  (Max Khon)

With some modifications from me...
2006-12-15 15:21:27 +00:00
aia21 0911eb8b0d Make volumes created with mkntfs more compliant with Vista (still not finished). 2006-12-15 14:52:43 +00:00
aia21 5f3079c2bb Fix ntfstruncate build breakage. 2006-12-13 10:51:32 +00:00
aia21 19257df7f0 Update version to 2.0.0, update NEWS, update mkntfs man page and mkntfs itself.
- mkntfs: As announced, remove the deprecated support for creation of
  NTFS 1.2/3.0 volumes.  We now create NTFS 3.1 volumes only.  (Anton)
- mkntfs: Remove lots of unused/unneeded debugging code.  (Anton)
2006-12-13 10:46:49 +00:00
aia21 78c46fd3c3 - Do not create object id attribute on NTFS 1.2 volumes.
- Create object id attribute after volume flags attribute.
2006-12-13 09:17:14 +00:00
aia21 1a4fb3431c - mkntfs: Generate a random DCE compliant UUID for the created volume
and include --with-uuid[=PFX] and --without-uuid options.  (Anton)
- configure.ac: Set language to C.  (Anton)
- mkntfs: Always set default cluster size to 4096 bytes regardless of
  volume size.  This is what Windows Vista does and it makes perfect
  sense from a performance point of view.  (Anton)
2006-12-13 00:11:50 +00:00
yura 914cf8f2be Workaround for this bogus s64 warnings. Thanks, Linus! 2006-12-12 20:27:32 +00:00
yura 10b22550cd more sparse fixes
left only endianness and this stupid problems with s64
2006-12-12 19:00:00 +00:00
yura 2e44b6ca7c fix some sparse warnings
btw, it looks like sparse loses it head when it see something like:

void foo(s64 *bar)
{
	...
}

...

{
	s64 baz;

	foo(&baz);
	...
}
2006-12-12 15:44:52 +00:00
yura 7b60afcc2f fix sparse errors. and first steps towards endianness checking 2006-12-12 15:02:25 +00:00
aia21 a38ead2f20 Szaka prefers to have the lofgile reset and dirty bit setting done even if they
are already done so remove the conditionals I added.
2006-12-11 10:41:34 +00:00
yura 2b611a1461 fix clusters per index block calculation (Szaka) 2006-12-11 03:16:22 +00:00
yura c616e29663 ntfsck by Yuval to extra dist with minor changes from me 2006-12-11 03:06:35 +00:00
yura 19089b08bd one place with mount option description 2006-12-11 03:03:30 +00:00
yura 03fabce6eb o fix magicNTFS defenition
o remove NTFS_SB_MAGIC because it is unusefull
o rename magicNTFS -> NTFS_SB_MAGIC
o make bootsect.c use NTFS_SB_MAGIC instead of hardcoded value
2006-12-11 03:02:23 +00:00