wiretest.c

来自「lustre 1.6.5 source code」· C语言 代码 · 共 969 行 · 第 1/5 页

C
969
字号
                 (long long)(int)offsetof(struct obd_statfs, os_namelen));        LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_namelen) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_statfs *)0)->os_namelen));        LASSERTF((int)offsetof(struct obd_statfs, os_state) == 104, " found %lld\n",                 (long long)(int)offsetof(struct obd_statfs, os_state));        LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_state) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_statfs *)0)->os_state));        LASSERTF((int)offsetof(struct obd_statfs, os_spare1) == 108, " found %lld\n",                 (long long)(int)offsetof(struct obd_statfs, os_spare1));        LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_spare1) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_statfs *)0)->os_spare1));        LASSERTF((int)offsetof(struct obd_statfs, os_spare2) == 112, " found %lld\n",                 (long long)(int)offsetof(struct obd_statfs, os_spare2));        LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_spare2) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_statfs *)0)->os_spare2));        LASSERTF((int)offsetof(struct obd_statfs, os_spare3) == 116, " found %lld\n",                 (long long)(int)offsetof(struct obd_statfs, os_spare3));        LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_spare3) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_statfs *)0)->os_spare3));        LASSERTF((int)offsetof(struct obd_statfs, os_spare4) == 120, " found %lld\n",                 (long long)(int)offsetof(struct obd_statfs, os_spare4));        LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_spare4) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_statfs *)0)->os_spare4));        LASSERTF((int)offsetof(struct obd_statfs, os_spare5) == 124, " found %lld\n",                 (long long)(int)offsetof(struct obd_statfs, os_spare5));        LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_spare5) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_statfs *)0)->os_spare5));        LASSERTF((int)offsetof(struct obd_statfs, os_spare6) == 128, " found %lld\n",                 (long long)(int)offsetof(struct obd_statfs, os_spare6));        LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_spare6) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_statfs *)0)->os_spare6));        LASSERTF((int)offsetof(struct obd_statfs, os_spare7) == 132, " found %lld\n",                 (long long)(int)offsetof(struct obd_statfs, os_spare7));        LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_spare7) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_statfs *)0)->os_spare7));        LASSERTF((int)offsetof(struct obd_statfs, os_spare8) == 136, " found %lld\n",                 (long long)(int)offsetof(struct obd_statfs, os_spare8));        LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_spare8) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_statfs *)0)->os_spare8));        LASSERTF((int)offsetof(struct obd_statfs, os_spare9) == 140, " found %lld\n",                 (long long)(int)offsetof(struct obd_statfs, os_spare9));        LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_spare9) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_statfs *)0)->os_spare9));        /* Checks for struct obd_ioobj */        LASSERTF((int)sizeof(struct obd_ioobj) == 24, " found %lld\n",                 (long long)(int)sizeof(struct obd_ioobj));        LASSERTF((int)offsetof(struct obd_ioobj, ioo_id) == 0, " found %lld\n",                 (long long)(int)offsetof(struct obd_ioobj, ioo_id));        LASSERTF((int)sizeof(((struct obd_ioobj *)0)->ioo_id) == 8, " found %lld\n",                 (long long)(int)sizeof(((struct obd_ioobj *)0)->ioo_id));        LASSERTF((int)offsetof(struct obd_ioobj, ioo_gr) == 8, " found %lld\n",                 (long long)(int)offsetof(struct obd_ioobj, ioo_gr));        LASSERTF((int)sizeof(((struct obd_ioobj *)0)->ioo_gr) == 8, " found %lld\n",                 (long long)(int)sizeof(((struct obd_ioobj *)0)->ioo_gr));        LASSERTF((int)offsetof(struct obd_ioobj, ioo_type) == 16, " found %lld\n",                 (long long)(int)offsetof(struct obd_ioobj, ioo_type));        LASSERTF((int)sizeof(((struct obd_ioobj *)0)->ioo_type) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_ioobj *)0)->ioo_type));        LASSERTF((int)offsetof(struct obd_ioobj, ioo_bufcnt) == 20, " found %lld\n",                 (long long)(int)offsetof(struct obd_ioobj, ioo_bufcnt));        LASSERTF((int)sizeof(((struct obd_ioobj *)0)->ioo_bufcnt) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_ioobj *)0)->ioo_bufcnt));        /* Checks for struct obd_quotactl */        LASSERTF((int)sizeof(struct obd_quotactl) == 112, " found %lld\n",                 (long long)(int)sizeof(struct obd_quotactl));        LASSERTF((int)offsetof(struct obd_quotactl, qc_cmd) == 0, " found %lld\n",                 (long long)(int)offsetof(struct obd_quotactl, qc_cmd));        LASSERTF((int)sizeof(((struct obd_quotactl *)0)->qc_cmd) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_quotactl *)0)->qc_cmd));        LASSERTF((int)offsetof(struct obd_quotactl, qc_type) == 4, " found %lld\n",                 (long long)(int)offsetof(struct obd_quotactl, qc_type));        LASSERTF((int)sizeof(((struct obd_quotactl *)0)->qc_type) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_quotactl *)0)->qc_type));        LASSERTF((int)offsetof(struct obd_quotactl, qc_id) == 8, " found %lld\n",                 (long long)(int)offsetof(struct obd_quotactl, qc_id));        LASSERTF((int)sizeof(((struct obd_quotactl *)0)->qc_id) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_quotactl *)0)->qc_id));        LASSERTF((int)offsetof(struct obd_quotactl, qc_stat) == 12, " found %lld\n",                 (long long)(int)offsetof(struct obd_quotactl, qc_stat));        LASSERTF((int)sizeof(((struct obd_quotactl *)0)->qc_stat) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_quotactl *)0)->qc_stat));        LASSERTF((int)offsetof(struct obd_quotactl, qc_dqinfo) == 16, " found %lld\n",                 (long long)(int)offsetof(struct obd_quotactl, qc_dqinfo));        LASSERTF((int)sizeof(((struct obd_quotactl *)0)->qc_dqinfo) == 24, " found %lld\n",                 (long long)(int)sizeof(((struct obd_quotactl *)0)->qc_dqinfo));        LASSERTF((int)offsetof(struct obd_quotactl, qc_dqblk) == 40, " found %lld\n",                 (long long)(int)offsetof(struct obd_quotactl, qc_dqblk));        LASSERTF((int)sizeof(((struct obd_quotactl *)0)->qc_dqblk) == 72, " found %lld\n",                 (long long)(int)sizeof(((struct obd_quotactl *)0)->qc_dqblk));        /* Checks for struct obd_dqinfo */        LASSERTF((int)sizeof(struct obd_dqinfo) == 24, " found %lld\n",                 (long long)(int)sizeof(struct obd_dqinfo));        LASSERTF((int)offsetof(struct obd_dqinfo, dqi_bgrace) == 0, " found %lld\n",                 (long long)(int)offsetof(struct obd_dqinfo, dqi_bgrace));        LASSERTF((int)sizeof(((struct obd_dqinfo *)0)->dqi_bgrace) == 8, " found %lld\n",                 (long long)(int)sizeof(((struct obd_dqinfo *)0)->dqi_bgrace));        LASSERTF((int)offsetof(struct obd_dqinfo, dqi_igrace) == 8, " found %lld\n",                 (long long)(int)offsetof(struct obd_dqinfo, dqi_igrace));        LASSERTF((int)sizeof(((struct obd_dqinfo *)0)->dqi_igrace) == 8, " found %lld\n",                 (long long)(int)sizeof(((struct obd_dqinfo *)0)->dqi_igrace));        LASSERTF((int)offsetof(struct obd_dqinfo, dqi_flags) == 16, " found %lld\n",                 (long long)(int)offsetof(struct obd_dqinfo, dqi_flags));        LASSERTF((int)sizeof(((struct obd_dqinfo *)0)->dqi_flags) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_dqinfo *)0)->dqi_flags));        LASSERTF((int)offsetof(struct obd_dqinfo, dqi_valid) == 20, " found %lld\n",                 (long long)(int)offsetof(struct obd_dqinfo, dqi_valid));        LASSERTF((int)sizeof(((struct obd_dqinfo *)0)->dqi_valid) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_dqinfo *)0)->dqi_valid));        /* Checks for struct obd_dqblk */        LASSERTF((int)sizeof(struct obd_dqblk) == 72, " found %lld\n",                 (long long)(int)sizeof(struct obd_dqblk));        LASSERTF((int)offsetof(struct obd_dqblk, dqb_bhardlimit) == 0, " found %lld\n",                 (long long)(int)offsetof(struct obd_dqblk, dqb_bhardlimit));        LASSERTF((int)sizeof(((struct obd_dqblk *)0)->dqb_bhardlimit) == 8, " found %lld\n",                 (long long)(int)sizeof(((struct obd_dqblk *)0)->dqb_bhardlimit));        LASSERTF((int)offsetof(struct obd_dqblk, dqb_bsoftlimit) == 8, " found %lld\n",                 (long long)(int)offsetof(struct obd_dqblk, dqb_bsoftlimit));        LASSERTF((int)sizeof(((struct obd_dqblk *)0)->dqb_bsoftlimit) == 8, " found %lld\n",                 (long long)(int)sizeof(((struct obd_dqblk *)0)->dqb_bsoftlimit));        LASSERTF((int)offsetof(struct obd_dqblk, dqb_curspace) == 16, " found %lld\n",                 (long long)(int)offsetof(struct obd_dqblk, dqb_curspace));        LASSERTF((int)sizeof(((struct obd_dqblk *)0)->dqb_curspace) == 8, " found %lld\n",                 (long long)(int)sizeof(((struct obd_dqblk *)0)->dqb_curspace));        LASSERTF((int)offsetof(struct obd_dqblk, dqb_ihardlimit) == 24, " found %lld\n",                 (long long)(int)offsetof(struct obd_dqblk, dqb_ihardlimit));        LASSERTF((int)sizeof(((struct obd_dqblk *)0)->dqb_ihardlimit) == 8, " found %lld\n",                 (long long)(int)sizeof(((struct obd_dqblk *)0)->dqb_ihardlimit));        LASSERTF((int)offsetof(struct obd_dqblk, dqb_isoftlimit) == 32, " found %lld\n",                 (long long)(int)offsetof(struct obd_dqblk, dqb_isoftlimit));        LASSERTF((int)sizeof(((struct obd_dqblk *)0)->dqb_isoftlimit) == 8, " found %lld\n",                 (long long)(int)sizeof(((struct obd_dqblk *)0)->dqb_isoftlimit));        LASSERTF((int)offsetof(struct obd_dqblk, dqb_curinodes) == 40, " found %lld\n",                 (long long)(int)offsetof(struct obd_dqblk, dqb_curinodes));        LASSERTF((int)sizeof(((struct obd_dqblk *)0)->dqb_curinodes) == 8, " found %lld\n",                 (long long)(int)sizeof(((struct obd_dqblk *)0)->dqb_curinodes));        LASSERTF((int)offsetof(struct obd_dqblk, dqb_btime) == 48, " found %lld\n",                 (long long)(int)offsetof(struct obd_dqblk, dqb_btime));        LASSERTF((int)sizeof(((struct obd_dqblk *)0)->dqb_btime) == 8, " found %lld\n",                 (long long)(int)sizeof(((struct obd_dqblk *)0)->dqb_btime));        LASSERTF((int)offsetof(struct obd_dqblk, dqb_itime) == 56, " found %lld\n",                 (long long)(int)offsetof(struct obd_dqblk, dqb_itime));        LASSERTF((int)sizeof(((struct obd_dqblk *)0)->dqb_itime) == 8, " found %lld\n",                 (long long)(int)sizeof(((struct obd_dqblk *)0)->dqb_itime));        LASSERTF((int)offsetof(struct obd_dqblk, dqb_valid) == 64, " found %lld\n",                 (long long)(int)offsetof(struct obd_dqblk, dqb_valid));        LASSERTF((int)sizeof(((struct obd_dqblk *)0)->dqb_valid) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_dqblk *)0)->dqb_valid));        LASSERTF((int)offsetof(struct obd_dqblk, padding) == 68, " found %lld\n",                 (long long)(int)offsetof(struct obd_dqblk, padding));        LASSERTF((int)sizeof(((struct obd_dqblk *)0)->padding) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct obd_dqblk *)0)->padding));        LASSERTF(Q_QUOTACHECK == 0x800100," found %lld\n",                 (long long)Q_QUOTACHECK);        LASSERTF(Q_INITQUOTA == 0x800101," found %lld\n",                 (long long)Q_INITQUOTA);        LASSERTF(Q_GETOINFO == 0x800102," found %lld\n",                 (long long)Q_GETOINFO);        LASSERTF(Q_GETOQUOTA == 0x800103," found %lld\n",                 (long long)Q_GETOQUOTA);        /* Checks for struct niobuf_remote */        LASSERTF((int)sizeof(struct niobuf_remote) == 16, " found %lld\n",                 (long long)(int)sizeof(struct niobuf_remote));        LASSERTF((int)offsetof(struct niobuf_remote, offset) == 0, " found %lld\n",                 (long long)(int)offsetof(struct niobuf_remote, offset));        LASSERTF((int)sizeof(((struct niobuf_remote *)0)->offset) == 8, " found %lld\n",                 (long long)(int)sizeof(((struct niobuf_remote *)0)->offset));        LASSERTF((int)offsetof(struct niobuf_remote, len) == 8, " found %lld\n",                 (long long)(int)offsetof(struct niobuf_remote, len));        LASSERTF((int)sizeof(((struct niobuf_remote *)0)->len) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct niobuf_remote *)0)->len));        LASSERTF((int)offsetof(struct niobuf_remote, flags) == 12, " found %lld\n",                 (long long)(int)offsetof(struct niobuf_remote, flags));        LASSERTF((int)sizeof(((struct niobuf_remote *)0)->flags) == 4, " found %lld\n",                 (long long)(int)sizeof(((struct niobuf_remote *)0)->flags));        LASSERTF(OBD_BRW_READ == 1, " found %lld\n",                 (long long)OBD_BRW_READ);        LASSERTF(OBD_BRW_WRITE == 2, " found %lld\n",                 (long long)OBD_BRW_WRITE);        LASSERTF(OBD_BRW_SYNC == 8, " found %lld\n",                 (long long)OBD_BRW_SYNC);        LASSERTF(OBD_BRW_FROM_GRANT == 32, " found %lld\n",                 (long long)OBD_BRW_FROM_GRANT);        LASSERTF(OBD_BRW_NOQUOTA == 256, " found %lld\n",                 (long long)OBD_BRW_NOQUOTA);        /* Checks for struct ost_body */        LASSERTF((int)sizeof(struct ost_body) == 208, " found %lld\n",                 (long long)(int)si

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?