Anton Altaparmakov
5d46770f5f
NTFS: Change the mount options {u,f,d}mask to always parse the number as
...
an octal number to conform to how chmod(1) works, too. Thanks to
Giuseppe Bilotta and Horst von Brand for pointing out the errors of
my ways.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-12 14:33:47 +01:00
Andrew Morton
b4012a9895
[PATCH] ntfs build fix
...
*** Warning: "bit_spin_lock" [fs/ntfs/ntfs.ko] undefined!
*** Warning: "bit_spin_unlock" [fs/ntfs/ntfs.ko] undefined!
Cc: Anton Altaparmakov <aia21@cantab.net >
Signed-off-by: Andrew Morton <akpm@osdl.org >
Signed-off-by: Linus Torvalds <torvalds@osdl.org >
2005-09-10 10:06:20 -07:00
Anton Altaparmakov
7d333d6c73
NTFS: 2.1.24 release and some minor final fixes.
...
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 23:01:16 +01:00
Anton Altaparmakov
e604635c8b
NTFS: Improve scalability by changing the driver global spin lock in
...
fs/ntfs/aops.c::ntfs_end_buffer_async_read() to a bit spin lock
in the first buffer head of a page.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 22:13:02 +01:00
Anton Altaparmakov
a01ac532b5
NTFS: Fix page_has_buffers()/page_buffers() handling in fs/ntfs/aops.c.
...
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 22:08:11 +01:00
Anton Altaparmakov
311120eca0
NTFS: Fixup handling of sparse, compressed, and encrypted attributes in
...
fs/ntfs/aops.c::ntfs_readpage().
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 22:04:20 +01:00
Anton Altaparmakov
8273d5d4c2
NTFS: Fix fs/ntfs/aops.c::ntfs_{read,write}_block() to handle the case
...
where a concurrent truncate has truncated the runlist under our feet.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 22:00:33 +01:00
Anton Altaparmakov
54b02eb01c
NTFS: Optimize fs/ntfs/aops.c::ntfs_write_block() by extending the page
...
lock protection over the buffer submission for i/o which allows the
removal of the get_bh()/put_bh() pairs for each buffer.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 21:43:47 +01:00
Anton Altaparmakov
bd45fdd209
NTFS: Fixup handling of sparse, compressed, and encrypted attributes in
...
fs/ntfs/aops.c::ntfs_writepage().
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 21:38:05 +01:00
Anton Altaparmakov
8dcdebafb8
NTFS: Make ntfs_write_block() not instantiate sparse blocks if they are zero.
...
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 21:25:48 +01:00
Anton Altaparmakov
67bb103725
NTFS: Fixup handling of sparse, compressed, and encrypted attributes in
...
fs/ntfs/inode.c::ntfs_read_locked_{,attr_,index_}inode().
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 21:19:45 +01:00
Anton Altaparmakov
1c7d469d47
NTFS: Truncate {a,c,m}time to the ntfs supported time granularity when
...
updating the times in the inode in ntfs_setattr().
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 21:15:09 +01:00
Anton Altaparmakov
bbf1813fb8
NTFS: Fix cluster (de)allocators to work when the runlist is NULL and more
...
importantly to take a locked runlist rather than them locking it
which leads to lock reversal.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 21:09:06 +01:00
Anton Altaparmakov
807c453de7
NTFS: Fix handling of sparse attributes in ntfs_attr_make_non_resident().
...
Also, add BUG() checks to ntfs_attr_make_non_resident() and
ntfs_attr_set() to ensure that these functions are never called
for compressed or encrypted attributes.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 21:01:17 +01:00
Anton Altaparmakov
2983d1bd1a
NTFS: Fix several bugs in fs/ntfs/attrib.c.
...
- Fix a bug in ntfs_map_runlist_nolock() where we forgot to protect
access to the allocated size in the ntfs inode with the size lock.
- Fix ntfs_attr_vcn_to_lcn_nolock() and ntfs_attr_find_vcn_nolock() to
return LCN_ENOENT when there is no runlist and the allocated size is
zero.
- Fix load_attribute_list() to handle the case of a NULL runlist.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 20:56:09 +01:00
Anton Altaparmakov
0aacceacf3
NTFS: Add fs/ntfs/attrib.[hc]::ntfs_resident_attr_value_resize().
...
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 20:40:32 +01:00
Anton Altaparmakov
f25dfb5e44
NTFS: Remove bogus setting of PageError in ntfs_read_compressed_block().
...
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 20:35:33 +01:00
Anton Altaparmakov
8e08ceaeac
NTFS: Fix a bug in fs/ntfs/index.c::ntfs_index_lookup(). When the returned
...
index entry is in the index root, we forgot to set the @ir pointer in
the index context. Thanks for Yura Pakhuchiy for finding this bug.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 20:29:50 +01:00
Anton Altaparmakov
6e48321a40
NTFS: Add ntfs_rl_punch_nolock() which punches a caller specified hole into a runlist.
...
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 20:26:34 +01:00
Anton Altaparmakov
3ffc5a4438
NTFS: Change ntfs_rl_truncate_nolock() to throw away the runlist if the new
...
length is zero.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 20:23:06 +01:00
Anton Altaparmakov
f94ad38e68
NTFS: Report unrepresentable inodes during ntfs_readdir() as KERN_WARNING
...
messages and include the inode number. Thanks to Yura Pakhuchiy for
pointing this out.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 17:04:11 +01:00
Anton Altaparmakov
2b0ada2b8e
NTFS: Fix handling of valid but empty mapping pairs array in
...
fs/ntfs/runlist.c::ntfs_mapping_pairs_decompress().
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 16:52:31 +01:00
Anton Altaparmakov
8bb735216a
NTFS: Remove two bogus BUG_ON()s from fs/ntfs/mft.c.
...
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 16:48:28 +01:00
Anton Altaparmakov
84d6ebe63f
NTFS: Fix two nasty runlist merging bugs that had gone unnoticed so far.
...
Thanks to Stefano Picerno for the bug report.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 16:46:55 +01:00
Anton Altaparmakov
9529d461d0
NTFS: Use ntfs_malloc_nofs_nofail() in runlist.c::ntfs_runlists_merge()
...
in the two critical regions. This means we no longer need to
panic() when the allocation fails as it now cannot fail.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
2005-09-08 16:33:12 +01:00