Commit Graph

1017 Commits (952926725dedb78a6e41dcad64bb88b2a53c49d7)

Author SHA1 Message Date
antona 135282539b Fixes to previous commit. 2006-02-03 23:11:35 +00:00
antona af9fd39611 Wheee! Lots of last minute fixes and enhancements.
- Compiler warning fixes for gnome-vfs and fuse modules. (Anton)
- Change volume mounting (actually device opening) to happen with
  O_EXCL bit set so at least on Linux no one can change the device
  block size under our feet.  (Anton)
- Change volume mounting and mkntfs to set the device block size to the
  sector size using BLKBSZSET ioctl (Linux only).  This should be
  optimal for performance and should fixes the bug of not being able to
  create the backup boot sector if the number of sectors on the device
  is odd, the sector size is 512 bytes, and the kernel is 2.4.  (Anton)
- Enforce cluster size, mft record size, and index record size to be at
  least equal to the sector size and verify they are still valid and in
  particular display a warning message if the volume will not be
  mountable by the kernel driver (it requires mft record size and index
  record size to be below or equal to the system page size which we
  determine using sysconf()).  (Anton)
2006-02-03 22:19:17 +00:00
szaka e57cc4521a Add CHKDSK_UNDERWAY to ntfsinfo 2006-02-03 18:44:13 +00:00
antona e236c14c4a Prepare for next release. 2006-02-02 14:40:53 +00:00
cha0smaster ad13b78697 ntfsmount: fix 25 API compatibility 2006-02-01 23:55:07 +00:00
cha0smaster c11567824a ntfsmount: fix ls output in case some files can not be accessed due to windows named data streams accees interface 2006-02-01 18:24:58 +00:00
cha0smaster 63f5ddb8c2 ntfsmount:
Support FUSE versions from 2.3.0 to 2.5.1 under Linux and 2.5.X under FreeBSD.
Warning tested only under FUSE-2.4.1. Will test under FUSE-2.5.1 at home.
2006-02-01 17:37:34 +00:00
cha0smaster ead758ed7c ntfsmount: Rename "succeed_chmod" -> "silent". Do not return error on chown too. 2006-01-30 21:53:42 +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
cha0smaster 8410f3b00b minor change 2006-01-25 23:36:09 +00:00
cha0smaster c66e272987 update about direct_io 2006-01-24 16:57:47 +00:00
szaka 6616612ea6 Set the size of the $SECURITY_DESCRIPTOR of the root directory appropriately
and as 'format' also does (the extra space was unused garbage)
2006-01-15 12:55:04 +00:00
szaka 53883b3fde Fix off-by-one in ACL dumping, one ACE was missed 2006-01-14 00:54:51 +00:00
szaka 6f05bf0407 Refer by the sort URL to the manual pages 2006-01-08 21:01:23 +00:00
szaka 35aa4a725b Fix URL to the manual pages on the web 2006-01-08 20:57:00 +00:00
szaka a88f330d2b Fix some typos 2006-01-08 15:12:19 +00:00
szaka dc22f3e142 Adjust $LogFile size for 3.1 volumes which got much bigger (the small
$LogFile became a performance bootleneck for the increasingly faster disks)
2006-01-08 14:54:55 +00:00
szaka 6b36031ff4 More manual reverts, updates 2006-01-07 22:21:25 +00:00
szaka 68290078e1 Revert to the unambiguous update dates for all manual pages 2006-01-07 18:41:38 +00:00
szaka 67c087d77f Version 3.0 isn't supported (wasn't checked) 2006-01-07 15:30:19 +00:00
szaka 98c16f8ae0 Change the NTFS version short option from the cryptic -w to -N 2006-01-07 09:29:29 +00:00
szaka 283db0a99e Don't create SDS entries which aren't needed 2006-01-07 08:31:09 +00:00
szaka a79dc381b7 ntfsinfo: dump $Secure:$SDS in verbose mode 2006-01-07 08:20:33 +00:00
szaka d003694463 Fix more formatting broken by somebody's "cleanup" 2006-01-07 06:26:43 +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
szaka 58e93f46e0 Restore more formatting, etc issues broken by white space, etc cleanups 2005-12-07 21:52:46 +00:00
szaka ca689776fa Fix --info option description which got broken by a white space cleanup 2005-12-07 21:04:37 +00:00
cha0smaster de23d9f540 determine to where pass kernel_cache option without #if's 2005-12-03 16:40:20 +00:00
cha0smaster e47ed2e413 more warning fixes 2005-12-02 17:09:41 +00:00
cha0smaster 96e6c64860 fix error message 2005-12-01 20:46:03 +00:00
cha0smaster 01787c8c54 update site 2005-12-01 20:44:18 +00:00
cha0smaster d4872f5045 ntfsmount: Mount point is optional parameter 2005-12-01 13:15:49 +00:00
cha0smaster 77fb717ef3 Fix warnings on FreeBSD 2005-11-30 16:58:03 +00:00
cha0smaster 3001c88d64 Easier FreeBSD support, allow FUSE >= 2.3 for FreeBSD 2005-11-30 16:54:11 +00:00
cha0smaster bb864c9f98 update 2005-11-29 18:03:28 +00:00
cha0smaster 172a8bbe4f oops, should do FUSE_USE_VERSION magic before including <fuse.h> 2005-11-29 18:00:06 +00:00
cha0smaster c705170a5f ntfsmount: Add FreeBSD support. 2005-11-29 17:57:53 +00:00
cha0smaster 8298b35bc8 use ntfstime.h instead of time.h 2005-11-27 16:50:45 +00:00
cha0smaster 8afff2c7e2 minor fix to usage output 2005-11-27 15:26:39 +00:00
cha0smaster 1a6c6417d9 improve readability 2005-11-27 15:26:02 +00:00
szaka 22ff6e8c41 remove old, unused logging macros 2005-11-27 12:35:29 +00:00
szaka c940df9079 remove usage of old logging macros 2005-11-27 12:31:39 +00:00
szaka f827828d5c All errors go to stdout either directly or by redirection from stderr 2005-11-27 11:51:10 +00:00
szaka 93fabaf0c4 Removed usage of the old logging macros 2005-11-27 11:38:06 +00:00
flatcap 71c5c068b5 use the new logging
add a few function comments (to help folding)
2005-11-26 23:53:22 +00:00
szaka f1a50e9bd8 Removed old logging macro usage 2005-11-26 17:58:17 +00:00
szaka 7e9f1270e2 clean up 2005-11-26 01:46:20 +00:00
cha0smaster 25c31eb40b ntfsmount: add static inline to mark free space outdated (Thanks Szaka) 2005-11-25 14:31:29 +00:00
cha0smaster e0787d0983 ntfsmount: Mark information about free MFT records and clusters outdate after write operations everywhere. 2005-11-24 15:06:11 +00:00
flatcap 493b3a6bcd minor corrections 2005-11-22 01:14:36 +00:00
flatcap c7c229bd15 more minor manual mending 2005-11-22 00:17:23 +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
flatcap abf0cfba5d use new logging 2005-11-20 14:15:33 +00:00
flatcap 14821aa976 remove my temporaray code/comments 2005-11-20 11:21:54 +00:00
szaka d7f102b670 fix typo 2005-11-20 00:18:09 +00:00
szaka 927cd331d8 Create files with sequence numbers starting from 1 in $Extend (part 2) 2005-11-20 00:06:11 +00:00
flatcap 68a9bdd3a2 every function returns 2005-11-19 16:54:28 +00:00
flatcap 03fa945ee0 banish the e-word 2005-11-19 16:44:36 +00:00
flatcap 80a2ddee09 moved ioctl to device.c
remove g_volume_size (unnecessary)
Reworked mkntfs_override_phys_params:
  Split up complicated error expressions
  Made error messages more legible
  Demoted some errors to warnings
  Factored out the "Windows won't boot" message
2005-11-19 14:56:24 +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 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 d311052205 Create files with sequence numbers starting from 1 in $Extend 2005-11-18 00:14:05 +00:00
szaka e4cb2b5a4e - switched all calloc() calls to ntfs_calloc()
- fixed all missing ntfs_calloc() error checking
2005-11-16 22:07:48 +00:00
szaka 1e14b996c0 - fixed -T/--zero-time for 3.x volumes
- reordered initialization of $Quota indexes
- added ntfs_calloc()
- fixed all missing memory allocation error handlings in initialize_quota()
2005-11-16 21:36:20 +00:00
cha0smaster f7b087b07d it seems that atime updates in fuse a broken, handle them ourselves 2005-11-16 17:09:12 +00:00
flatcap 418da4bd4b it came from space (and ate my brackets) 2005-11-16 02:58:49 +00:00
flatcap 354c6442a9 a handful more of subjective cleanups 2005-11-16 02:55:16 +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
cha0smaster 5266967632 ntfsmount: pass MS_NOATIME flag to ntfs_mount, let VFS care about access time. 2005-11-15 16:41:39 +00:00
flatcap 56c8393be0 fix memleak in create_hardlink_res
transfer ownership of attrdef and vol_name to the volume
2005-11-15 16:24:23 +00:00
flatcap fd63d57947 *ahem* zero isn't true 2005-11-15 14:48:10 +00:00
flatcap 03e481e349 tidy 8 variables whose scope was quite limited 2005-11-15 04:14:37 +00:00
szaka 025768668b Pad QUOTA_O_INDEX_DATA with the magic 32 value. 2005-11-15 01:02:12 +00:00
cha0smaster 0e808deef1 * update ntfsmount to new logging, remove all #ifdef #DEBUG, add debug option
* ntfsmount: enable kernel_cache for fuse >= 2.4.0 by default
* ntfscp fix style in code introduced by Rich
2005-11-14 12:19:39 +00:00
szaka f7f2bf570d initialize_secure(): fix segfault when non-allocated objects were referenced
(thanks to ef)
2005-11-13 22:40:19 +00:00
szaka 2db620bda1 ntfsclone: check the available free space for --save-image too 2005-11-13 21:48:35 +00:00
szaka 7b6a5ef21d Fix fs creation with 32 and 64 kB cluster size; also if only one cluster
contains all system files then fill the rest of it with empty, formatted
records as 'format' also does
2005-11-13 20:04:29 +00:00
szaka 3e459eb923 mkntfs: fix segfault when volume has more than 2^31 clusters 2005-11-13 02:38:17 +00:00
szaka f480d3f8ad Log also what actually fails, not only the reason 2005-11-12 20:52:38 +00:00
szaka 7b68432c72 Name consistently the same $SDS, $SDH and $SII fields 2005-11-12 15:35:51 +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
cha0smaster 3c2c988f96 That was ntfsmount bug with '.' and '..', no need for a workaround. 2005-11-10 21:26:41 +00:00
szaka 77a5597521 Restore correct V3.1 $AttrDef creation which got last by the recent command
line parsing rewrite. Thanks to ntfscmp for catching this! :)
2005-11-10 20:54:00 +00:00
szaka c832d4b2e2 remove ObjectID creation and all related code: ObjectID's are created and
managed based on (mostly) DLT Service requests, format doesn't care about them
2005-11-10 20:24:07 +00:00
cha0smaster 4652ad72c6 * implement symblic link creation in ntfs_create
* rename ntfs_create -> __ntfs_create. add wrapers ntfs_create{_symlink,_device}
* ntfsmount: implement .symlink
* ntfsmount: fix readdir to emulate . and .. when needed
2005-11-10 18:13:15 +00:00
flatcap f45436a9df send progress bar to the progress log (quietable by --quiet) 2005-11-10 05:28:33 +00:00
flatcap 247753251d quiet, verbose, debug don't need to be options
num_clusters, index_block_size, attr_defs(_len) moved to volume
2005-11-10 05:13:57 +00:00
flatcap 1b55906132 -u now just means undelete
-i, --inodes takes a range of inodes to be recovered
remove interactive option (it wasn't implemented)
2005-11-10 03:20:47 +00:00
flatcap 6e9be81f55 -u now just means undelete
-i, --inodes takes a range of inodes to be recovered
tidy usage
remove interactive option (it wasn't implemented)
2005-11-10 03:20:27 +00:00
cha0smaster 1254b2951c Fix stupidness introduced in latest changesets. Thanks to Yuval for comments. 2005-11-08 19:49:52 +00:00
cha0smaster 2c3dfcba27 Teech ntfs_create() to create Interix charcter and block devices. Add @dev parameter to ntfs_create() for this. 2005-11-08 16:13:17 +00:00
cha0smaster 53446b07f8 - Change @type parameter for ntfs_create() to be dev_t rather than internal NTFS_DT_* constants.
- Teech ntfs_create() to create FIFOs and sockets.
2005-11-08 15:15:37 +00:00
szaka c1fb378985 VIEW_INDEX is also present in $STANDARD_INFORMATION 2005-11-07 22:28:46 +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
cha0smaster a732881c5e see changelog 2005-11-07 20:37:07 +00:00
flatcap 23a84fe825 use ntfs_mbstoucs and ntfs_ucstombs (library) instead of stoucs and ucstos (local)
fix a few latent bugs where unicode string lengths were handled
2005-11-07 04:53:28 +00:00
flatcap 2a2ecd2abd parse_options - make sure it always spots missing options
fix mem leak in upgrade_to_large_index
fix bug - srandom called before options parsed
start separating user-type things from lib-type things
(e-22)
2005-11-06 21:40:26 +00:00
flatcap d605234a3a document new options 2005-11-06 21:26:23 +00:00
uvman a0665cf5bd Add myself to the copyright list on ntfsinfo.c 2005-11-06 14:18:12 +00:00
flatcap ef9d593949 replace the command line parsing
mkntfs now supports long options
(e-11)
2005-11-06 02:19:19 +00:00
cha0smaster 300f86ac21 * layout.h: update about special INTX files.
* ntfsmount: implement readlink() and add support of symlinks, charcter and block devices to stat().
2005-11-05 22:54:43 +00:00
flatcap de5de5a9c3 global variables don't belong in opts
highlight the global nature of the variables in their name
2005-11-05 06:11:42 +00:00
flatcap 559d3c54e4 more tidying 2005-11-05 05:03:05 +00:00
flatcap 0efe6a43f1 use new logging (not completely finished)
much code tidying
2005-11-05 01:41:39 +00:00
szaka 5660554d88 Set the the same $STANDARD_INFORMATION flags as format for NTFS 3.1 does 2005-11-03 21:56:52 +00:00
szaka 44b2d2333c Dump $Quota:$O key SID according to the standard textual representation 2005-11-03 01:43:27 +00:00
szaka e71ca132c5 Create files in $Extend in the same order as 'format' does. This shouldn't
actually matter but it makes ntfscmp happier and helps great deal to catch
easily incorrectly created volumes.
2005-11-02 23:14:39 +00:00
szaka c4d66f6c8b Don't create 'System Volume Information'. This is never created by format,
it's either a side-effect of Distributed Link Tracking Client Service,
System Recovery Service, Index Service, WinFS, etc.
2005-11-02 21:03:29 +00:00
szaka 0ffab99a56 mkntfs: don't fill the last $MFT cluster with empty MFT records.
This is needed to conform to Windows' format behavior for NTFS v3.1
2005-11-02 20:47:19 +00:00
flatcap b2606af8ab a few typos 2005-11-02 18:06:48 +00:00
flatcap 83b9eddfc9 provide some meaningful function descriptions 2005-11-02 17:34:08 +00:00
szaka 8cfde9cdfd Fix $Quota::$O key sub authority dumping; dump authorities in hexa 2005-11-01 23:14:34 +00:00
szaka c10f046225 simplified ntfs_generate_guid() 2005-11-01 21:09:52 +00:00
szaka 987f33e5df ntfs_ prefix generate_guid() 2005-11-01 20:24:37 +00:00
szaka b82289f526 fix casting to quota's owner_id 2005-11-01 20:19:32 +00:00
szaka 80923d64dd Fix type of reserved_II in SDH_INDEX_DATA; resolve some magic constants 2005-11-01 19:56:08 +00:00
szaka 9f4b2b4a2c Fix NTFS version 3.x index entries creation. Everybody is MUCH happier now!
Erik got this right in his patch, it got non-functional due to libntfs changes.
2005-11-01 00:12:08 +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
szaka ae42186cf5 utils_inode_get_name(): fix return value in case of success (the function
always returned with failure beforehand)
2005-10-30 22:41:20 +00:00
flatcap 2a8ae5c3fb upgrade to use new logging
change stderror messages to ntfs_log_perror
2005-10-29 01:05:11 +00:00
flatcap 4e6dd9b97b upgrade to use new logging
change stderror messages to ntfs_log_perror
2005-10-29 00:08:43 +00:00
cha0smaster 9d92722737 Rest fixes from A Costa 2005-10-28 19:00:14 +00:00
flatcap aa3807bc27 upgrade to use new logging
(all logging to stderr)
2005-10-28 18:59:29 +00:00
flatcap a009bf0b5a perror -> ntfs_log_perror 2005-10-28 18:57:06 +00:00
flatcap 9cf4759476 upgrade to use new logging 2005-10-28 18:39:52 +00:00
flatcap 325ab7c64d mistake parsing quiet 2005-10-28 18:26:49 +00:00
flatcap 8a363705cd upgrade to use new logging
change stderror messages to ntfs_log_perror
2005-10-28 18:23:32 +00:00
flatcap 7960f45998 upgrade to use new logging
change stderror messages to ntfs_log_perror
2005-10-28 18:15:24 +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
cha0smaster 4b81ab7e3b Add 'xattr' named data streams access interface. 2005-10-28 16:06:04 +00:00
szaka 7ae3cd3e82 Fix two more typos (A. Costa) 2005-10-28 15:14:49 +00:00
uvman 56f119b245 Surround error-prone macros with parentheses 2005-10-28 13:00:48 +00:00
uvman 5b949d07fa Fix comment formats. 2005-10-28 12:55:41 +00:00
uvman 8f43f0ef4c Match parameter names between .h and .c files 2005-10-28 12:47:49 +00:00
cha0smaster 0b55f323c2 spelling fixes from debian 2005-10-28 09:43:47 +00:00
flatcap 59ce9b4285 remove old logging macros
add more traces
2005-10-28 04:47:52 +00:00
flatcap 8aa6d76741 more evil spaces 2005-10-28 04:41:54 +00:00
flatcap ec842e871a remove some old defines 2005-10-28 04:41:39 +00:00
flatcap 8892ba7ac6 remove some colour hacks
remove a few #ifdef DEBUGs and RM_WRITEs
throw in lots of extra traces
2005-10-28 04:32:21 +00:00
flatcap 16dd9defa5 email typo 2005-10-28 04:31:45 +00:00
antona fa2217bafa Minor todying. 2005-10-27 21:55:59 +00:00
antona 0e4a1ca252 Fix ntfsdecrypt endianness bugs thus it now works on OSX running on
a dual G5!  (Anton)
2005-10-27 21:46:00 +00:00
cha0smaster 1ce16eddb7 minor cleanup 2005-10-27 20:42:10 +00:00
szaka 8b1263c217 Working with regular files needs no longer --force, except for mkntfs 2005-10-27 18:45:45 +00:00