1442
1442
extern void gafs_inactive();
1444
1444
#ifdef AFS_SUN510_ENV
1445
struct fs_operation_def afs_vnodeops_template[] = {
1446
{ VOPNAME_OPEN, gafs_open },
1447
{ VOPNAME_CLOSE, gafs_close },
1448
{ VOPNAME_READ, afs_vmread },
1449
{ VOPNAME_WRITE, afs_vmwrite },
1450
{ VOPNAME_IOCTL, afs_ioctl },
1451
{ VOPNAME_SETFL, fs_setfl },
1452
{ VOPNAME_GETATTR, gafs_getattr },
1453
{ VOPNAME_SETATTR, gafs_setattr },
1454
{ VOPNAME_ACCESS, gafs_access },
1455
{ VOPNAME_LOOKUP, gafs_lookup },
1456
{ VOPNAME_CREATE, gafs_create },
1457
{ VOPNAME_REMOVE, gafs_remove },
1458
{ VOPNAME_LINK, gafs_link },
1459
{ VOPNAME_RENAME, gafs_rename },
1460
{ VOPNAME_MKDIR, gafs_mkdir },
1461
{ VOPNAME_RMDIR, gafs_rmdir },
1462
{ VOPNAME_READDIR, gafs_readdir },
1463
{ VOPNAME_SYMLINK, gafs_symlink },
1464
{ VOPNAME_READLINK, gafs_readlink },
1465
{ VOPNAME_FSYNC, gafs_fsync },
1466
{ VOPNAME_INACTIVE, gafs_inactive },
1467
{ VOPNAME_FID, gafs_fid },
1468
{ VOPNAME_RWLOCK, afs_rwlock },
1469
{ VOPNAME_RWUNLOCK, afs_rwunlock },
1470
{ VOPNAME_SEEK, afs_seek },
1471
{ VOPNAME_CMP, afs_cmp },
1472
{ VOPNAME_FRLOCK, afs_frlock },
1473
{ VOPNAME_SPACE, afs_space },
1474
{ VOPNAME_REALVP, afs_realvp },
1475
{ VOPNAME_GETPAGE, afs_getpage },
1476
{ VOPNAME_PUTPAGE, afs_putpage },
1477
{ VOPNAME_MAP, afs_map },
1478
{ VOPNAME_ADDMAP, afs_addmap },
1479
{ VOPNAME_DELMAP, afs_delmap },
1480
{ VOPNAME_POLL, fs_poll },
1481
{ VOPNAME_DUMP, afs_dump },
1482
{ VOPNAME_PATHCONF, afs_pathconf },
1483
{ VOPNAME_PAGEIO, afs_pageio },
1484
{ VOPNAME_DUMPCTL, afs_dumpctl },
1485
{ VOPNAME_DISPOSE, afs_dispose },
1486
{ VOPNAME_GETSECATTR, afs_getsecattr },
1487
{ VOPNAME_SETSECATTR, afs_setsecattr },
1488
{ VOPNAME_SHRLOCK, fs_shrlock },
1445
/* The following list must always be NULL-terminated */
1446
const fs_operation_def_t afs_vnodeops_template[] = {
1447
VOPNAME_OPEN, gafs_open,
1448
VOPNAME_CLOSE, gafs_close,
1449
VOPNAME_READ, afs_vmread,
1450
VOPNAME_WRITE, afs_vmwrite,
1451
VOPNAME_IOCTL, afs_ioctl,
1452
VOPNAME_SETFL, fs_setfl,
1453
VOPNAME_GETATTR, gafs_getattr,
1454
VOPNAME_SETATTR, gafs_setattr,
1455
VOPNAME_ACCESS, gafs_access,
1456
VOPNAME_LOOKUP, gafs_lookup,
1457
VOPNAME_CREATE, gafs_create,
1458
VOPNAME_REMOVE, gafs_remove,
1459
VOPNAME_LINK, gafs_link,
1460
VOPNAME_RENAME, gafs_rename,
1461
VOPNAME_MKDIR, gafs_mkdir,
1462
VOPNAME_RMDIR, gafs_rmdir,
1463
VOPNAME_READDIR, gafs_readdir,
1464
VOPNAME_SYMLINK, gafs_symlink,
1465
VOPNAME_READLINK, gafs_readlink,
1466
VOPNAME_FSYNC, gafs_fsync,
1467
VOPNAME_INACTIVE, gafs_inactive,
1468
VOPNAME_FID, gafs_fid,
1469
VOPNAME_RWLOCK, afs_rwlock,
1470
VOPNAME_RWUNLOCK, afs_rwunlock,
1471
VOPNAME_SEEK, afs_seek,
1472
VOPNAME_CMP, afs_cmp,
1473
VOPNAME_FRLOCK, afs_frlock,
1474
VOPNAME_SPACE, afs_space,
1475
VOPNAME_REALVP, afs_realvp,
1476
VOPNAME_GETPAGE, afs_getpage,
1477
VOPNAME_PUTPAGE, afs_putpage,
1478
VOPNAME_MAP, afs_map,
1479
VOPNAME_ADDMAP, afs_addmap,
1480
VOPNAME_DELMAP, afs_delmap,
1481
VOPNAME_POLL, fs_poll,
1482
VOPNAME_DUMP, afs_dump,
1483
VOPNAME_PATHCONF, afs_pathconf,
1484
VOPNAME_PAGEIO, afs_pageio,
1485
VOPNAME_DUMPCTL, afs_dumpctl,
1486
VOPNAME_DISPOSE, afs_dispose,
1487
VOPNAME_GETSECATTR, afs_getsecattr,
1488
VOPNAME_SETSECATTR, afs_setsecattr,
1489
VOPNAME_SHRLOCK, fs_shrlock,
1491
1492
struct vnodeops *afs_ops;