fix bug and add support for the xfs

fix bug and add support for the xfs