Coda Distributed File System
Macros
venusioctl.h File Reference
#include <pioctl.h>
Include dependency graph for venusioctl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CFS_PIOBUFSIZE    2048 /* max size of in,out data in pioctls (Satya, 1/03) */
 
#define _VIOCCLOSEWAIT   (1) /* Force close to wait for store */
 
#define _VIOCABORT   (2) /* Abort close on this fd */
 
#define _VIOCIGETCELL   (3) /* ioctl to get cell name */
 
#define _VIOCSETAL   (1) /* Set access control list */
 
#define _VIOCGETAL   (2) /* Get access control list */
 
#define _VIOCSETTOK   (3) /* Set authentication tokens */
 
#define _VIOCGETVOLSTAT   (4) /* Get volume status */
 
#define _VIOCSETVOLSTAT   (5) /* Set volume status */
 
#define _VIOCFLUSH   (6) /* Invalidate cache entry */
 
#define _VIOCSTAT   (7) /* Get file status */
 
#define _VIOCGETTOK   (8) /* Get authentication tokens */
 
#define _VIOCUNLOG   (9) /* Invalidate tokens */
 
#define _VIOCCKSERV   (10) /* Check that servers are up */
 
#define _VIOCCKBACK   (11) /* Check backup volume mappings */
 
#define _VIOCCKCONN   (12) /* Check connections for a user */
 
#define _VIOCWHEREIS   (14) /* Find out where a volume is located */
 
#define _VIOCPREFETCH   (15) /* Prefetch a file */
 
#define _VIOCNOP   (16) /* Do nothing (more performance) */
 
#define _VIOCENGROUP   (17) /* Enable group access for a group */
 
#define _VIOCDISGROUP   (18) /* Disable group access */
 
#define _VIOCLISTGROUPS   (19) /* List enabled and disabled groups */
 
#define _VIOCACCESS   (20) /* Access using PRS_FS bits */
 
#define _VIOCUNPAG   (21) /* Invalidate pag */
 
#define _VIOCGETWD   (22) /* Get wdir quickly */
 
#define _VIOCWAITFOREVER   (23) /* Wait for dead servers forever */
 
#define _VIOCSETCACHESIZE   (24) /* Set venus cache size in 1k units */
 
#define _VIOCFLUSHCB   (25) /* Flush callback only */
 
#define _VIOCNEWCELL   (26) /* Configure new cell */
 
#define _VIOCGETCELL   (27) /* Get cell info */
 
#define _VIOC_AFS_DELETE_MT_PT   (28) /* [AFS] Delete mount point */
 
#define _VIOC_AFS_STAT_MT_PT   (29) /* [AFS] Stat mount point */
 
#define _VIOC_FILE_CELL_NAME   (30) /* Get cell in which file lives */
 
#define _VIOC_GET_WS_CELL   (31) /* Get cell in which workstation lives */
 
#define _VIOC_AFS_MARINER_HOST   (32) /* [AFS] Get/set mariner host */
 
#define _VIOC_GET_PRIMARY_CELL   (33) /* Get primary cell for caller */
 
#define _VIOC_VENUSLOG   (34) /* Enable/Disable venus logging */
 
#define _VIOC_GETCELLSTATUS   (35) /* get cell status info */
 
#define _VIOC_SETCELLSTATUS   (36) /* set corresponding info */
 
#define _VIOC_FLUSHVOLUME   (37) /* flush whole volume's data */
 
#define _VIOC_LISTCACHE_VOLUME   (39) /* list volume's cached status */
 
#define _VIOC_LOOKASIDE    (40) /* Add or remove cache lookaside databases (Satya, 1/2003) */
 
#define _VIOC_EXPANDOBJECT    (41) /* Turn fso into fake directory to expose underlying replicas */
 
#define _VIOC_COLLAPSEOBJECT   (42) /* Collapse an expanded fso */
 
#define _VIOC_SYNCCACHE   (140) /* reintegrate now ! */
 
#define _VIOC_REDIR   (141) /* redirect to a staging server */
 
#define _VIOC_ADD_MT_PT   (142) /* Add mount point */
 
#define CFS_IOCTL_BASE   192
 
#define _VIOC_ENABLEREPAIR    (CFS_IOCTL_BASE + 0) /* Enable repair for vol/pag combo */
 
#define _VIOC_DISABLEREPAIR    (CFS_IOCTL_BASE + 1) /* Disable repair for vol/pag combo */
 
#define _VIOC_REPAIR   (CFS_IOCTL_BASE + 2) /* Repair an object */
 
#define _VIOC_GETSERVERSTATS   (CFS_IOCTL_BASE + 3) /* Get host statistics */
 
#define _VIOC_GETVENUSSTATS   (CFS_IOCTL_BASE + 4) /* Get Venus statistics */
 
#define _VIOC_GETFID   (CFS_IOCTL_BASE + 5) /* Get ViceFid */
 
#define _VIOC_FLUSHCACHE   (CFS_IOCTL_BASE + 6) /* Flush entire FSO cache */
 
#define _VIOC_SETVV   (CFS_IOCTL_BASE + 7) /* Overwrite a version vector */
 
#define _VIOC_HDB_ADD   (CFS_IOCTL_BASE + 8) /* Add hoard entry. */
 
#define _VIOC_HDB_DELETE   (CFS_IOCTL_BASE + 9) /* Delete hoard entry. */
 
#define _VIOC_HDB_MODIFY   (CFS_IOCTL_BASE + 10) /* Modify hoard entry. */
 
#define _VIOC_HDB_CLEAR   (CFS_IOCTL_BASE + 11) /* Clear hoard database. */
 
#define _VIOC_HDB_LIST   (CFS_IOCTL_BASE + 12) /* List hoard database. */
 
#define _VIOC_WAITFOREVER    (CFS_IOCTL_BASE + 13) /* Control waitforever behavior. */
 
#define _VIOC_HDB_WALK   (CFS_IOCTL_BASE + 14) /* Walk hoard database. */
 
#define _VIOC_CLEARPRIORITIES    (CFS_IOCTL_BASE + 15) /* Clear short-term priorities. */
 
#define _VIOC_GETPATH   (CFS_IOCTL_BASE + 16) /* Map Fid to vol-relative path. */
 
#define _VIOC_CHECKPOINTML   (CFS_IOCTL_BASE + 19) /* Checkpoint a volume's ML. */
 
#define _VIOC_PURGEML   (CFS_IOCTL_BASE + 20) /* Purge a volume's ML. */
 
#define _VIOC_BEGINRECORDING    (CFS_IOCTL_BASE + 21) /* Begin recording references. */
 
#define _VIOC_ENDRECORDING   (CFS_IOCTL_BASE + 22) /* End recording references. */
 
#define _VIOC_TRUNCATELOG   (CFS_IOCTL_BASE + 23) /* Truncate the log */
 
#define _VIOC_DISCONNECT   (CFS_IOCTL_BASE + 24) /* Partition from all servers */
 
#define _VIOC_RECONNECT   (CFS_IOCTL_BASE + 25) /* Heal previous partition */
 
#define _VIOC_GETPFID   (CFS_IOCTL_BASE + 27) /* Get fid of object's parent */
 
#define _VIOC_WD    (CFS_IOCTL_BASE + 28) /* set write-disconnect parameters for a volume */
 
#define _VIOC_HDB_VERIFY    (CFS_IOCTL_BASE + 30) /* Compare hoard database to cache contents */
 
#define _VIOC_HDB_ENABLE   (CFS_IOCTL_BASE + 32) /* Enable hoard walks */
 
#define _VIOC_HDB_DISABLE   (CFS_IOCTL_BASE + 33) /* Disable hoard walks */
 
#define _VIOC_ENABLEASR   (CFS_IOCTL_BASE + 34) /* Enable ASRs for a volume */
 
#define _VIOC_DISABLEASR   (CFS_IOCTL_BASE + 35) /* Disable ASRs for a volume */
 
#define _VIOC_FLUSHASR    (CFS_IOCTL_BASE + 36) /* Flush timestamp of last ASR invocation */
 
#define _VIOC_REP_BEGIN    (CFS_IOCTL_BASE + 37) /* Begin a local/global repair session */
 
#define _VIOC_REP_END    (CFS_IOCTL_BASE + 38) /* End a local/global repair session */
 
#define _VIOC_REP_CHECK    (CFS_IOCTL_BASE + 39) /* check the current local mutation */
 
#define _VIOC_REP_PRESERVE    (CFS_IOCTL_BASE + 40) /* Preserve current local mutation */
 
#define _VIOC_REP_DISCARD    (CFS_IOCTL_BASE + 41) /* Discard current local mutation */
 
#define _VIOC_REP_REMOVE    (CFS_IOCTL_BASE + 42) /* remove rest of the local mutations */
 
#define _VIOC_SET_LOCAL_VIEW    (CFS_IOCTL_BASE + 43) /* Set local repair session view */
 
#define _VIOC_SET_GLOBAL_VIEW    (CFS_IOCTL_BASE + 44) /* Set global repair session view */
 
#define _VIOC_SET_MIXED_VIEW    (CFS_IOCTL_BASE + 45) /* Set mixed repair session view */
 
#define _VIOC_WD_ALL    (CFS_IOCTL_BASE + 46) /* set write-disconnect parameters on all volumes */
 
#define _VIOC_SYNCCACHE_ALL    (CFS_IOCTL_BASE + 47) /* force reintegrate all volumes */
 
#define _VIOC_LISTCACHE   (CFS_IOCTL_BASE + 50) /* List cache status */
 
#define _VIOC_GET_MT_PT    (CFS_IOCTL_BASE + 51) /* Get mount point path from volume id */
 
#define _VIOC_REP_CMD    (CFS_IOCTL_BASE + 52) /* new local-global repair command */
 
#define REP_CMD_BEGIN   1
 
#define REP_CMD_END   2
 
#define REP_CMD_CHECK   3
 
#define REP_CMD_PRESERVE   4
 
#define REP_CMD_PRESERVE_ALL   5
 
#define REP_CMD_DISCARD   6
 
#define REP_CMD_DISCARD_ALL   7
 
#define REP_CMD_LIST   8
 
#define REP_CMD_LOCAL_VIEW   9
 
#define REP_CMD_GLOBAL_VIEW   10
 
#define REP_CMD_MIXED_VIEW   11
 
#define _VIOC_UNLOADKERNEL    (CFS_IOCTL_BASE + 53) /* Unload kernel module, only Win9x so far */
 
#define _VIOC_ZLIMIT    (CFS_IOCTL_BASE + 54) /* Set red & yellow zone limits (Satya, 2017-01-02) */
 

Macro Definition Documentation

◆ _VIOC_ADD_MT_PT

#define _VIOC_ADD_MT_PT   (142) /* Add mount point */

◆ _VIOC_AFS_DELETE_MT_PT

#define _VIOC_AFS_DELETE_MT_PT   (28) /* [AFS] Delete mount point */

◆ _VIOC_AFS_MARINER_HOST

#define _VIOC_AFS_MARINER_HOST   (32) /* [AFS] Get/set mariner host */

◆ _VIOC_AFS_STAT_MT_PT

#define _VIOC_AFS_STAT_MT_PT   (29) /* [AFS] Stat mount point */

◆ _VIOC_BEGINRECORDING

#define _VIOC_BEGINRECORDING    (CFS_IOCTL_BASE + 21) /* Begin recording references. */

◆ _VIOC_CHECKPOINTML

#define _VIOC_CHECKPOINTML   (CFS_IOCTL_BASE + 19) /* Checkpoint a volume's ML. */

◆ _VIOC_CLEARPRIORITIES

#define _VIOC_CLEARPRIORITIES    (CFS_IOCTL_BASE + 15) /* Clear short-term priorities. */

◆ _VIOC_COLLAPSEOBJECT

#define _VIOC_COLLAPSEOBJECT   (42) /* Collapse an expanded fso */

◆ _VIOC_DISABLEASR

#define _VIOC_DISABLEASR   (CFS_IOCTL_BASE + 35) /* Disable ASRs for a volume */

◆ _VIOC_DISABLEREPAIR

#define _VIOC_DISABLEREPAIR    (CFS_IOCTL_BASE + 1) /* Disable repair for vol/pag combo */

◆ _VIOC_DISCONNECT

#define _VIOC_DISCONNECT   (CFS_IOCTL_BASE + 24) /* Partition from all servers */

◆ _VIOC_ENABLEASR

#define _VIOC_ENABLEASR   (CFS_IOCTL_BASE + 34) /* Enable ASRs for a volume */

◆ _VIOC_ENABLEREPAIR

#define _VIOC_ENABLEREPAIR    (CFS_IOCTL_BASE + 0) /* Enable repair for vol/pag combo */

◆ _VIOC_ENDRECORDING

#define _VIOC_ENDRECORDING   (CFS_IOCTL_BASE + 22) /* End recording references. */

◆ _VIOC_EXPANDOBJECT

#define _VIOC_EXPANDOBJECT    (41) /* Turn fso into fake directory to expose underlying replicas */

◆ _VIOC_FILE_CELL_NAME

#define _VIOC_FILE_CELL_NAME   (30) /* Get cell in which file lives */

◆ _VIOC_FLUSHASR

#define _VIOC_FLUSHASR    (CFS_IOCTL_BASE + 36) /* Flush timestamp of last ASR invocation */

◆ _VIOC_FLUSHCACHE

#define _VIOC_FLUSHCACHE   (CFS_IOCTL_BASE + 6) /* Flush entire FSO cache */

◆ _VIOC_FLUSHVOLUME

#define _VIOC_FLUSHVOLUME   (37) /* flush whole volume's data */

◆ _VIOC_GET_MT_PT

#define _VIOC_GET_MT_PT    (CFS_IOCTL_BASE + 51) /* Get mount point path from volume id */

◆ _VIOC_GET_PRIMARY_CELL

#define _VIOC_GET_PRIMARY_CELL   (33) /* Get primary cell for caller */

◆ _VIOC_GET_WS_CELL

#define _VIOC_GET_WS_CELL   (31) /* Get cell in which workstation lives */

◆ _VIOC_GETCELLSTATUS

#define _VIOC_GETCELLSTATUS   (35) /* get cell status info */

◆ _VIOC_GETFID

#define _VIOC_GETFID   (CFS_IOCTL_BASE + 5) /* Get ViceFid */

◆ _VIOC_GETPATH

#define _VIOC_GETPATH   (CFS_IOCTL_BASE + 16) /* Map Fid to vol-relative path. */

◆ _VIOC_GETPFID

#define _VIOC_GETPFID   (CFS_IOCTL_BASE + 27) /* Get fid of object's parent */

◆ _VIOC_GETSERVERSTATS

#define _VIOC_GETSERVERSTATS   (CFS_IOCTL_BASE + 3) /* Get host statistics */

◆ _VIOC_GETVENUSSTATS

#define _VIOC_GETVENUSSTATS   (CFS_IOCTL_BASE + 4) /* Get Venus statistics */

◆ _VIOC_HDB_ADD

#define _VIOC_HDB_ADD   (CFS_IOCTL_BASE + 8) /* Add hoard entry. */

◆ _VIOC_HDB_CLEAR

#define _VIOC_HDB_CLEAR   (CFS_IOCTL_BASE + 11) /* Clear hoard database. */

◆ _VIOC_HDB_DELETE

#define _VIOC_HDB_DELETE   (CFS_IOCTL_BASE + 9) /* Delete hoard entry. */

◆ _VIOC_HDB_DISABLE

#define _VIOC_HDB_DISABLE   (CFS_IOCTL_BASE + 33) /* Disable hoard walks */

◆ _VIOC_HDB_ENABLE

#define _VIOC_HDB_ENABLE   (CFS_IOCTL_BASE + 32) /* Enable hoard walks */

◆ _VIOC_HDB_LIST

#define _VIOC_HDB_LIST   (CFS_IOCTL_BASE + 12) /* List hoard database. */

◆ _VIOC_HDB_MODIFY

#define _VIOC_HDB_MODIFY   (CFS_IOCTL_BASE + 10) /* Modify hoard entry. */

◆ _VIOC_HDB_VERIFY

#define _VIOC_HDB_VERIFY    (CFS_IOCTL_BASE + 30) /* Compare hoard database to cache contents */

◆ _VIOC_HDB_WALK

#define _VIOC_HDB_WALK   (CFS_IOCTL_BASE + 14) /* Walk hoard database. */

◆ _VIOC_LISTCACHE

#define _VIOC_LISTCACHE   (CFS_IOCTL_BASE + 50) /* List cache status */

◆ _VIOC_LISTCACHE_VOLUME

#define _VIOC_LISTCACHE_VOLUME   (39) /* list volume's cached status */

◆ _VIOC_LOOKASIDE

#define _VIOC_LOOKASIDE    (40) /* Add or remove cache lookaside databases (Satya, 1/2003) */

◆ _VIOC_PURGEML

#define _VIOC_PURGEML   (CFS_IOCTL_BASE + 20) /* Purge a volume's ML. */

◆ _VIOC_RECONNECT

#define _VIOC_RECONNECT   (CFS_IOCTL_BASE + 25) /* Heal previous partition */

◆ _VIOC_REDIR

#define _VIOC_REDIR   (141) /* redirect to a staging server */

◆ _VIOC_REP_BEGIN

#define _VIOC_REP_BEGIN    (CFS_IOCTL_BASE + 37) /* Begin a local/global repair session */

◆ _VIOC_REP_CHECK

#define _VIOC_REP_CHECK    (CFS_IOCTL_BASE + 39) /* check the current local mutation */

◆ _VIOC_REP_CMD

#define _VIOC_REP_CMD    (CFS_IOCTL_BASE + 52) /* new local-global repair command */

◆ _VIOC_REP_DISCARD

#define _VIOC_REP_DISCARD    (CFS_IOCTL_BASE + 41) /* Discard current local mutation */

◆ _VIOC_REP_END

#define _VIOC_REP_END    (CFS_IOCTL_BASE + 38) /* End a local/global repair session */

◆ _VIOC_REP_PRESERVE

#define _VIOC_REP_PRESERVE    (CFS_IOCTL_BASE + 40) /* Preserve current local mutation */

◆ _VIOC_REP_REMOVE

#define _VIOC_REP_REMOVE    (CFS_IOCTL_BASE + 42) /* remove rest of the local mutations */

◆ _VIOC_REPAIR

#define _VIOC_REPAIR   (CFS_IOCTL_BASE + 2) /* Repair an object */

◆ _VIOC_SET_GLOBAL_VIEW

#define _VIOC_SET_GLOBAL_VIEW    (CFS_IOCTL_BASE + 44) /* Set global repair session view */

◆ _VIOC_SET_LOCAL_VIEW

#define _VIOC_SET_LOCAL_VIEW    (CFS_IOCTL_BASE + 43) /* Set local repair session view */

◆ _VIOC_SET_MIXED_VIEW

#define _VIOC_SET_MIXED_VIEW    (CFS_IOCTL_BASE + 45) /* Set mixed repair session view */

◆ _VIOC_SETCELLSTATUS

#define _VIOC_SETCELLSTATUS   (36) /* set corresponding info */

◆ _VIOC_SETVV

#define _VIOC_SETVV   (CFS_IOCTL_BASE + 7) /* Overwrite a version vector */

◆ _VIOC_SYNCCACHE

#define _VIOC_SYNCCACHE   (140) /* reintegrate now ! */

◆ _VIOC_SYNCCACHE_ALL

#define _VIOC_SYNCCACHE_ALL    (CFS_IOCTL_BASE + 47) /* force reintegrate all volumes */

◆ _VIOC_TRUNCATELOG

#define _VIOC_TRUNCATELOG   (CFS_IOCTL_BASE + 23) /* Truncate the log */

◆ _VIOC_UNLOADKERNEL

#define _VIOC_UNLOADKERNEL    (CFS_IOCTL_BASE + 53) /* Unload kernel module, only Win9x so far */

◆ _VIOC_VENUSLOG

#define _VIOC_VENUSLOG   (34) /* Enable/Disable venus logging */

◆ _VIOC_WAITFOREVER

#define _VIOC_WAITFOREVER    (CFS_IOCTL_BASE + 13) /* Control waitforever behavior. */

◆ _VIOC_WD

#define _VIOC_WD    (CFS_IOCTL_BASE + 28) /* set write-disconnect parameters for a volume */

◆ _VIOC_WD_ALL

#define _VIOC_WD_ALL    (CFS_IOCTL_BASE + 46) /* set write-disconnect parameters on all volumes */

◆ _VIOC_ZLIMIT

#define _VIOC_ZLIMIT    (CFS_IOCTL_BASE + 54) /* Set red & yellow zone limits (Satya, 2017-01-02) */

◆ _VIOCABORT

#define _VIOCABORT   (2) /* Abort close on this fd */

◆ _VIOCACCESS

#define _VIOCACCESS   (20) /* Access using PRS_FS bits */

◆ _VIOCCKBACK

#define _VIOCCKBACK   (11) /* Check backup volume mappings */

◆ _VIOCCKCONN

#define _VIOCCKCONN   (12) /* Check connections for a user */

◆ _VIOCCKSERV

#define _VIOCCKSERV   (10) /* Check that servers are up */

◆ _VIOCCLOSEWAIT

#define _VIOCCLOSEWAIT   (1) /* Force close to wait for store */

◆ _VIOCDISGROUP

#define _VIOCDISGROUP   (18) /* Disable group access */

◆ _VIOCENGROUP

#define _VIOCENGROUP   (17) /* Enable group access for a group */

◆ _VIOCFLUSH

#define _VIOCFLUSH   (6) /* Invalidate cache entry */

◆ _VIOCFLUSHCB

#define _VIOCFLUSHCB   (25) /* Flush callback only */

◆ _VIOCGETAL

#define _VIOCGETAL   (2) /* Get access control list */

◆ _VIOCGETCELL

#define _VIOCGETCELL   (27) /* Get cell info */

◆ _VIOCGETTOK

#define _VIOCGETTOK   (8) /* Get authentication tokens */

◆ _VIOCGETVOLSTAT

#define _VIOCGETVOLSTAT   (4) /* Get volume status */

◆ _VIOCGETWD

#define _VIOCGETWD   (22) /* Get wdir quickly */

◆ _VIOCIGETCELL

#define _VIOCIGETCELL   (3) /* ioctl to get cell name */

◆ _VIOCLISTGROUPS

#define _VIOCLISTGROUPS   (19) /* List enabled and disabled groups */

◆ _VIOCNEWCELL

#define _VIOCNEWCELL   (26) /* Configure new cell */

◆ _VIOCNOP

#define _VIOCNOP   (16) /* Do nothing (more performance) */

◆ _VIOCPREFETCH

#define _VIOCPREFETCH   (15) /* Prefetch a file */

◆ _VIOCSETAL

#define _VIOCSETAL   (1) /* Set access control list */

◆ _VIOCSETCACHESIZE

#define _VIOCSETCACHESIZE   (24) /* Set venus cache size in 1k units */

◆ _VIOCSETTOK

#define _VIOCSETTOK   (3) /* Set authentication tokens */

◆ _VIOCSETVOLSTAT

#define _VIOCSETVOLSTAT   (5) /* Set volume status */

◆ _VIOCSTAT

#define _VIOCSTAT   (7) /* Get file status */

◆ _VIOCUNLOG

#define _VIOCUNLOG   (9) /* Invalidate tokens */

◆ _VIOCUNPAG

#define _VIOCUNPAG   (21) /* Invalidate pag */

◆ _VIOCWAITFOREVER

#define _VIOCWAITFOREVER   (23) /* Wait for dead servers forever */

◆ _VIOCWHEREIS

#define _VIOCWHEREIS   (14) /* Find out where a volume is located */

◆ CFS_IOCTL_BASE

#define CFS_IOCTL_BASE   192

◆ CFS_PIOBUFSIZE

#define CFS_PIOBUFSIZE    2048 /* max size of in,out data in pioctls (Satya, 1/03) */

◆ REP_CMD_BEGIN

#define REP_CMD_BEGIN   1

◆ REP_CMD_CHECK

#define REP_CMD_CHECK   3

◆ REP_CMD_DISCARD

#define REP_CMD_DISCARD   6

◆ REP_CMD_DISCARD_ALL

#define REP_CMD_DISCARD_ALL   7

◆ REP_CMD_END

#define REP_CMD_END   2

◆ REP_CMD_GLOBAL_VIEW

#define REP_CMD_GLOBAL_VIEW   10

◆ REP_CMD_LIST

#define REP_CMD_LIST   8

◆ REP_CMD_LOCAL_VIEW

#define REP_CMD_LOCAL_VIEW   9

◆ REP_CMD_MIXED_VIEW

#define REP_CMD_MIXED_VIEW   11

◆ REP_CMD_PRESERVE

#define REP_CMD_PRESERVE   4

◆ REP_CMD_PRESERVE_ALL

#define REP_CMD_PRESERVE_ALL   5