Commit Graph

110 Commits (56c8393be04c8b114ea9c90c7fd07a727e40b60d)

Author SHA1 Message Date
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
szaka f7f2bf570d initialize_secure(): fix segfault when non-allocated objects were referenced
(thanks to ef)
2005-11-13 22:40:19 +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
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 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
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 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 ef9d593949 replace the command line parsing
mkntfs now supports long options
(e-11)
2005-11-06 02:19:19 +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 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
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
uvman 5b949d07fa Fix comment formats. 2005-10-28 12:55:41 +00:00
flatcap 8a584700c5 whitespace fixes - no code changes 2005-10-26 22:54:57 +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
szaka 746dff1a24 NTFS_INDEX_ prefix $I30, $SII, $SDH, $O and $Q indexes 2005-10-23 18:35:58 +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
flatcap a2c8e7befe fix a few build warnings 2005-10-20 13:49:56 +00:00
szaka 24cb1ec6e8 fix warnings 2005-10-19 22:10:57 +00:00
szaka 8f03f5a6ca Optionally create NTFS version 3.0 (W2K) or 3.1 (XP, W2K3, Vista).
Contributed by Erik Sornes. No side-effect for v1.2 NTFS which is still
the default. The implementation needs some minor work: see e.g. the chkdsk
messages and the result of ntfscmp'ing the two images.
2005-10-19 22:04:46 +00:00
flatcap 42de4cf905 tidy up some __attribute__ usage 2005-10-12 11:52:40 +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
antona 31ee9de6ac Fix stupid bug in mkntfs which caused it to fail even though only the
backup boot sector could not be written because a 2.4 kernel is used
and the partition has an odd number of sectors.  (Anton)
2005-10-07 12:21:32 +00:00
antona 813354f56d Add missing options to mkntfs' getopt() parsing string. (What a silly bug!)
Fix a compile warning in ntfscmp.
2005-09-30 19:24:13 +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
flatcap 2aa1cfe3d9 fix a build warning 2005-09-27 15:25:19 +00:00
szaka 660b44f3ed Fix --enable-really-statici: mkntfs redefined ntfs_attr_put_search_ctx() 2005-09-25 19:22:11 +00:00
antona 2a104d8eda Megapatch!!! Check evecrything!!! I probably broke everything!!! 2005-09-24 22:54:55 +00:00
antona 6124aafffb Move timeconv to ntfstime, update changelog, and news for new release. 2005-08-04 09:59:39 +00:00
szaka 06052dafcf Replaced all occurances of ENOTSUP to EOPNOTSUPP to be in better harmony
with the kernel driver
2005-08-01 22:10:38 +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 47b52b54e3 Update changelog, fox more mkntfs bugs (thanks Timur!) and update build system
to SuSE 9.3 again.
2005-07-10 21:42:39 +00:00