diff options
author | Jan Kara <jack@suse.cz> | 2007-05-08 07:35:21 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 18:15:21 (GMT) |
commit | 31170b6ad4ebe6c43c1cc3b8112274cf59474de0 (patch) | |
tree | 25e19a70a323f18757c60a658d930b63e8e45124 /fs/udf/super.c | |
parent | 948b9b2c967c3bec6136b2dbb9e1c12f62e03efa (diff) | |
download | linux-31170b6ad4ebe6c43c1cc3b8112274cf59474de0.tar.xz |
udf: support files larger than 1G
Make UDF work correctly for files larger than 1GB. As no extent can be
longer than (1<<30)-blocksize bytes, we have to create several extents if a
big hole is being created. As a side-effect, we now don't discard
preallocated blocks when creating a hole.
Signed-off-by: Jan Kara <jack@suse.cz>
Acked-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/udf/super.c')
-rw-r--r-- | fs/udf/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c index 9f516d4..a92daab 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c @@ -1661,7 +1661,7 @@ static int udf_fill_super(struct super_block *sb, void *options, int silent) iput(inode); goto error_out; } - sb->s_maxbytes = 1<<30; + sb->s_maxbytes = MAX_LFS_FILESIZE; return 0; error_out: |