-opdesc_t ops[] = {
- /* { OP_ENUM, "name", function, freq, iswrite }, */
- { OP_AFSYNC, "afsync", afsync_f, 0, 1 },
- { OP_ALLOCSP, "allocsp", allocsp_f, 1, 1 },
- { OP_AREAD, "aread", aread_f, 1, 0 },
- { OP_ATTR_REMOVE, "attr_remove", attr_remove_f, /* 1 */ 0, 1 },
- { OP_ATTR_SET, "attr_set", attr_set_f, /* 2 */ 0, 1 },
- { OP_AWRITE, "awrite", awrite_f, 1, 1 },
- { OP_BULKSTAT, "bulkstat", bulkstat_f, 1, 0 },
- { OP_BULKSTAT1, "bulkstat1", bulkstat1_f, 1, 0 },
- { OP_CHOWN, "chown", chown_f, 3, 1 },
- { OP_CLONERANGE, "clonerange", clonerange_f, 4, 1 },
- { OP_COPYRANGE, "copyrange", copyrange_f, 4, 1 },
- { OP_CREAT, "creat", creat_f, 4, 1 },
- { OP_DEDUPERANGE, "deduperange", deduperange_f, 4, 1},
- { OP_DREAD, "dread", dread_f, 4, 0 },
- { OP_DWRITE, "dwrite", dwrite_f, 4, 1 },
- { OP_FALLOCATE, "fallocate", fallocate_f, 1, 1 },
- { OP_FDATASYNC, "fdatasync", fdatasync_f, 1, 1 },
- { OP_FIEMAP, "fiemap", fiemap_f, 1, 1 },
- { OP_FREESP, "freesp", freesp_f, 1, 1 },
- { OP_FSYNC, "fsync", fsync_f, 1, 1 },
- { OP_GETATTR, "getattr", getattr_f, 1, 0 },
- { OP_GETDENTS, "getdents", getdents_f, 1, 0 },
+struct opdesc ops[OP_LAST] = {
+ /* [OP_ENUM] = {"name", function, freq, iswrite }, */
+ [OP_AFSYNC] = {"afsync", afsync_f, 0, 1 },
+ [OP_ALLOCSP] = {"allocsp", allocsp_f, 1, 1 },
+ [OP_AREAD] = {"aread", aread_f, 1, 0 },
+ [OP_ATTR_REMOVE] = {"attr_remove", attr_remove_f, 0, 1 },
+ [OP_ATTR_SET] = {"attr_set", attr_set_f, 0, 1 },
+ [OP_AWRITE] = {"awrite", awrite_f, 1, 1 },
+ [OP_BULKSTAT] = {"bulkstat", bulkstat_f, 1, 0 },
+ [OP_BULKSTAT1] = {"bulkstat1", bulkstat1_f, 1, 0 },
+ [OP_CHOWN] = {"chown", chown_f, 3, 1 },
+ [OP_CLONERANGE] = {"clonerange", clonerange_f, 4, 1 },
+ [OP_COPYRANGE] = {"copyrange", copyrange_f, 4, 1 },
+ [OP_CREAT] = {"creat", creat_f, 4, 1 },
+ [OP_DEDUPERANGE] = {"deduperange", deduperange_f, 4, 1 },
+ [OP_DREAD] = {"dread", dread_f, 4, 0 },
+ [OP_DWRITE] = {"dwrite", dwrite_f, 4, 1 },
+ [OP_FALLOCATE] = {"fallocate", fallocate_f, 1, 1 },
+ [OP_FDATASYNC] = {"fdatasync", fdatasync_f, 1, 1 },
+ [OP_FIEMAP] = {"fiemap", fiemap_f, 1, 1 },
+ [OP_FREESP] = {"freesp", freesp_f, 1, 1 },
+ [OP_FSYNC] = {"fsync", fsync_f, 1, 1 },
+ [OP_GETATTR] = {"getattr", getattr_f, 1, 0 },
+ [OP_GETDENTS] = {"getdents", getdents_f, 1, 0 },