View | Details | Raw Unified | Return to bug 244470
Collapse All | Expand All

(-)traverse.c (-1 / +1 lines)
Lines 754-764 Link Here
754
	 * Update the block map in the header to indicate the added
754
	 * Update the block map in the header to indicate the added
755
	 * extended attribute. They will be appended after the file
755
	 * extended attribute. They will be appended after the file
756
	 * data by the writeextdata() routine.
756
	 * data by the writeextdata() routine.
757
	 */
757
	 */
758
	tbperdb = sblock->fs_bsize >> tp_bshift;
758
	tbperdb = sblock->fs_bsize >> tp_bshift;
759
	assert(spcl.c_count + blks < TP_NINDIR);
759
	assert(spcl.c_count + blks <= TP_NINDIR);
760
	for (i = 0; i < blks; i++)
760
	for (i = 0; i < blks; i++)
761
		if (&dp->dp2.di_extb[i / tbperdb] != 0)
761
		if (&dp->dp2.di_extb[i / tbperdb] != 0)
762
				spcl.c_addr[spcl.c_count + i] = 1;
762
				spcl.c_addr[spcl.c_count + i] = 1;
763
			else
763
			else
764
				spcl.c_addr[spcl.c_count + i] = 0;
764
				spcl.c_addr[spcl.c_count + i] = 0;

Return to bug 244470