Age | Commit message (Collapse) | Author | Files | Lines |
|
fs/ntfs/inode.c::ntfs_write_inode().
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
forgot to update a temporary variable so loading index inodes which
have an index allocation attribute failed.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
allowed by NTFS, i.e. 255 Unicode characters, not including the
terminating NULL (which is not stored on disk).
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
from read inode and new inode code paths.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
unused, invalid mft records which are the same in both $MFT and
$MFTMirr.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
address space operations.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
continued the attribute lookup loop instead of aborting it.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
reporting them.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
special casing the VOLUME_MODIFIED_BY_CHKDSK flag.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
supported by NTFS which is 4096 bytes).
|
|
|
|
Windows copes with this and even chkdsk does not detect or fix this
so we have to cope with it, too. Thanks to Pawel Kot for reporting
the problem.
- Miscellaneous updates to layout.h.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
Signed-off-by: Pekka Enberg <[email protected]>
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
|
|
MS_RDONLU implies not atime updates at all, no need for the MS_NOATIME and
MS_NODIRATIME flags.
Signed-off-by: Christoph Hellwig <[email protected]>
Cc: Anton Altaparmakov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
|
|
To allow various options to work per-mount instead of per-sb we need a
struct vfsmount when updating ctime and mtime. This preparation patch
replaces the inode_update_time routine with a file_update_atime routine so
we can easily get at the vfsmount. (and the file makes more sense in this
context anyway). Also get rid of the unused second argument - we always
want to update the ctime when calling this routine.
Signed-off-by: Christoph Hellwig <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Anton Altaparmakov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
|
|
This patch converts the inode semaphore to a mutex. I have tested it on
XFS and compiled as much as one can consider on an ia64. Anyway your
luck with it might be different.
Modified-by: Ingo Molnar <[email protected]>
(finished the conversion)
Signed-off-by: Jes Sorensen <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
|
|
This patch removes all references to the bouncing address
[email protected] and one dead web page from the kernel.
Signed-off-by: Adrian Bunk <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
|
|
left shift using PAGE_CACHE_SHIFT in fs/ntfs/file.c. Thanks to Andrew
Morton pointing this out to.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
patch by Yura Pakhuchiy.)
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
Many thanks to Alberto Patino for testing and reporting the data
corruption. And many apologies for corrupting his partition.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
Minor tidying.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
file operations ->write(), ->aio_write(), and ->writev() for regular
files. This replaces the old use of generic_file_write(), et al and
the address space operations ->prepare_write and ->commit_write.
This means that both sparse and non-sparse (unencrypted and
uncompressed) files can now be extended using the normal write(2)
code path. There are two limitations at present and these are that
we never create sparse files and that we only have limited support
for highly fragmented files, i.e. ones whose data attribute is split
across multiple extents. When such a case is encountered,
EOPNOTSUPP is returned.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
preparation for the big rewrite of write(2) support in ntfs.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
and cond_resched() in the main loop as we could be dirtying a lot of
pages and this ensures we play nice with the VM and the system as a
whole.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
|
|
- added typedef unsigned int __nocast gfp_t;
- replaced __nocast uses for gfp flags with gfp_t - it gives exactly
the same warnings as far as sparse is concerned, doesn't change
generated code (from gcc point of view we replaced unsigned int with
typedef) and documents what's going on far better.
Signed-off-by: Al Viro <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
|
|
the initial implementation of file truncation. Now both open(2)ing
a file with the O_TRUNC flag and the {,f}truncate(2) system calls
will resize a file appropriately. The limitations are that only
uncompressed and unencrypted files are supported. Also, there is
only very limited support for highly fragmented files (the ones whose
$DATA attribute is split into multiple attribute extents).
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
uncompressed and unencrypted files.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
extend the allocation of an attributes. Optionally, the data size,
but not the initialized size can be extended, too.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
which is zero for a resident attribute but should no longer be zero
once the attribute is non-resident as it then has real clusters
allocated.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
as an extra parameter. This is needed since we need to know the size
before we can map the mft record and our callers always know it. The
reason we cannot simply read the size from the vfs inode i_size is
that this is not necessarily uptodate. This happens when
ntfs_attr_make_non_resident() is called in the ->truncate call path.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
specifying whether the cluster are being allocated to extend an
attribute or to fill a hole.
- Change ntfs_attr_make_non_resident() to call ntfs_cluster_alloc()
with @is_extension set to TRUE and remove the runlist terminator
fixup code as this is now done by ntfs_cluster_alloc().
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
search context as argument. This allows calling it with the mft
record mapped. Update all callers.
- Fix potential deadlock in ntfs_mft_data_extend_allocation_nolock()
error handling by passing in the active search context when calling
ntfs_cluster_free().
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
search context as argument. This allows calling it with the mft
record mapped. Update all callers.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
search context. This allows calling it with the mft record mapped.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
which we now cast to 64-bit first (fs/ntfs/mft.c::map_mft_record_page().
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
count to become negative and hence we had a wild memset() scribbling
all over the system's ram.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
different types in it but #define the two constants instead.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
restart pages in the journal without multi sector transfer protection
fixups (i.e. the update sequence array is empty and in fact does not
exist).
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
two error causing it to be CHKB instead of CHKD.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
since we otherwise get into a lock reversal deadlock if a read locked
runlist is passed in. In the process also change it to take an ntfs
inode instead of a vfs inode as parameter.
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
Signed-off-by: Anton Altaparmakov <[email protected]>
|
|
Signed-off-by: Anton Altaparmakov <[email protected]>
|