Re: XFS assertion during testing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 27, 2016 at 02:03:09PM +0200, Jan Kara wrote:
> Hi,
> 
> I've hit the following assertion:
> 
> XFS: Assertion failed: dp->i_d.di_size >= xfs_dir2_sf_hdr_size(sfp->i8count),
> file: fs/xfs/xfs_dir2_readdir.c, line: 87
> 
> during my testing. Now take this with a grain of salt since this is with my
> DAX patches applied on top of for-next branch of Dave's tree from
> yesterday. But I didn't touch XFS directory code even remotely which is why
> I'm reporting this.
> 
> The error happened while running xfstest xfs/083 on 20G ramdisk with dax
> enabled.

xfs/083 == "corrupt random stuff and see if anything notices" test,
which is why you get asserts in the directory code while testing DAX. :)

That assert probably ought to be:

if (dp->i_d.di_size < xfs_dir2_sf_hdr_size(sfp->i8count))
	return -EFSCORRUPTED;

--D

> 
> 								Honza
> 
> -- 
> Jan Kara <jack@xxxxxxxx>
> SUSE Labs, CR
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux