Convert 'xfs_foo_t' typedef usage to 'struct xfs_foo' in preparation
for changes to some of the xfs ioctls.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
int fd;
__u64 last;
int nent;
int fd;
__u64 last;
int nent;
- xfs_fsop_bulkreq_t bsr;
+ struct xfs_fsop_bulkreq bsr;
last = 0;
nent = (r % 999) + 2;
last = 0;
nent = (r % 999) + 2;
int good;
__u64 ino;
struct stat64 s;
int good;
__u64 ino;
struct stat64 s;
- xfs_fsop_bulkreq_t bsr;
+ struct xfs_fsop_bulkreq bsr;
-printbstat(xfs_bstat_t *sp)
+printbstat(struct xfs_bstat *sp)
{
printf("ino %lld mode %#o nlink %d uid %d gid %d rdev %#x\n",
(long long)sp->bs_ino, sp->bs_mode, sp->bs_nlink,
{
printf("ino %lld mode %#o nlink %d uid %d gid %d rdev %#x\n",
(long long)sp->bs_ino, sp->bs_mode, sp->bs_nlink,
int quiet = 0;
int statit = 0;
int verbose = 0;
int quiet = 0;
int statit = 0;
int verbose = 0;
int ret;
jdm_fshandle_t *fshandlep = NULL;
int fd;
int ret;
jdm_fshandle_t *fshandlep = NULL;
int fd;
char *cc_readlinkbufp;
int cc_readlinkbufsz;
int c;
char *cc_readlinkbufp;
int cc_readlinkbufsz;
int c;
- xfs_fsop_bulkreq_t bulkreq;
+ struct xfs_fsop_bulkreq bulkreq;
while ((c = getopt(argc, argv, "cdl:qv")) != -1) {
switch (c) {
while ((c = getopt(argc, argv, "cdl:qv")) != -1) {
switch (c) {
struct stat sbuf;
ino_t *inodelist;
struct stat sbuf;
ino_t *inodelist;
- xfs_fsop_bulkreq_t a;
- xfs_bstat_t *ret;
+ struct xfs_fsop_bulkreq a;
+ struct xfs_bstat *ret;
int iterations;
char fname[MAXPATHLEN];
char *dirname;
int iterations;
char fname[MAXPATHLEN];
char *dirname;
printf("Runing extended checks.\n");
inodelist = (ino_t *)malloc(nfiles * sizeof(ino_t));
printf("Runing extended checks.\n");
inodelist = (ino_t *)malloc(nfiles * sizeof(ino_t));
- ret = (xfs_bstat_t *)malloc(nfiles * sizeof(xfs_bstat_t));
+ ret = (struct xfs_bstat *)malloc(nfiles * sizeof(struct xfs_bstat));
for (k=0; k < iterations; k++) {
int fd[nfiles + 1];
for (k=0; k < iterations; k++) {
int fd[nfiles + 1];
printf("Iteration %d ... (%d files)", k, nfiles);
printf("Iteration %d ... (%d files)", k, nfiles);
- memset(&a, 0, sizeof(xfs_fsop_bulkreq_t));
+ memset(&a, 0, sizeof(struct xfs_fsop_bulkreq));
a.lastip = (__u64 *)&last_inode;
a.icount = nfiles;
a.ubuffer = ret;
a.lastip = (__u64 *)&last_inode;
a.icount = nfiles;
a.ubuffer = ret;
struct stat sbuf;
ino_t *inodelist;
__u32 *genlist;
struct stat sbuf;
ino_t *inodelist;
__u32 *genlist;
- xfs_fsop_bulkreq_t a;
- xfs_bstat_t *ret;
+ struct xfs_fsop_bulkreq a;
+ struct xfs_bstat *ret;
int iterations;
char fname[MAXPATHLEN];
char *dirname;
int iterations;
char fname[MAXPATHLEN];
char *dirname;
inodelist = (ino_t *)malloc(nfiles * sizeof(ino_t));
genlist = (__u32 *)malloc(nfiles * sizeof(__u32));
inodelist = (ino_t *)malloc(nfiles * sizeof(ino_t));
genlist = (__u32 *)malloc(nfiles * sizeof(__u32));
- ret = (xfs_bstat_t *)malloc(nfiles * sizeof(xfs_bstat_t));
+ ret = (struct xfs_bstat *)malloc(nfiles * sizeof(struct xfs_bstat));
for (k=0; k < iterations; k++) {
xfs_ino_t last_inode = 0;
for (k=0; k < iterations; k++) {
xfs_ino_t last_inode = 0;
memset(inodelist, 0, nfiles * sizeof(ino_t));
memset(genlist, 0, nfiles * sizeof(__u32));
memset(inodelist, 0, nfiles * sizeof(ino_t));
memset(genlist, 0, nfiles * sizeof(__u32));
- memset(ret, 0, nfiles * sizeof(xfs_bstat_t));
- memset(&a, 0, sizeof(xfs_fsop_bulkreq_t));
+ memset(ret, 0, nfiles * sizeof(struct xfs_bstat));
+ memset(&a, 0, sizeof(struct xfs_fsop_bulkreq));
a.lastip = (__u64 *)&last_inode;
a.icount = nfiles;
a.ubuffer = ret;
a.lastip = (__u64 *)&last_inode;
a.icount = nfiles;
a.ubuffer = ret;
if (stfs.f_type == XFS_SUPER_MAGIC && !getuid()) {
jdm_fshandle_t *fshandle;
if (stfs.f_type == XFS_SUPER_MAGIC && !getuid()) {
jdm_fshandle_t *fshandle;
- xfs_bstat_t bstat;
- xfs_fsop_bulkreq_t bulkreq;
+ struct xfs_bstat bstat;
+ struct xfs_fsop_bulkreq bulkreq;
xfs_ino_t ino;
char *dirpath;
xfs_ino_t ino;
char *dirpath;
if (stfs.f_type == XFS_SUPER_MAGIC && !getuid()) {
jdm_fshandle_t *fshandle;
if (stfs.f_type == XFS_SUPER_MAGIC && !getuid()) {
jdm_fshandle_t *fshandle;
- xfs_bstat_t bstat;
- xfs_fsop_bulkreq_t bulkreq;
+ struct xfs_bstat bstat;
+ struct xfs_fsop_bulkreq bulkreq;
xfs_ino_t ino;
char *dirpath;
xfs_ino_t ino;
char *dirpath;
if (stfs.f_type == XFS_SUPER_MAGIC && !getuid()) {
jdm_fshandle_t *fshandle;
if (stfs.f_type == XFS_SUPER_MAGIC && !getuid()) {
jdm_fshandle_t *fshandle;
- xfs_bstat_t bstat;
- xfs_fsop_bulkreq_t bulkreq;
+ struct xfs_bstat bstat;
+ struct xfs_fsop_bulkreq bulkreq;
xfs_ino_t ino;
char *dirpath;
xfs_ino_t ino;
char *dirpath;