Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 103089 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-extents_htree.patch
e2fsprogs-1.39-ext4-extents_htree.patch (text/plain), 1.41 KB, created by
Conrad Kostecki
on 2006-12-01 00:48:37 UTC
(
hide
)
Description:
e2fsprogs-1.39-ext4-extents_htree.patch
Filename:
MIME Type:
Creator:
Conrad Kostecki
Created:
2006-12-01 00:48:37 UTC
Size:
1.41 KB
patch
obsolete
>Allow htree directories to be extent mapped. > >Index: e2fsprogs/e2fsck/pass1.c >=================================================================== >--- e2fsprogs.orig/e2fsck/pass1.c 2006-07-10 03:45:19.000000000 -0600 >+++ e2fsprogs/e2fsck/pass1.c 2006-07-10 03:47:55.000000000 -0600 >@@ -1364,10 +1364,23 @@ clear_extattr: > return 0; > } > >+static int htree_blk_iter_cb(ext2_filsys fs EXT2FS_ATTR((unused)), >+ blk_t *blocknr, >+ e2_blkcnt_t blockcnt EXT2FS_ATTR((unused)), >+ blk_t ref_blk EXT2FS_ATTR((unused)), >+ int ref_offset EXT2FS_ATTR((unused)), >+ void *priv_data) >+{ >+ blk_t *blk = priv_data; >+ >+ *blk = *blocknr; >+ >+ return BLOCK_ABORT; >+} >+ > /* Returns 1 if bad htree, 0 if OK */ > static int handle_htree(e2fsck_t ctx, struct problem_context *pctx, >- ext2_ino_t ino EXT2FS_ATTR((unused)), >- struct ext2_inode *inode, >+ ext2_ino_t ino, struct ext2_inode *inode, > char *block_buf) > { > struct ext2_dx_root_info *root; >@@ -1381,7 +1394,8 @@ static int handle_htree(e2fsck_t ctx, st > fix_problem(ctx, PR_1_HTREE_SET, pctx))) > return 1; > >- blk = inode->i_block[0]; >+ ext2fs_block_iterate2(fs, ino, BLOCK_FLAG_DATA_ONLY | BLOCK_FLAG_HOLE, >+ block_buf, htree_blk_iter_cb, &blk); > if (((blk == 0) || > (blk < fs->super->s_first_data_block) || > (blk >= fs->super->s_blocks_count)) && > >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