search for: ocfs2_check_group_descriptor

Displaying 7 results from an estimated 7 matches for "ocfs2_check_group_descriptor".

2009 Feb 27
2
[PATCH 1/1] OCFS2: anti stale inode for nfs (V5)
...goto bail; + } + + bg_blkno = ocfs2_which_suballoc_group(blkno, bit); + status = ocfs2_read_group_descriptor(suballoc, alloc_fe, bg_blkno, + &group_bh); + if (status < 0) { + mlog(ML_ERROR, "read group %llu failed %d\n", bg_blkno, status); + goto bail; + } + + status = ocfs2_check_group_descriptor(osb->sb, alloc_fe, group_bh); + if (status < 0) { + mlog(ML_ERROR, "check group %llu faild %d\n", bg_blkno, status); + goto bail; + } + + group = (struct ocfs2_group_desc *) group_bh->b_data; + *res = ocfs2_test_bit(bit, (unsigned long *)group->bg_bitmap); + +bail: + brelse(...
2010 Apr 05
1
Kernel Panic, Server not coming back up
..._expand_nonsparse_inode:1678 ERROR: status = -5 (2869,0):ocfs2_write_begin_nolock:1722 ERROR: status = -5 (2869,0):ocfs2_write_begin:1860 ERROR: status = -5 (2869,0):ocfs2_file_buffered_write:2039 ERROR: status = -5 (2869,0):__ocfs2_file_aio_write:2194 ERROR: status = -5 OCFS2: ERROR (device sdc1): ocfs2_check_group_descriptor: Group descriptor # 1128960 has bit count 32256 but claims that 34300 are free (2881,0):ocfs2_search_chain:1244 ERROR: status = -5 (2881,0):ocfs2_claim_suballoc_bits:1433 ERROR: status = -5 (2881,0):__ocfs2_claim_clusters:1715 ERROR: status = -5 (2881,0):ocfs2_local_alloc_new_window:1013 ERROR: sta...
2011 Aug 10
1
fsck hangs in Pass 0a
...a ~10TB ocfs2 filesystem in a 8-node cluster. This sits on a logical volume (I know lv is not cluster aware, but I make sure no one touches the lv, while the cluster is running). The LV consists of 5x2TB multipath devices. I recently had errors like this on some nodes: OCFS2: ERROR (device dm-7): ocfs2_check_group_descriptor: Group Descriptor # 0 has bad signature File system is now read-only due to the potential of on-disk corruption. Please run fsck.ocfs2 once the file system is unmounted. (kvm,12322,1):ocfs2_search_chain:1363 ERROR: status = -5 (kvm,12322,1):ocfs2_claim_suballoc_bits:1524 ERROR: status = -5 (kvm,12...
2006 Aug 15
0
[git patches] ocfs2 updates
...struct inode *alloc_inode, struct ocfs2_group_desc *bg, @@ -143,6 +132,64 @@ static u32 ocfs2_bits_per_group(struct o return (u32)le16_to_cpu(cl->cl_cpg) * (u32)le16_to_cpu(cl->cl_bpc); } +/* somewhat more expensive than our other checks, so use sparingly. */ +static int ocfs2_check_group_descriptor(struct super_block *sb, + struct ocfs2_dinode *di, + struct ocfs2_group_desc *gd) +{ + unsigned int max_bits; + + if (!OCFS2_IS_VALID_GROUP_DESC(gd)) { + OCFS2_RO_ON_INVALID_GROUP_DESC(sb, gd); + return -EIO; + } + + if (di->i_blkno != gd->bg_parent_dinode) { + ocfs2_error(sb, &quo...
2009 Mar 06
2
[PATCH 1/1] OCFS2: anti stale inode for nfs (for 1.4git)
...up(blkno, bit); + status = ocfs2_read_block(osb, bg_blkno, &group_bh, OCFS2_BH_CACHED, + suballoc); + if (status < 0) { + mlog(ML_ERROR, "read group %llu failed %d\n", bg_blkno, status); + goto bail; + } + + group = (struct ocfs2_group_desc *) group_bh->b_data; + status = ocfs2_check_group_descriptor(osb->sb, alloc_fe, group); + if (status < 0) + goto bail; + + *res = ocfs2_test_bit(bit, (unsigned long *)group->bg_bitmap); + +bail: + brelse(group_bh); + + mlog_exit(status); + return status; +} + +/* test if the bit, which is for the inode specified by blkno, in suballoc is + * set or...
2009 Feb 17
1
[PATCH 1/1] OCFS2: anti stale inode for nfs (V3)
...s_per_group(&alloc_fe->id2.i_chain)); + + bg_blkno = ocfs2_which_suballoc_group(blkno, bit); + status = ocfs2_read_block(osb, bg_blkno, &group_bh, OCFS2_BH_CACHED, + suballoc); + if (status < 0) + goto bail; + + group = (struct ocfs2_group_desc *) group_bh->b_data; + status = ocfs2_check_group_descriptor(osb->sb, alloc_fe, group); + if (status < 0) + goto bail; + + *res = ocfs2_test_bit(bit, (unsigned long *)group->bg_bitmap); + +bail: + brelse(group_bh); + + mlog_exit(status); + return status; +} Index: fs/ocfs2/suballoc.h =================================================================...
2009 Feb 20
3
[PATCH 1/1] OCFS2: anti stale inode for nfs (V4)
...c_fe = (struct ocfs2_dinode *)alloc_bh->b_data; + BUG_ON((bit + 1) > ocfs2_bits_per_group(&alloc_fe->id2.i_chain)); + + bg_blkno = ocfs2_which_suballoc_group(blkno, bit); + status = ocfs2_read_blocks_sync(osb, bg_blkno, 1, &group_bh); + if (status < 0) + goto bail; + + status = ocfs2_check_group_descriptor(osb->sb, alloc_fe, group_bh); + if (status < 0) + goto bail; + + group = (struct ocfs2_group_desc *) group_bh->b_data; + *res = ocfs2_test_bit(bit, (unsigned long *)group->bg_bitmap); + +bail: + brelse(group_bh); + + mlog_exit(status); + return status; +} + +/* test if the bit, which i...