Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 103091 Details for
Bug 156697
Patch e2fsprogs for ext4
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
e2fsprogs-1.39-ext4-inode_prealloc.patch
e2fsprogs-1.39-ext4-inode_prealloc.patch (text/plain), 1.05 KB, created by
Conrad Kostecki
on 2006-12-01 00:49:01 UTC
(
hide
)
Description:
e2fsprogs-1.39-ext4-inode_prealloc.patch
Filename:
MIME Type:
Creator:
Conrad Kostecki
Created:
2006-12-01 00:49:01 UTC
Size:
1.05 KB
patch
obsolete
>Allow regular files to be preallocated on-disk up to the next multiple >of the system PAGE_SIZE without complaining about extra blocks. > >Index: e2fsprogs/e2fsck/pass1.c >=================================================================== >--- e2fsprogs.orig/e2fsck/pass1.c 2006-07-05 12:11:09.000000000 -0600 >+++ e2fsprogs/e2fsck/pass1.c 2006-07-05 14:23:49.000000000 -0600 >@@ -1486,9 +1486,14 @@ static void check_blocks(e2fsck_t ctx, s > bad_size = 2; > } > } else { >+ e2_blkcnt_t blkpg = getpagesize() / fs->blocksize; >+ > size = EXT2_I_SIZE(inode); > if ((pb.last_block >= 0) && >- (size < (__u64) pb.last_block * fs->blocksize)) >+ /* allow allocated blocks to end of PAGE_SIZE */ >+ (size < (__u64)pb.last_block * fs->blocksize) && >+ (pb.last_block / blkpg * blkpg != pb.last_block || >+ size < (__u64)(pb.last_block & ~(blkpg-1)) *fs->blocksize)) > bad_size = 3; > else if (size > ext2_max_sizes[fs->super->s_log_block_size]) > bad_size = 4; > >Cheers, Andreas >-- >Andreas Dilger >Principal Software Engineer >Cluster File Systems, Inc. >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 156697
:
103083
|
103084
|
103085
|
103087
|
103088
|
103089
|
103090
|
103091
|
103092
|
103093
|
103094
|
103095
|
103096
|
103859