Yura Pakhuchiy
2b1ef811e6
Add NTFS_MNT_INTERIX mount option to make libntfs recognize Interix files.
...
At present it influence only on ntfs_filldir(), but we can have ntfs_stat() and
other functions on which it will make more influence later.
2007-09-27 15:58:42 +03:00
Yura Pakhuchiy
36b8f621f9
libntfs: Sync and warn about not closed inodes in ntfs_umount
2007-09-23 00:36:18 +03:00
Yura Pakhuchiy
c0e8e211f3
libntfs: Cache opened inodes.
2007-09-20 14:00:55 +03:00
Yura Pakhuchiy
e5690b57d4
Allow mounting volumes with non-clean logfile with force mount option.
...
Volume left dirty upon umount. So, this is equal to running ntfsfix and then mounting with force option.
2007-09-16 00:15:46 +03:00
Yura Pakhuchiy
5e4341c0ac
Do not refuse mount if there is garbadge in hiberfil.sys file. (Szabolcs Szakacsits)
2007-09-14 13:09:14 +03:00
Yura Pakhuchiy
e248e6b986
Make libntfs keep track number of free clusters and MFT records.
...
Thanks for idea to David Fox and Szabolcs Szakacsits.
2007-09-14 12:59:55 +03:00
Yura Pakhuchiy
82df6c1fea
Rework time updates
...
- Library no longer perform time updates, only provide API for this
- Remove ntfs_inode_update_{a,}time() and introduce ntfs_inode_update_times()
- Make ntfsmount properly update times
- ntfs_delete() now takes pointer to pointer to ntfs_inode for while to delete and closes inode only in cases no more hard links left to file
2007-09-06 18:34:38 +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
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
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
19089b08bd
one place with mount option description
2006-12-11 03:03:30 +00:00
aia21
5302d23f7b
- Empty the journal at mount time. (Anton)
...
- Set the volume dirty bit at mount time (if it is not set already and
clear it again at umount time but only if it was not set to start
with. (Anton)
2006-11-28 10:09:56 +00:00
yura
f738f39bdf
oops, introduced stupiedness during one of recent cleanups
2006-11-25 21:35:39 +00:00
yura
f12f4aefb7
ntfs_log_error("Failed.\n") is evil. TODO: Implement ntfs_log_errortrace
2006-11-25 21:10:35 +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
a604622314
Windows cares only about first 4 records in $MFTMirr and ignores
...
everything beyond them. Update libntfs behaviour to be like in
windows. Leave @mftmirr_size for case if will want to change something in the
future.
2006-11-20 16:21:57 +00:00
yura
ef66794423
cleanups
2006-11-20 15:59:14 +00:00
yura
f7fe727b09
80 chars lines long fixes
2006-11-19 20:19:18 +00:00
yura
cb27c9f616
* Rename MS_{RDONLY,NOATIME} to NTFS_MNT_{RDONLY,NOATIME}.
...
2006-11-12 22:46:50 +00:00
uvman
7d585a0327
Change callers of malloc() to ntfs_malloc() (Szaka). Fix compilition (Yuval).
2006-11-01 13:30:40 +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
yura
bb5991cb36
Set vol->mft_ni->flags. (Szaka)
2006-07-27 18:44:08 +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
antona
cf631e3398
Fix comparison of $MFT and $MFTMirr to not bail out when there are
...
unused, invalid mft records which are the same in both $MFT and
$MFTMirr. Ported from kernel driver 2.1.27 release and aplied both
to libntfs/volume.c mount related code and to ntfsprogs/ntfsfix.c's
fixup code. (Anton)
2006-03-27 22:43:09 +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
cha0smaster
e58a468d0c
* Fix bug with updating atime on read-only volumes. (Thanks to Szaka and Anton)
...
* Add MS_NOATIME to ntfs_mount. (By Yuval's request)
2005-11-15 16:31:40 +00:00
szaka
6cd1ea6e75
ntfs_device_mount(): explain a bit better what fails and how
2005-11-13 19:25:05 +00:00
flatcap
a41e58f8aa
simplify a few things
2005-11-05 01:34:21 +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
flatcap
121d05deb6
add/update function comment blocks
...
(ok, they need words, but it's a start)
2005-10-30 16:12:22 +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
f4e427e91a
implement logging in libntfs
...
fix whitespace
fix build problems
tidy source code
and more...
2005-10-21 18:05:13 +00:00
flatcap
2a8d602d9f
ntfsrm has been split up and merged into libntfs.
...
currently it's #ifdef'd out.
tree.c - code for handling directory trees
rich.c - a few helpers without a home (this file will go away soon)
Note: ntfsrm isn't in the build any more (you need to ./configure --enable-rich; make extras). When rm is less intrusive, again, I'll put it back in the build.
2005-10-16 23:33:03 +00:00
antona
1d4958d38c
Fix endianness bug (le16 instead of le32 when accessing mft record
...
bytes_in_use) in volume.c::ntfs_volume_write_flags() and
ntfsfix.c::OLD_ntfs_volume_set_flags(). (Anton)
2005-10-15 23:13:49 +00:00
antona
a40d7e55d6
- Revert patch from Christophe applied by Yura.
...
- Provide a realpath() alternative for systems which do not have it.
This is _much_ nicer as it avoids the horrible #ifdef gunk in the code...
2005-10-10 12:55:11 +00:00
cha0smaster
bf91f7c0fc
Apply patch from Christophe.
2005-10-10 11:04:56 +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
antona
151d0ecb61
Fix the double free that just got added. There was only half a memory leak...
...
It was a cut and paste error, not a real memory leak.
2005-09-27 18:03:00 +00:00
flatcap
6691212129
fix a memory leak - vol->vol_ni
2005-09-27 17:11:30 +00:00
antona
2a104d8eda
Megapatch!!! Check evecrything!!! I probably broke everything!!!
2005-09-24 22:54:55 +00:00
szaka
24de91b8fa
- Support journals which have been modified by chkdsk. (Anton, Szaka)
...
- Support journals ($LogFile) with only one restart page as well as
journals with two different restart pages. (Anton, Szaka)
2005-09-24 15:59:53 +00:00
antona
190e59886f
Define PATH_MAX if not defined in ntfsprogs/ntfsmount.c and
...
libntfs/volume.c. Needed to compile on DOS with djgpp. (Christophe)
2005-08-26 11:44:11 +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
4088de1017
Change errno and print more verbose message in case if logfile check failed.
2005-07-29 14:44:23 +00:00
cha0smaster
fc2382b742
libntfs/volume.c: fix ntfs_check_if_mounted to cope with dirrerent names of same file.
...
ntfsprogs/ntfsmount.c: don't put relative path to /etc/mtab.
2005-07-18 02:09:43 +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
szaka
fbbefe0c70
- read-write ntfs_mount() returns EPERM if the partition is hibernated
2005-05-10 16:53:48 +00:00