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
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
cb27c9f616
* Rename MS_{RDONLY,NOATIME} to NTFS_MNT_{RDONLY,NOATIME}.
...
2006-11-12 22:46:50 +00:00
yura
f2e1ff96d2
Spent really a lot of time applying various "optimizations" from ntfs-3g and
...
finally figured out that ntfs-3g is faster than ntfsmount only because of
3 reasons:
1) turned on noatime option by default
2) ntfs-3g builds without debug output by default
3) the only real optimization: almost always add resident attributes.
However by accident patch in ntfs-3g for 3) breaks several code paths (why
I am not surprised?), thus I rewrote whole ntfs_attr_add() logic.
2006-11-09 21:19:11 +00:00
uvman
1598a68d67
Fix compilation on environments that one can not assign to "va_list args" (e.g. Debian Alpha). Do so by removing the unused log_reason code. Originally, Szaka asked FlatCap for it but never used it. I've asked Szaka if he is going to use it but he did not reply. I got an implicit answer in the form of ntfs-3g commit. Therefore, commit an updated version of the patch I've sent the Debian package maintainer.
2006-11-01 14:05:09 +00:00
uvman
7d585a0327
Change callers of malloc() to ntfs_malloc() (Szaka). Fix compilition (Yuval).
2006-11-01 13:30:40 +00:00
uvman
483522ec1f
Introduce misc.c - Proud home of functions with no other home, starting with ntfs_[mc]alloc. (Szaka)
2006-11-01 12:31:11 +00:00
uvman
561cb42743
Move ntfs_index_entry_mark_dirty() from index.h to index.c. (Szaka)
2006-10-29 00:55:45 +00:00
uvman
fe1405393f
Change ntfs_collate()'s signature to size_t's. Move ntfs_is_collation_rule_supported to the .c file and rewrite it to be shorter.
2006-10-29 00:01:17 +00:00
uvman
b8ecbf7b94
Spelling fix.
2006-10-28 23:46:30 +00:00
uvman
87d87073c7
The periodic 'int is not neccessarily 32bit' fixes.
2006-10-28 23:45:22 +00:00
uvman
2991c40d90
Remove double-commenting. Why use C++-style comments for multilines anyway?
2006-10-28 23:11:25 +00:00
uvman
ff55ecb513
Whitespace cleanup
2006-10-27 12:24:29 +00:00
aia21
8ddea064b9
Revert 1.13 commit from Yuval: Gratuitous API/ABI change.
2006-10-27 09:04:08 +00:00
uvman
ca2fb9a467
Remove inline keywords from static non-one-liners of '.c' files.
2006-10-26 19:10:05 +00:00
aia21
3d56b14bca
fix a packing bug
2006-10-20 19:54:22 +00:00
aia21
0c86fccdc9
Fix GUID to string conversion to follow documentation (details: it is not
...
little endian at all, it is a binary sequence)...
See remarks section at:
http://windowssdk.msdn.microsoft.com/en-us/library/96ff78dc.aspx
2006-10-10 10:29:11 +00:00
yura
a00ee02388
had not noticed lack of externs :(
2006-08-03 04:30:41 +00:00
yura
1493070b8e
Fix include order. Thanks, Yuval!
2006-08-03 02:49:00 +00:00
yura
08689c171e
Merge index code from ntfs-3g. Clean it a bit and fix adding index allocation when index root in the base mft record.
2006-08-02 03:55:41 +00:00
yura
9d0f9aec4c
Add new API ntfs_attr_exist() that checks whether attribute with selected type and name already present in inode. (Szaka)
2006-08-02 03:12:34 +00:00
yura
b86f4a41c1
introduce ntfs_[cm]alloc
2006-08-02 03:11:12 +00:00
yura
a3a318a8b4
forgot "cvs delete"
2006-07-22 19:39:59 +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
035df31eae
move ROUND_{UP,DOWN} to support.h, make second parameter to be order in which
...
we should power 2 (to prevent incorrect use)
2006-07-13 02:49:07 +00:00
antona
422725fce4
Update a comment for a field.
2006-04-21 16:12:48 +00:00
cha0smaster
d3b82fa6cd
fix VCN size in index.c
2006-04-06 17:00:33 +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
813933e1bc
libntfs: add ntfs_mft_usn_dec() and convert all copy-pastes to use them
2006-04-05 02:49:24 +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
ddc558f1ec
libntfs: add ntfs_index_root_get() which reads the index root of an attribute
2006-03-27 21:14:56 +00:00
szaka
9b801db7c8
libntfs: add ntfs_attr_readall() which reads the entire data from an attribute
2006-03-27 20:01:36 +00:00
szaka
43f2ab6ec3
mkntfs: set the physical drive and the extended boot signature to 0x80
...
in the Extended BPB which are needed to boot from disk
2006-03-14 21:20:20 +00:00
cha0smaster
74a95a993b
comment ni->{allocated,data}_size
2006-02-23 22:54:55 +00:00
antona
45c9aa137e
- Deal with missing syslog function by making code conditional on
...
presence of syslog.h header file (DOS/djgpp). (Christophe)
- Avoid clash with existing constants (OSX). (Christophe)
2006-02-22 14:20:08 +00:00
antona
90596212bf
Update documentation for allocated_size in file name attribute.
2006-02-21 11:43:49 +00:00
cha0smaster
32420ad699
implement POC of syslog logging handler, make ntfsmount to use it
2006-02-13 01:23:31 +00:00
antona
e5a3006f47
Only use O_EXCL if mounting r/w.
2006-02-04 02:42:42 +00:00
antona
135282539b
Fixes to previous commit.
2006-02-03 23:11:35 +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
antona
29ed836b4b
Update VOLUME_FLAGS_MASK, too.
2006-02-03 09:23:03 +00:00
antona
4b0fb6faff
Add VOLUME_CHDSK_UNDERWAY flag to volume flags (layout.h). Thanks to Szaka for
...
the information.
2006-02-03 09:03:09 +00:00
cha0smaster
e2450ad61a
tidy up djgpp S_IF{SOCK,LNK} fix
2006-01-30 22:10:31 +00:00
cha0smaster
ff72ed6141
Oops, by accident commited incomplete stuff to dir.h
2006-01-08 15:56:03 +00:00
cha0smaster
e975db6fd5
should fix build under Solaris
2006-01-08 15:53:27 +00:00
cha0smaster
eba747ac93
* Add NTFS_DEV_LIST define. Use it everywhere instead of linux-ntfs-dev@lists.sf.net.
...
* Replace all ntfs_log_trace where we ask to send mail to us with ntfs_log_error
2005-12-18 16:27:20 +00:00
cha0smaster
ce1aabed3b
FreeBSD and Cygwin do not know about MS_NOATIME too. Fix this.
2005-11-24 14:23:38 +00:00
flatcap
0f7ee235ed
comments for unions
2005-11-20 11:34:30 +00:00
flatcap
8ee10753ce
move a useful ioctl here, from mkntfs
2005-11-19 14:55:51 +00:00
cha0smaster
2367a06b6e
Rework time updates, more close to like windows does. Still do not update for / because of sync problems.
2005-11-17 18:00:58 +00:00