Skip to content

fsck.gfs2: Fix bugs and eliminate pass1c

Bob Peterson cluster-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20libgfs2: Check block range when inserting into rgrp treegfs2/libgfs2/super.c+6 -00 replies
2/20libgfs2: Check rgd->bits before referencing itgfs2/libgfs2/rgrp.c+1 -10 replies
3/20fsck.gfs2: Add check for gfs1 invalid inode refs in dentrygfs2/fsck/pass2.c+21 -00 replies
4/20fsck.gfs2: Make debug messages more succinct wrt extended attributesgfs2/fsck/metawalk.c+11 -60 replies
5/20fsck.gfs2: Break up funtion handle_dup_blkgfs2/fsck/pass1b.c+67 -640 replies
6/20fsck.gfs2: Only preserve the _first_ acceptable inode referencegfs2/fsck/pass1b.c+1 -20 replies
7/20fsck.gfs2: Don't just assume the remaining EA reference is goodgfs2/fsck/pass1b.c+34 -50 replies
8/20fsck.gfs2: Don't delete inode for duplicate reference in EAgfs2/fsck/pass1b.c+33 -90 replies
9/20fsck.gfs2: Don't traverse EAs that belong to another inodegfs2/fsck/pass1b.c+21 -20 replies
10/20fsck.gfs2: Refactor function check_indirect_eattrgfs2/fsck/metawalk.c+68 -730 replies
11/20fsck.gfs2: Once an indirect ea error is found, flag all that followgfs2/fsck/metawalk.c+23 -50 replies
12/20fsck.gfs2: Always restore saved value for di_eattrgfs2/fsck/metawalk.c+4 -50 replies
13/20fsck.gfs2: Remove redundancy in add_duplicate_refgfs2/fsck/util.c+2 -20 replies
14/20fsck.gfs2: Don't remove duplicate eattr blocksgfs2/fsck/pass1.c+48 -280 replies
15/20fsck.gfs2: Refactor check_eattr_entries and add error messagesgfs2/fsck/pass1.c+17 -110 replies
16/20fsck.gfs2: remove bad EAs at the end, not as-you-gogfs2/fsck/pass1.c+58 -490 replies
17/20fsck.gfs2: Combine remove_inode_eattr with its only callergfs2/fsck/pass1.c+7 -160 replies
18/20fsck.gfs2: Print debug message to dilineate metadata blocksgfs2/fsck/metawalk.c+4 -00 replies
19/20fsck.gfs2: Remove pass1c in favor of processing in pass1gfs2/fsck/Makefile.am gfs2/fsck/main.c gfs2/fsck/pass1.c +3 more+62 -3270 replies
20/20fsck.gfs2: Clone duplicate data block pointersgfs2/fsck/pass1b.c gfs2/fsck/util.c+136 -410 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Cluster-devel] [gfs2-utils PATCH 00/20] fsck.gfs2: Fix bugs and eliminate pass1c

Hi,

This original goal of this patch series was to eliminate pass1c, because it is slow and takes lots of memory related to a linked list of all inodes that have extended attributes. In thoroughly testing the patch, I uncovered a bunch of fsck.gfs2 bugs, most of which have to do with extended attributes. One patch spares the life of inodes that have bad extended attribute pointers:
rather than deleting the inode, it now removes its extended attributes. Another patch adds a new feature to fsck.gfs2 whereby duplicated data block pointers may be cloned to new data blocks, sparing the life of some inodes that were previously deleted. There are a few cleanups thrown in as well.

Regards,

Bob Peterson
Red Hat File Systems

---
Bob Peterson (20):
libgfs2: Check block range when inserting into rgrp tree
libgfs2: Check rgd->bits before referencing it
fsck.gfs2: Add check for gfs1 invalid inode refs in dentry fsck.gfs2: Make debug messages more succinct wrt extended attributes fsck.gfs2: Break up funtion handle_dup_blk
fsck.gfs2: Only preserve the _first_ acceptable inode reference fsck.gfs2: Don't just assume the remaining EA reference is good fsck.gfs2: Don't delete inode for duplicate reference in EA fsck.gfs2: Don't traverse EAs that belong to another inode fsck.gfs2: Refactor function check_indirect_eattr fsck.gfs2: Once an indirect ea error is found, flag all that follow fsck.gfs2: Always restore saved value for di_eattr fsck.gfs2: Remove redundancy in add_duplicate_ref fsck.gfs2: Don't remove duplicate eattr blocks
fsck.gfs2: Refactor check_eattr_entries and add error messages fsck.gfs2: remove bad EAs at the end, not as-you-go fsck.gfs2: Combine remove_inode_eattr with its only caller fsck.gfs2: Print debug message to dilineate metadata blocks fsck.gfs2: Remove pass1c in favor of processing in pass1 fsck.gfs2: Clone duplicate data block pointers

 gfs2/fsck/Makefile.am  |   1 -
 gfs2/fsck/main.c       |   1 -
 gfs2/fsck/metawalk.c   | 185 ++++++++++++-----------
 gfs2/fsck/pass1.c      | 296 ++++++++++++++++++++++---------------
 gfs2/fsck/pass1b.c     | 392 +++++++++++++++++++++++++++++++++++--------------
 gfs2/fsck/pass1c.c     | 285 -----------------------------------
 gfs2/fsck/pass2.c      |  21 +++
 gfs2/fsck/util.c       |  15 +-
 gfs2/libgfs2/libgfs2.h |   2 -
 gfs2/libgfs2/rgrp.c    |   2 +-
 gfs2/libgfs2/super.c   |   6 +
 11 files changed, 592 insertions(+), 614 deletions(-)
 delete mode 100644 gfs2/fsck/pass1c.c
Signature · 1 line
2.4.3