[PATCH 09/13] libxfs: remove ASSERT on ftype read from disk

Eric Sandeen sandeen at sandeen.net
Thu Mar 19 12:27:26 CDT 2015


On 3/19/15 11:46 AM, Brian Foster wrote:

>> diff --git a/include/xfs_da_format.h b/include/xfs_da_format.h
>> index 89a1a21..695e698 100644
>> --- a/include/xfs_da_format.h
>> +++ b/include/xfs_da_format.h
>> @@ -561,7 +561,7 @@ xfs_dir3_dirent_get_ftype(
>>  	if (xfs_sb_version_hasftype(&mp->m_sb)) {
>>  		__uint8_t	type = dep->name[dep->namelen];
>>  
>> -		ASSERT(type < XFS_DIR3_FT_MAX);
>> +		//ASSERT(type < XFS_DIR3_FT_MAX);
> 
> Just delete it..?

Urgh.  yes.  I thought I had done so.

Thanks,
-Eric



More information about the xfs mailing list