-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFileSystem.h
More file actions
27 lines (22 loc) · 1.17 KB
/
FileSystem.h
File metadata and controls
27 lines (22 loc) · 1.17 KB
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
//
// Created by Сергей Ефимочкин on 18.04.2018.
//
#ifndef FS_FILESYSTEM_H
#define FS_FILESYSTEM_H
#include "inode.h"
#include "superblock.h"
void * get_memory_for_filesystem();
struct inode * create_filesystem(char* filesystem);
struct inode * open_filesystem(char* file_system_name, char* filesystem);
void save_filesystem(char* file_system_name, char* filesystem);
void close_filesystem(char* file_system_name, char* filesystem);
char* ls(struct superblock *sb, struct inode* directory);
void mkdir(struct superblock *sb, char* name, struct inode* directory);
void rmdir(struct superblock *sb, char* name, struct inode* directory);
void rm(struct superblock *sb, char* name, struct inode* directory);
void touch(struct superblock *sb, char* name, char* input, struct inode* directory);
char* read_file(struct superblock *sb, char* name, struct inode* directory);
void cd(struct superblock *sb, char*name, struct inode** current_directory);
void import_file(struct superblock *sb, char* inner_name, char* outer_name, struct inode* directory);
void export_file(struct superblock *sb, char* inner_name, char* outer_name, struct inode* directory);
#endif //FS_FILESYSTEM_H