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
antona
9cd8edce5f
mkntfs: Fix backup bootsector creation. Thanks to Timur Amirkhanov
...
for pointing this stupidity out. (We forgot to set the size before
doing it.) (Anton)
2005-07-09 21:24:02 +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
antona
b10eb4cb2d
Minor cleanup
2005-06-06 14:29:47 +00:00
antona
c4cb316418
mkntfs: Add new option -T which fakes the time to be 00:00:00 UTC,
...
Jan 1, 1970 instead of the current system time.
2005-06-03 22:22:12 +00:00
antona
8f45d909c1
Only output message that volume is being set dirty if we are actually setting
...
the dirty flag. Otherwise the message is pointless.
2005-06-03 21:53:02 +00:00
szaka
683b707b43
Don't mark NTFS dirty if the backup boot sector could be created
2005-06-02 18:36:43 +00:00
void!yura
d162076f14
fix some complier warning in mkntfs
...
(Logical change 1.662)
2005-01-17 14:59:52 +00:00
(none)!yura
14db887f8e
Rename NTFS_SECTOR_SIZE to NTFS_BLOCK_SIZE to keep in sync with kernel driver.
...
(Logical change 1.653)
2005-01-11 20:28:28 +00:00
cantab.net!aia21
db7c9da42f
Move NAttr{Sparse,Compressed,Encrypted} to inode struct preserving
...
the previous interface. (Yura, with fixes from Anton)
(Logical change 1.645)
2004-12-22 14:04:41 +00:00
cantab.net!aia21
781e041a1f
Change block to from unsigned long to unsigned long long in
...
append_to_bad_blocks() and mkntfs_fill_device_with_zeroes().
(Logical change 1.617)
2004-10-18 10:24:25 +00:00
cantab.net!aia21
8b3c03e173
Rename scpu_to_le{16,32,64}() to cpu_to_sle{16,32,64}() to match the kernel.
...
(Logical change 1.586)
2004-09-30 15:00:31 +00:00
cantab.net!aia21
1159ab3656
Cleanup the ntfs_mapping_pairs_build enhancement.
...
(Logical change 1.548)
2004-09-13 09:31:42 +00:00
(none)!yura
27e0e7a0c7
Add @stopped_at parameter to ntfs_mapping_pairs_build and adapt all callers.
...
(Logical change 1.547)
2004-09-12 18:46:04 +00:00
cantab.net!aia21
06086ae5c7
Add start_vcn parameter to ntfs_get_size_for_mapping_pairs() and
...
ntfs_mapping_pairs_build() and adapt all callers.
(Logical change 1.533)
2004-09-06 09:27:16 +00:00
cantab.net!aia21
abe69f1964
Fix memory leaks (Christophe).
...
(Logical change 1.516)
2004-08-30 20:41:14 +00:00
!uv
912044e09a
printf format fixes.
...
(Logical change 1.507)
2004-08-20 12:18:22 +00:00
!uv
97df123793
Reorder struct members in order to align to 32 and 64 bit bounderies.
...
(Logical change 1.505)
2004-08-20 12:01:17 +00:00
!uv
27bf9c0ea0
Allow better compiler optimization/error checking.
...
(Logical change 1.504)
2004-08-20 11:58:24 +00:00
cantab.net!aia21
380f4f1ce1
Silence compiler warnings.
...
(Logical change 1.502)
2004-08-18 10:27:49 +00:00
cantab.net!aia21
dfde7adfd4
Add noreturn attribute to err_exit function. (Yuval)
...
(Logical change 1.453)
2004-07-13 13:04:02 +00:00
cantab.net!aia21
b2ce5e087c
Update a forgotten comment.
...
(Logical change 1.406)
2004-06-01 16:29:45 +00:00
cantab.net!aia21
3423a8a909
Rename uchar_t to ntfschar.
...
(Logical change 1.392)
2004-05-14 13:02:33 +00:00
cantab.net!aia21
1e637d3709
Remove global rl as it was used only in one place. (Yuval, Anton)
...
(Logical change 1.382)
2004-04-23 14:27:09 +00:00
cantab.net!aia21
71c1fe3af8
Update
...
(Logical change 1.374)
2004-04-16 20:54:34 +00:00
cantab.net!aia21
4a5abe3242
Split up into multiple functions. (Yuval)
...
(Logical change 1.373)
2004-04-16 20:43:28 +00:00
cantab.net!aia21
c5a065d048
- Add new API device.[hc]::ntfs_device_heads_get() and make mkntfs use it.
...
- Provide a new command line option "-H" to mkntfs to allow the user to
specify the number of heads manually.
- Add new API device.[hc]::ntfs_device_sectors_per_track_get() and make
mkntfs use it.
- Provide a new command line option "-S" to mkntfs to allow the user to
specify the number of sectors per track manually.
(Logical change 1.345)
2004-03-24 10:36:31 +00:00
cantab.net!aia21
d05932849c
- Add new API device.[hc]::ntfs_device_partition_start_sector_get() and
...
make mkntfs use it.
- Provide a new command line option "-p" to allow the user to specify
the partition start sector manually.
- Add include sys/ioctl.h to fix sector size detection.
(Logical change 1.336)
2004-03-17 12:22:03 +00:00
cantab.net!aia21
2bd298bc2d
Add new API mft.[hc]::ntfs_mft_record_{layout,format}() and make
...
mkntfs use it.
(Logical change 1.335)
2004-03-15 12:50:18 +00:00
cantab.net!aia21
ab2da48e25
Use sizeof(MFT_RECORD_OLD) instead of sizeof(MFT_RECORD) as MFT_RECORD now
...
includes the NTFS 3.1+ specific fields.
(Logical change 1.333)
2004-03-15 11:34:30 +00:00
cantab.net!aia21
717484f223
Missed this one.
...
(Logical change 1.307)
2004-03-09 15:27:10 +00:00
cantab.net!aia21
ddeee65b8d
Fix all occurences of printf with %ll length modifiers but 64 bit
...
arguments to typecast the arguments to (unsigned) long long to avoid
the warnings when compiling on 64 bit architectures.
(Logical change 1.306)
2004-03-09 14:47:34 +00:00
cantab.net!aia21
a6629ede03
And another compiler warning.
...
(Logical change 1.292)
2004-03-04 17:03:27 +00:00
cantab.net!aia21
852af74c58
Fix mkntfs for large volumes where the number of clusters would
...
exceed the maximum of 32 bits and mkntfs would segfault. Now we
increase the cluster size until the number of clusters no longer
exceeds 32 bits or the maximum cluster size is reached. We then
exit with an appropriate error message. (Thanks to Szaka for the
bug report.)
Also fix some compiler warnings in mkntfs with --enable-maintainer-mode.
(Logical change 1.291)
2004-03-04 16:59:58 +00:00
cantab.net!aia21
6eb9812220
- Fix a duplicated free() in mkntfs. (Andras Erdei)
...
- Fix option display in mkntfs. (Andras Erdei)
(Logical change 1.285)
2004-02-26 13:48:16 +00:00
cantab.net!aia21
42e3faba21
Fix the fix. (-:
...
(Logical change 1.284)
2004-02-26 12:08:23 +00:00
cantab.net!aia21
6cecd0e726
Detect NO_NTFS_DEVICE_DEFAULT_IO_OPS and #error appropriately.
...
(Logical change 1.283)
2004-02-26 11:41:48 +00:00
cantab.net!aia21
536b80cb56
Fix bug in stoucs(). Thanks to Andras Erdei.
...
(Logical change 1.281)
2004-02-25 17:14:40 +00:00
cantab.net!aia21
c9076ef627
- Apply patch from Szaka to fix all %L to %ll.
...
- Fix remaining %L ti %ll (compress.c).
- Run ./autogen.sh on SuSE 9.0.
(Logical change 1.263)
2004-01-15 16:57:10 +00:00
cantab.net!aia21
a7a6c5cfe5
Fix the previous update...
...
2004/01/09 10:50:25+00:00 cantab.net!aia21
Update for newer glibc.
(Logical change 1.259)
2004-01-09 12:38:56 +00:00
cantab.net!aia21
0803017bb6
Fix warnings.
...
(Logical change 1.235)
2003-11-18 18:00:31 +00:00
cantab.net!aia21
f49930c0f4
ntfs_device_disk_io_ops is now ntfs_device_default_io_ops.
...
(Logical change 1.188)
2003-10-06 11:38:25 +00:00
cantab.net!aia21
c4c50f1270
__LINUX__ no longer works. Use linux instead.
...
(Logical change 1.166)
2003-07-31 14:12:36 +00:00
cantab.net!aia21
163d414c9f
Can't use vol->dev->d_name before it is allocated! D'oh!
...
Thanks to Szaka for reporting this.
(Logical change 1.152)
2003-07-11 14:35:49 +00:00
cantab.net!aia21
e94dd2e634
Adapt to library changes.
...
(Logical change 1.139)
2003-06-03 11:07:54 +00:00
flatcap.org!flatcap
3987a55edd
minor tidyup
...
(Logical change 1.117)
2003-02-09 22:55:20 +00:00
cantab.net!aia21
c8dae5156c
cleanup flatcaps changes (reverting a few) as well as add new option
...
(Logical change 1.107)
2003-01-20 11:08:14 +00:00
flatcap.org!flatcap
4fb575b3cc
comment blocks
...
standardise usage and version info
(Logical change 1.105)
2003-01-19 22:01:18 +00:00
flatcap.org!flatcap
563fc17118
start using utils
...
(Logical change 1.104)
2003-01-19 11:48:06 +00:00
cantab.net!aia21
ef273e8804
really final tidyings
...
(Logical change 1.102)
2003-01-18 16:02:37 +00:00
cantab.net!aia21
a3e3e66651
update from Szaka modified by me:
...
new API disk_io.[hc]: ntfs_device_size_get() ported from mkntfs.c
(Logical change 1.86)
2003-01-10 17:00:47 +00:00
flatcap.org!flatcap
4a763bc970
a typos left over from the big rename
...
(Logical change 1.82)
2003-01-09 16:30:59 +00:00
cantab.net!aia21
f8a7ee4a7e
Typos.
...
(Logical change 1.58)
2002-12-26 20:36:52 +00:00
cantab.net!aia21
9fd51dde62
New API functions (mostly still WIP):
...
attrib.[hc]: ntfs_resident_attr_value_resize(), ntfs_attr_truncate()
inode.[hc]: ntfs_inode_mark_dirty(), ntfs_inode_sync()
lcnalloc.[hc]: ntfs_cluster_{alloc,free}()
Renamed ntfs_clusters_{read,write}() to ntfs_cluster_{read,write}().
(Logical change 1.55)
2002-12-26 00:44:57 +00:00
cantab.net!aia21
16e4e8717a
New API function ntfs_ucsnlen() and removal of mkntfs.c/ucsnlen().
...
(Logical change 1.52)
2002-12-25 19:17:56 +00:00
cantab.net!aia21
69306cc493
new api renames to ntfs_object_action
...
(Logical change 1.36)
2002-12-10 11:53:41 +00:00
cantab.net!aia21
c4eb64a730
Auto merged
...
2002/12/08 20:15:29+00:00 cantab.net!aia21
rename run{ ,_,-}list to runlist
(Logical change 1.31)
2002-12-08 20:36:02 +00:00
flatcap.org!flatcap
d789fd8385
tidy whitespace
...
(Logical change 1.27)
2002-12-01 18:54:13 +00:00
cantab.net!aia21
cd29ef7745
mvdir
...
(Logical change 1.23)
2002-11-29 12:16:35 +00:00
cantab.net!aia21
df7cae02e7
Initial revision
2002-11-29 12:16:35 +00:00