* (if any) is indicated in the ilf_dsize field. Changes to this structure
* must be added on to the end.
*/
-typedef struct xfs_inode_log_format {
+struct xfs_inode_log_format {
uint16_t ilf_type; /* inode log item type */
uint16_t ilf_size; /* size of this item */
uint32_t ilf_fields; /* flags for fields logged */
int64_t ilf_blkno; /* blkno of inode buffer */
int32_t ilf_len; /* len of inode buffer */
int32_t ilf_boffset; /* off of inode in buffer */
-} xfs_inode_log_format_t;
+};
/*
* Old 32 bit systems will log in this format without the 64 bit
char *dp,
int len)
{
- xfs_inode_log_format_t *in_f; /* any will do */
+ struct xfs_inode_log_format *in_f; /* any will do */
xlog_recover_item_t *item;
char *ptr;
ptr = kmem_alloc(len, KM_SLEEP);
memcpy(ptr, dp, len);
- in_f = (xfs_inode_log_format_t *)ptr;
+ in_f = (struct xfs_inode_log_format *)ptr;
/* take the tail entry */
item = list_entry(trans->r_itemq.prev, xlog_recover_item_t, ri_list);
* print inode type header region
*
* memmove to ensure 8-byte alignment for the long longs in
- * xfs_inode_log_format_t structure
+ * struct xfs_inode_log_format structure
*
- * len can be smaller than xfs_inode_log_format_t
+ * len can be smaller than struct xfs_inode_log_format
* if format data is split over operations
*/
memmove(&src_lbuf, *ptr, MIN(sizeof(src_lbuf), len));
(long long)f->ilf_blkno, f->ilf_len, f->ilf_boffset);
} else {
ASSERT(len >= 4); /* must have at least 4 bytes if != 0 */
- f = (xfs_inode_log_format_t *)&src_lbuf;
+ f = (struct xfs_inode_log_format *)&src_lbuf;
printf(_("INODE: #regs: %d Not printing rest of data\n"),
f->ilf_size);
return f->ilf_size;
* if necessary, convert an xfs_inode_log_format struct from the old 32bit version
* (which can have different field alignments) to the native 64 bit version
*/
-xfs_inode_log_format_t *
-xfs_inode_item_format_convert(char *src_buf, uint len, xfs_inode_log_format_t *in_f)
+struct xfs_inode_log_format *
+xfs_inode_item_format_convert(char *src_buf, uint len, struct xfs_inode_log_format *in_f)
{
struct xfs_inode_log_format_32 *in_f32;
/* if we have native format then just return buf without copying data */
- if (len == sizeof(xfs_inode_log_format_t)) {
- return (xfs_inode_log_format_t *)src_buf;
+ if (len == sizeof(struct xfs_inode_log_format)) {
+ return (struct xfs_inode_log_format *)src_buf;
}
in_f32 = (struct xfs_inode_log_format_32 *)src_buf;
xlog_recover_print_inode(
xlog_recover_item_t *item)
{
- xfs_inode_log_format_t f_buf;
- xfs_inode_log_format_t *f;
+ struct xfs_inode_log_format f_buf;
+ struct xfs_inode_log_format *f;
int attr_index;
int hasdata;
int hasattr;
extern void print_xlog_op_line(void);
extern void print_stars(void);
-extern xfs_inode_log_format_t *
- xfs_inode_item_format_convert(char *, uint, xfs_inode_log_format_t *);
+extern struct xfs_inode_log_format *
+ xfs_inode_item_format_convert(char *, uint, struct xfs_inode_log_format *);
extern int xlog_print_trans_efi(char **ptr, uint src_len, int continued);
extern void xlog_recover_print_efi(xlog_recover_item_t *item);