{ NULL }
};
-#define DOFF(f) bitize(offsetof(xfs_disk_dquot_t, d_ ## f))
+#define DOFF(f) bitize(offsetof(struct xfs_disk_dquot, d_ ## f))
const field_t disk_dquot_flds[] = {
{ "magic", FLDT_UINT16X, OI(DOFF(magic)), C1, 0, TYP_NONE },
{ "version", FLDT_UINT8X, OI(DOFF(version)), C1, 0, TYP_NONE },
{ FLDT_DIRBLOCK, "dirblock", fp_num, "%u", SI(bitsz(uint32_t)), 0,
fa_dirblock, NULL },
{ FLDT_DISK_DQUOT, "disk_dquot", NULL, (char *)disk_dquot_flds,
- SI(bitsz(xfs_disk_dquot_t)), 0, NULL, disk_dquot_flds },
+ SI(bitsz(struct xfs_disk_dquot)), 0, NULL, disk_dquot_flds },
{ FLDT_DQBLK, "dqblk", NULL, (char *)dqblk_flds, SI(bitsz(xfs_dqblk_t)),
0, NULL, dqblk_flds },
{ FLDT_DQID, "dqid", fp_num, "%d", SI(bitsz(xfs_dqid_t)), 0, NULL,
xfs_failaddr_t
xfs_dquot_verify(
- struct xfs_mount *mp,
- xfs_disk_dquot_t *ddq,
- xfs_dqid_t id,
- uint type) /* used only during quotacheck */
+ struct xfs_mount *mp,
+ struct xfs_disk_dquot *ddq,
+ xfs_dqid_t id,
+ uint type) /* used only during quotacheck */
{
/*
* We can encounter an uninitialized dquot buffer for 2 reasons:
/*
* This is the main portion of the on-disk representation of quota
- * information for a user. This is the q_core of the xfs_dquot_t that
+ * information for a user. This is the q_core of the struct xfs_dquot that
* is kept in kernel memory. We pad this with some more expansion room
* to construct the on disk structure.
*/
-typedef struct xfs_disk_dquot {
+struct xfs_disk_dquot {
__be16 d_magic; /* dquot magic = XFS_DQUOT_MAGIC */
__u8 d_version; /* dquot version */
__u8 d_flags; /* XFS_DQ_USER/PROJ/GROUP */
__be32 d_rtbtimer; /* similar to above; for RT disk blocks */
__be16 d_rtbwarns; /* warnings issued wrt RT disk blocks */
__be16 d_pad;
-} xfs_disk_dquot_t;
+};
/*
* This is what goes on disk. This is separated from the xfs_disk_dquot because
* carrying the unnecessary padding would be a waste of memory.
*/
typedef struct xfs_dqblk {
- xfs_disk_dquot_t dd_diskdq; /* portion that lives incore as well */
- char dd_fill[4]; /* filling for posterity */
+ struct xfs_disk_dquot dd_diskdq; /* portion living incore as well */
+ char dd_fill[4];/* filling for posterity */
/*
* These two are only present on filesystems with the CRC bits set.
/*
* Adjusting quota limits.
- * the xfs_disk_dquot_t: sizeof(struct xfs_disk_dquot)
+ * the disk quota buffer: sizeof(struct xfs_disk_dquot)
*/
STATIC uint
xfs_calc_qm_setqlim_reservation(void)
memmove(dq, *ptr, sizeof(struct xfs_disk_dquot));
printf(_("DQUOT Buffer: DQ "));
if (be32_to_cpu(head->oh_len) <
- sizeof(xfs_disk_dquot_t)) {
+ sizeof(struct xfs_disk_dquot)) {
printf(_("Out of space\n"));
}
else {
static int
xlog_print_trans_dquot(char **ptr, int len, int *i, int num_ops)
{
- xfs_dq_logformat_t *f;
- xfs_dq_logformat_t lbuf = {0};
- xfs_disk_dquot_t ddq;
- xlog_op_header_t *head = NULL;
- int num, skip;
+ xfs_dq_logformat_t *f;
+ xfs_dq_logformat_t lbuf = {0};
+ struct xfs_disk_dquot ddq;
+ xlog_op_header_t *head = NULL;
+ int num, skip;
/*
* print dquot header region
while (num-- > 0) {
head = (xlog_op_header_t *)*ptr;
xlog_print_op_header(head, *i, ptr);
- ASSERT(be32_to_cpu(head->oh_len) == sizeof(xfs_disk_dquot_t));
- memmove(&ddq, *ptr, sizeof(xfs_disk_dquot_t));
+ ASSERT(be32_to_cpu(head->oh_len) == sizeof(struct xfs_disk_dquot));
+ memmove(&ddq, *ptr, sizeof(struct xfs_disk_dquot));
printf(_("DQUOT: magic 0x%hx flags 0%ho\n"),
be16_to_cpu(ddq.d_magic), ddq.d_flags);
*ptr += be32_to_cpu(head->oh_len);
char *p;
int len, num, i;
xfs_daddr_t blkno;
- xfs_disk_dquot_t *ddq;
+ struct xfs_disk_dquot *ddq;
f = (xfs_buf_log_format_t *)item->ri_buf[0].i_addr;
printf(" ");
be32_to_cpu(agf->agf_freeblks),
be32_to_cpu(agf->agf_longest));
} else if (*(uint *)p == XFS_DQUOT_MAGIC) {
- ddq = (xfs_disk_dquot_t *)p;
+ ddq = (struct xfs_disk_dquot *)p;
printf(_(" DQUOT Buffer:\n"));
if (!print_buffer)
continue;
xlog_recover_item_t *item)
{
xfs_dq_logformat_t *f;
- xfs_disk_dquot_t *d;
+ struct xfs_disk_dquot *d;
f = (xfs_dq_logformat_t *)item->ri_buf[0].i_addr;
ASSERT(f);
ASSERT(f->qlf_len == 1);
- d = (xfs_disk_dquot_t *)item->ri_buf[1].i_addr;
+ d = (struct xfs_disk_dquot *)item->ri_buf[1].i_addr;
printf(_("\tDQUOT: #regs:%d blkno:%lld boffset:%u id: %d\n"),
f->qlf_size, (long long)f->qlf_blkno, f->qlf_boffset, f->qlf_id);
if (!print_quota)