Gitweb:
http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=54ff2a9b...
Commit: 54ff2a9b67782f94e882bea708eb4c61ede1ef8d
Parent: caaaeb85d04fb5f72288b7b568596ce3e9ca5e8e
Author: Bob Peterson <rpeterso(a)redhat.com>
AuthorDate: Tue May 3 12:16:05 2016 -0500
Committer: Bob Peterson <rpeterso(a)redhat.com>
CommitterDate: Mon May 9 13:21:17 2016 -0500
fsck.gfs2: pass1b is too noisy wrt gfs1 non-dinode metadata
For GFS1 file systems, a block marked as metadata may either be a
dinode or any other kind of metadata. For GFS2 file systems, it makes
sense to complain when we find something that we think is a dinode,
but isn't. For GFS1 file systems, non-dinode metadata is a common
thing, so it makes sense to keep quiet about it.
Signed-off-by: Bob Peterson <rpeterso(a)redhat.com>
---
gfs2/fsck/pass1b.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/gfs2/fsck/pass1b.c b/gfs2/fsck/pass1b.c
index f5f286a..9d5fc04 100644
--- a/gfs2/fsck/pass1b.c
+++ b/gfs2/fsck/pass1b.c
@@ -877,9 +877,10 @@ static int find_block_ref(struct gfs2_sbd *sdp, uint64_t inode)
/* double-check the meta header just to be sure it's metadata */
if (ip->i_di.di_header.mh_magic != GFS2_MAGIC ||
ip->i_di.di_header.mh_type != GFS2_METATYPE_DI) {
- log_debug( _("Block %lld (0x%llx) is not gfs2 metadata.\n"),
- (unsigned long long)inode,
- (unsigned long long)inode);
+ if (!sdp->gfs1)
+ log_debug( _("Block %lld (0x%llx) is not a dinode.\n"),
+ (unsigned long long)inode,
+ (unsigned long long)inode);
error = 1;
goto out;
}