Commit Graph

1112 Commits (31a39d2a3700b2285c847e9b9269f5b7ec39d8f2)

Author SHA1 Message Date
yura fbfbe3b48e force distro developers to fix their broken init scripts 2006-11-25 21:44:35 +00:00
yura 3cd59df400 bit more nice error messages 2006-11-25 18:38:47 +00:00
yura 8df298aec2 Introduce MNT_NTFS_NOT_EXCLUSIVE mount option that tells libntfs do
not open volume exclusively. Useful if libntfs user cares about this
himself, eg. FUSE with blkdev option.
2006-11-25 17:37:37 +00:00
yura 4b7868ddc2 ntfsmount: Umount volume in DESTROY. This is guarantees that all data would be s
ynced before umount return for volumes mounted with blkdev option.

Thanks to Miklos for information about blkdev.
2006-11-25 14:57:54 +00:00
yura 18c8f75c7b make ntfs_attr_rm to always close attribute (both on success and failure) 2006-11-22 18:28:13 +00:00
yura 05a034e423 fix st_blocks calculation 2006-11-21 16:24:37 +00:00
yura 4adc3817c6 ntfsmount: always accept {f,d,}mask in octal to be as mount command 2006-11-21 15:40:56 +00:00
yura b538578ab7 Fix free clusters and MFT records calculation 2006-11-21 15:31:09 +00:00
yura 18dec0543d add support for read errors in free disk space calculation (szaka) 2006-11-17 22:35:21 +00:00
yura 188cbd9a41 use optarg instead of argv[optind - 1] 2006-11-17 22:14:55 +00:00
yura 7d1016fe97 Treat filenames in POSIX namespace as case insensitive in case of case insensitive mounts. 2006-11-15 23:15:17 +00:00
yura 0ac08318a6 use nice error messages from ntfs-3g 2006-11-13 17:01:53 +00:00
yura cb27c9f616 * Rename MS_{RDONLY,NOATIME} to NTFS_MNT_{RDONLY,NOATIME}.

							
						
2006-11-12 22:46:50 +00:00
yura cb5f0a1e94 * fmask=0111 and dmask=0 by default
* bit more nice mount messages
2006-11-10 17:23:12 +00:00
yura 45e3b4acd0 upgrade to FUSE 2.6 API 2006-11-06 12:51:44 +00:00
yura c65bacb25b ntfsmount: require FUSE version >= 2.6.0 for build. Fixes fusermount
lookup problem and allows to drop compatibility code.
2006-11-05 21:40:57 +00:00
yura 116a467dc0 * fix ntfsmount build

							
						
2006-11-05 14:42:46 +00:00
uvman 7d585a0327 Change callers of malloc() to ntfs_malloc() (Szaka). Fix compilition (Yuval). 2006-11-01 13:30:40 +00:00
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 15eb2c38a6 constify string argument. 2006-10-28 23:41:41 +00:00
yura b1583bdce6 Fix several memleaks 2006-10-27 14:15:32 +00:00
uvman ff55ecb513 Whitespace cleanup 2006-10-27 12:24:29 +00:00
uvman bd1837335b trace output updates. (Szaka, Yuval) 2006-10-26 20:45:28 +00:00
aia21 ff289408c5 fix for large sector sizes 2006-10-20 19:55:50 +00:00
uvman 6efbbabba6 Spelling fix. 2006-10-18 14:43:04 +00:00
uvman acb04c0435 Remove unneeded padding. The compiler will pad if it wan't to. 2006-10-18 14:41:41 +00:00
uvman b7b4c98633 Hil: Allow ntfscp to create the destination file if it does not already exists by calling ntfs_create(). 2006-10-04 00:47:04 +00:00
uvman a117a21941 Comment documentation fixes. 2006-09-25 16:58:38 +00:00
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
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 d15ed62ae4 a bit of cleanups 2006-08-14 03:52:56 +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
szaka c4a3f8b3e9 convert all malloc,calloc to ntfs_{malloc,calloc} 2006-08-13 16:06:57 +00:00
szaka 6ae2cece3c fine grained AT_INDEX_ALLOCATION comparison 2006-08-13 15:50:12 +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 c41b7a65a1 upgrade_to_large_index(): fix double freeing ctx in certain error situation 2006-08-13 14:17:02 +00:00
szaka 64a319948b convert all malloc,calloc to ntfs_{malloc,calloc} 2006-08-13 13:46:40 +00:00
szaka 600b5d4fa6 fix mkntfs_get_page_size() declaration 2006-08-13 13:38:38 +00:00
yura b86f4a41c1 introduce ntfs_[cm]alloc 2006-08-02 03:11:12 +00:00
yura 28a2b1f2b0 prepare to Szaka's code merge: remove not working Rich's index code 2006-07-17 11:49:52 +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
szaka f61d45b970 fix 64 bit destination size calculation on Mac OS X 2006-06-15 18:43:24 +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
aia21 14659dfc20 Fix ntfsmount compilation. 2006-05-19 04:22:53 +00:00
uvman 02194004ab mkntfs.c refactoring and compile fix for Cygwin 2006-05-16 12:12:45 +00:00
cha0smaster d0cd21d4e3 vimspell rules 2006-05-15 21:35:38 +00:00
cha0smaster 8842271dde This code should be in fuse, if should exist at all. 2006-04-27 22:22:02 +00:00
szaka a3ec003be1 Workaround for libfuse not being able to find fusermount when mount(8) used 2006-04-27 21:05:38 +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 00348fc7f5 Warn about bad sectors if pure disk I/O fails with EIO. This is regularly
reported with faulty disks.
2006-04-18 22:03:09 +00:00
szaka 03946d896e Print more info on relocations in verbose mode 2006-04-18 21:37:24 +00:00
szaka 0213e2e596 Build and install ntfscmp by default 2006-04-11 22:47:22 +00:00
szaka 52178a0fac Fix typos 2006-04-11 22:46:09 +00:00
szaka ec3e7d60cd Update ntfsprogs manual 2006-04-11 22:14:38 +00:00
szaka adb27b68cc Add ntfscmp manual 2006-04-11 21:50:39 +00:00
szaka c7a53338c0 Fix all incorrect getopt_long() return value usages. 2006-04-05 12:43:06 +00:00
szaka 15e00fcf6c Fix bogus reference to ntfsundelete 2006-04-05 02:59:12 +00:00
szaka 45bccaf546 Implement special $BadClus:$Bad handling 2006-04-05 02:56:52 +00:00
szaka 6873bab2f1 Compare the full attribute headers for non-resident attributes 2006-04-05 02:55:43 +00:00
szaka 134319ae80 libntfs: add and ntfs_inode_badclus_bad() and convert all copy-pastes
to use them
2006-04-05 02:53:40 +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 8bbdf4f8c4 Quota attributum instantiation order change for better FORMAT conformance 2006-04-05 02:48:02 +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 ce894973ed Cleanup has_bad_sectors() for code reuse; update copyrights 2006-03-30 00:15:32 +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