fix bug on xfs,can't get file type