* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <xfs/libxfs.h>
+#include "libxfs.h"
#include "bit.h"
#include "type.h"
#include "faddr.h"
struct xfs_attr3_leafblock *leaf = obj;
ASSERT(startoff == 0);
- if (be16_to_cpu(leaf->hdr.info.hdr.magic) != XFS_ATTR_LEAF_MAGIC)
+ if (be16_to_cpu(leaf->hdr.info.hdr.magic) != XFS_ATTR3_LEAF_MAGIC)
return 0;
return be16_to_cpu(leaf->hdr.count);
}
return 0;
off = byteize(startoff);
- xfs_attr3_leaf_hdr_from_disk(&leafhdr, leaf);
+ xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf);
entries = xfs_attr3_leaf_entryp(leaf);
for (i = 0; i < leafhdr.count; i++) {
break;
default:
dbprintf(_("Unknown attribute buffer type!\n"));
- xfs_buf_ioerror(bp, EFSCORRUPTED);
+ xfs_buf_ioerror(bp, -EFSCORRUPTED);
return;
}
verify:
struct xfs_buf *bp)
{
dbprintf(_("Writing unknown attribute buffer type!\n"));
- xfs_buf_ioerror(bp, EFSCORRUPTED);
+ xfs_buf_ioerror(bp, -EFSCORRUPTED);
}
const struct xfs_buf_ops xfs_attr3_db_buf_ops = {
+ .name = "xfs_attr3",
.verify_read = xfs_attr3_db_read_verify,
.verify_write = xfs_attr3_db_write_verify,
};