Gitweb: http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff... Commit: 60140c2ba6be8bf7836c5b1baae7c7a9ea3a71e7 Parent: c31c7932cf9e90ded90ea2d9108a751433272954 Author: Bob Peterson rpeterso@redhat.com AuthorDate: Tue Aug 23 09:28:22 2011 -0500 Committer: Bob Peterson rpeterso@redhat.com CommitterDate: Mon Aug 29 12:55:37 2011 -0500
fsck.gfs2: Increment link count reporting wrong dinode
The output from fsck.gfs2 was wrong when it reported about a link count change for lost+found. This patch fixes the message so it reports the correct dinode block number.
rhbz#675723 --- gfs2/fsck/lost_n_found.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gfs2/fsck/lost_n_found.c b/gfs2/fsck/lost_n_found.c index 2579480..625de0d 100644 --- a/gfs2/fsck/lost_n_found.c +++ b/gfs2/fsck/lost_n_found.c @@ -282,7 +282,7 @@ int add_inode_to_lf(struct gfs2_inode *ip){ /* If it's a directory, lost+found is back-linked to it via .. */ if (is_dir(&ip->i_di, sdp->gfs1)) incr_link_count(lf_dip->i_di.di_num.no_addr, - ip->i_di.di_mode, _("to lost+found")); + ip->i_di.di_num.no_addr, _("to lost+found"));
log_notice( _("Added inode #%llu (0x%llx) to lost+found\n"), (unsigned long long)ip->i_di.di_num.no_addr,
cluster-commits@lists.fedorahosted.org