Coda Distributed File System
Macros | Functions | Variables
commands.cc File Reference
#include <sys/param.h>
#include <stdio.h>
#include <stdlib.h>
#include "coda_string.h"
#include <parser.h>
#include "norton.h"
Include dependency graph for commands.cc:

Macros

#define BYTES_PER_LINE   16
 

Functions

void InitParsing ()
 
void notyet (int argc, char *argv[])
 
void examine (int argc, char *argv[])
 
void set_debug (int argc, char *argv[])
 
void show_debug (int argc, char *argv[])
 

Variables

command_t del_commands []
 
command_t create_commands []
 
command_t salvage_commands []
 
command_t show_cmds []
 
command_t list_cmds [] = { { "volumes", list_vols, 0, "" }, { 0, 0, 0, "" } }
 
command_t rename_cmds []
 
command_t set_cmds []
 
command_t commands []
 

Macro Definition Documentation

◆ BYTES_PER_LINE

#define BYTES_PER_LINE   16

Function Documentation

◆ examine()

void examine ( int  argc,
char *  argv[] 
)

◆ InitParsing()

void InitParsing ( )

◆ notyet()

void notyet ( int  argc,
char *  argv[] 
)

◆ set_debug()

void set_debug ( int  argc,
char *  argv[] 
)

◆ show_debug()

void show_debug ( int  argc,
char *  argv[] 
)

Variable Documentation

◆ commands

command_t commands[]
Initial value:
= { { "?", Parser_qhelp, 0, "" },
{ "delete", 0, del_commands, "" },
{ "create", 0, create_commands, "" },
{ "examine", examine, 0, "" },
{ "exit", Parser_exit, 0, "" },
{ "help", Parser_qhelp, 0, "" },
{ "list", list_vols, list_cmds, "" },
{ "quit", Parser_exit, 0, "" },
{ "rename", 0, rename_cmds, "" },
{ "show", 0, show_cmds, "" },
{ "set", 0, set_cmds, "" },
{ "x", examine, 0, "" },
{ 0, 0, 0, "" } }
command_t create_commands[]
Definition: commands.cc:52
command_t set_cmds[]
Definition: commands.cc:80
void examine(int argc, char *argv[])
Definition: commands.cc:205
command_t list_cmds[]
Definition: commands.cc:74
command_t show_cmds[]
Definition: commands.cc:63
command_t del_commands[]
Definition: commands.cc:43
command_t rename_cmds[]
Definition: commands.cc:76
void list_vols(int argc, char *argv[])
Definition: norton-volume.cc:212
void Parser_qhelp(int argc, char *argv[])
Definition: parser.c:359
void Parser_exit(int argc, char *argv[])
Definition: parser.c:335

◆ create_commands

command_t create_commands[]
Initial value:
= { { "name", sh_create_name, 0, "" },
{ 0, 0, 0, "" } }
void sh_create_name(int argc, char **argv) EXCLUDES_TRANSACTION
Definition: norton-dir.cc:376

◆ del_commands

command_t del_commands[]
Initial value:
= {
{ "name", delete_name, 0, "" },
{ "volume", sh_delete_volume, 0, "" },
{ 0, 0, 0, "" }
}
void delete_name(int argc, char *argv[]) EXCLUDES_TRANSACTION
Definition: norton-dir.cc:252
void sh_delete_volume(int argc, char **argv) EXCLUDES_TRANSACTION
Definition: norton-volume.cc:357

◆ list_cmds

command_t list_cmds[] = { { "volumes", list_vols, 0, "" }, { 0, 0, 0, "" } }

◆ rename_cmds

command_t rename_cmds[]
Initial value:
= { { "volume", sh_rename_volume, 0,
"Rename volume (args: vol newname" },
{ 0, 0, 0, "" } }
void sh_rename_volume(int argc, char **argv) EXCLUDES_TRANSACTION
Definition: norton-volume.cc:520

◆ salvage_commands

command_t salvage_commands[]
Initial value:
= { { "all", notyet, 0, "" },
{ "directory", notyet, 0, "" },
{ "inode", notyet, 0, "" },
{ "resolution", notyet, 0, "" },
{ "vnode", notyet, 0, "" },
{ "volume", notyet, 0, "" },
{ 0, 0, 0, "" } }
void notyet(int argc, char *argv[])
Definition: commands.cc:108

◆ set_cmds

command_t set_cmds[]
Initial value:
= {
{ "linkcount", set_linkcount, 0,
"Set linkcount in vnode (args: vol vnode uniq count)" },
{ "debug", set_debug, 0, "Set debug level (args: level)" },
{ 0, 0, 0, "" }
}
void set_debug(int argc, char *argv[])
Definition: commands.cc:243
void set_linkcount(int argc, char *argv[]) EXCLUDES_TRANSACTION
Definition: norton-vnode.cc:271

◆ show_cmds

command_t show_cmds[]
Initial value:
= { { "debug", show_debug, 0, "" },
{ "directory", show_dir, 0, "" },
{ "free", show_free, 0, "" },
{ "heap", show_heap, 0, "" },
{ "index", show_index, 0, "" },
{ "vnode", show_vnode, 0, "" },
{ "volume", show_volume, 0, "" },
{ "volumedetails", show_volume_details, 0, "" },
{ 0, 0, 0, "" } }
void show_debug(int argc, char *argv[])
Definition: commands.cc:256
void show_dir(VolumeId volid, VnodeId vnum, Unique_t unique)
Definition: norton-dir.cc:133
void show_heap(int arc, char *argv[])
Definition: norton-rds.cc:29
void show_free(int argc, char *argv[])
Definition: norton-vnode.cc:159
void show_vnode(VolumeId volid, Unique_t uniquifier)
Definition: norton-vnode.cc:77
void show_index(VolumeId volid)
Definition: norton-volume.cc:413
void show_volume_details(VolumeId volid)
Definition: norton-volume.cc:370
void show_volume(int argc, char *argv[])
Definition: norton-volume.cc:280