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
szaka
16ffe6063d
- remark that Longhorn uses the same NTFS 3.1 format as XP and W2K3
2005-05-10 16:44:58 +00:00
void!yura
51a83b1699
don't check logfile for readonly mounts
...
(Logical change 1.673)
2005-02-01 18:26:17 +00:00
void!yura
3ca5f1fc5d
integrate logfile checking with mount
...
(Logical change 1.672)
2005-01-30 18:13:25 +00:00
void!yura
317f6f4b62
Make ntfs_logfile_reset use ntfs_empty_logfile.
...
(Logical change 1.666)
2005-01-25 21:41:25 +00:00
cantab.net!aia21
84a4fd30bf
Refix the device memleak fix in error code path.
...
(Logical change 1.602)
2004-10-11 15:43:22 +00:00
flatcap.org!ntfs
b0d1673503
Auto merged
...
2004/10/11 16:21:37+01:00 flatcap.org!ntfs
fix memleak on error path
(Logical change 1.601)
2004-10-11 15:25:18 +00:00
(none)!yura
419e3ce8b7
Remove inode.h::NIno{Clear,Set,}AttrListNonResident and attr_list_rl field from inode.h::_ntfs_inode struct. Adapt all users.
...
(Logical change 1.600)
2004-10-11 09:16:35 +00:00
cantab.net!aia21
93f8096673
Need to sync inodes before closing attributes or the umount fails.
...
(Logical change 1.555)
2004-09-16 08:18:52 +00:00
cantab.net!aia21
ad7acfacc2
Remove no longer needed forward declaration.
...
(Logical change 1.550)
2004-09-13 14:39:50 +00:00
cantab.net!aia21
b82469ba50
Remove vol->nr_mft_records and update all users. (Anton)
...
(Logical change 1.549)
2004-09-13 10:28:54 +00:00
!uv
b15ad70b99
When <mntent.h> does not exist, some parameters may not be used.
...
(Logical change 1.504)
2004-08-20 11:58:24 +00:00
cantab.net!aia21
d33e7eaae4
Fix fallout from previous error output changes.
...
(Logical change 1.503)
2004-08-19 21:01:11 +00:00
cantab.net!aia21
4910ed561c
Change all output to only appear if configure with --enable-debug by
...
using Dputs/Dprintf instead of fprintf(stderr,.
(Logical change 1.502)
2004-08-18 10:27:49 +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
9ae1b7306a
Fix access of MFT_RECORD->bytes_in_use to use le32_to_cpu() instead
...
of le16_to_cpu() in libntfs/volume.c. (Pete Curran)
(Logical change 1.391)
2004-05-14 08:07:19 +00:00
cantab.net!aia21
3cc9f21016
Update comments.
...
(Logical change 1.346)
2004-03-24 17:38:31 +00:00
cantab.net!aia21
ae7789dcd0
Support the case where $Volume does not have a $VOLUME_NAME
...
attribute in ntfs_device_mount() and let ntfslabel create the
attribute when it is not present.
(Logical change 1.339)
2004-03-19 10:21:05 +00:00
cantab.net!aia21
481241602c
Change ntfs_get_attribute_value syntax to not have the MFT_RECORD as it
...
wasn't used anyway and the function is headed for death anyway...
(Logical change 1.332)
2004-03-15 10:54:47 +00:00
cantab.net!aia21
cb3b41894a
Modify meaning of ntfs_volume->nr_mft_records to be the number of
...
initialized mft records, not total mft records. This makes far more
sense and in fact reflects how nr_mft_records is being used in both
libntfs and the utilities.
(Logical change 1.326)
2004-03-12 15:50:52 +00:00
cantab.net!aia21
3f12891c07
Remove compiler warning by rearranging code a bit in ntfs_mount().
...
(Logical change 1.287)
2004-02-27 16:44:10 +00:00
cantab.net!aia21
4b12f1bfce
Add NO_NTFS_DEVICE_DEFAULT_IO_OPS.
...
(Logical change 1.283)
2004-02-26 11:41:48 +00:00
cantab.net!aia21
441947337e
Include config.h before any other non-ntfs headers.
...
(Logical change 1.279)
2004-02-20 14:44:16 +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
3244f17522
Enable lots of compiler warnings and fix warning from libntfs.
...
(Logical change 1.257)
2004-01-07 15:03:17 +00:00
cantab.net!aia21
9dec022b81
fix signed warnings
...
(Logical change 1.223)
2003-11-04 13:04:07 +00:00