-
Notifications
You must be signed in to change notification settings - Fork 0
/
enums.h
102 lines (101 loc) · 2.88 KB
/
enums.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#ifndef ENUMS_H
#define ENUMS_H
enum Fit {BestFit='b',FirstFit='f',WorstFit='w',FIT_ERROR};
enum Unit {KB='k',MB='m',Byte='b',UNIT_ERROR};
enum Status {Activo=1,Inactivo=0};
enum TypePartition {Primaria='p',Extendida='e',Logica='l',TP_ERROR};
enum Response {SUCCESS,
ERROR_INSUFICIENT_SPACE,
ERROR_FULL_PARTITION_PRIMARY,
ERROR_UNHANDLED,
ERROR_EXISTS_EXTENDED_PARTITION,
ERROR_NOT_EXIST_EXTENDED_PARTITION,
ERROR_READING_EBR,
ERROR_SIZE_MIN,
ERROR_PARTITION_NOT_EXIST,
ERROR_PARTITION_EXIST,
ERROR_PARTITION_MOUNTED,
ERROR_ID_MALFORMED,
ERROR_DISK_NOT_EXIST,
ERROR_PARTITION_NOT_MOUNTED,
ERROR_DISK_NOT_MOUNTED,
ERROR_NOT_SPACE_ADD,
ERROR_PARTITION_MOUNTED_DEL,
ERROR_DIR_NOT_EXIST,
ERROR_INODO_NOT_DIR,
ERROR_LEVEL_FULL,
ERROR_USER_EXISTS,
ERROR_GROUP_EXISTS,
ERROR_USER_NOT_EXISTS,
ERROR_GROUP_NOT_EXISTS,
ERROR_BAD_PASSWD,
ERROR_FILESYSTEM,
ERROR_RECOVERY};
enum TypeFormat {Fast,Full,TF_ERROR};
enum statusBlock {OCUPADO,LIBRE};
enum CommandEnum {mkdisk,
rmdisk,
fdisk,
mount,
unmount,
rep,
exec,
loss,
chgrp,
ch_own,
find_,
mv,
cp,
mk_dir,
ren,
edit,
rem,
cat,
mkfile,
ch_mod,
rmusr,
mkusr,
login,
mkfs,
mkgrp,
rmgrp,
recovery,
pauseSys,
logout};
enum Options {Id,
Add,
Delete,
Type,
Path,
Unitt,
Fitt,
Size,
Name,
Format,
FileSys,
Ruta,
Dest,
Fil_e,
Cont,
Recursive,
Ugo,
Grp,
Pwd,
Usr};
enum FileSistem {ext2 = 2,ext3 = 3,FS_ERROR};
enum TypeInode{IN_FILE = 0,IN_DIRECTORY=1};
enum TypeBlock{FILE_,DIRECTORY,POINTERS};
enum TypeReport{Inode,
Journaling,
Block,
BM_inode,
BM_block,
Tree,
Sb,
File,
Ls,
Mbr,
Disk};
enum Operation{MKDIRECTORY,MKFILE_PATH,MKFILE_SIZE,EMPTY,ADDUSER,ADDGRP,DELUSER,DELGRP,
EDIT_FILE};
#endif // ENUMS_H