-
Notifications
You must be signed in to change notification settings - Fork 0
/
handler_partitions.h
52 lines (30 loc) · 1.32 KB
/
handler_partitions.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
#ifndef HANDLERPARTITIONS_H
#define HANDLERPARTITIONS_H
#include <enums.h>
#include <utils.h>
#include <handler_disk.h>
#include <virtual_blocks.h>
#include <vars.h>
#include <handler_fs.h>
Response updatepartition(char path[],char nameDisk[],char namePart[],int sizeToMod,Unit unit);
Response modPartition(int size, Unit unit, char path[], char name[]);
Response createPartition(int,Unit,char[],char[],TypePartition,Fit,char[]);
Response newPartition(int,Unit,char[],TypePartition,Fit,char[]);
Response newPrimaryPart(long,Fit,char[],MBR*,char[]);
Response newExtendedPart(long,Fit,char[],MBR*,char[]);
Response newLogicPart(long,Fit,char[],MBR*,char[]);
void newEBR(Partition *, char[]);
void writeEBR(EBR *, char[],int);
Response deletePartition(char[], char[],char[],TypePartition,TypeFormat);
Response rmPartition(char[],char[],TypePartition,TypeFormat);
Response deletePrimaryPart(MBR*,char[],TypeFormat,char[]);
Response deleteLogicPart(char[], MBR*, char[]);
Response getStartAddress(MBR*,Fit,long,int*);
Response mountPart(char[],char[]);
void showMounts();
char* getPartId(char,int);
Response unmountPart(char[]);
Response getStartAddressLogic(MBR *disco,EBR *part,Fit fit,long size,int *startPoint,char[]);
MountedPart* getMountedPartition(char id[]);
MountedDisk* getMountedDisk(char id[]);
#endif // HANDLERPARTITIONS_H