\doxysection{disk.\+h} \hypertarget{disk_8h_source}{}\label{disk_8h_source}\index{src/disk.h@{src/disk.h}} \mbox{\hyperlink{disk_8h}{Go to the documentation of this file.}} \begin{DoxyCode}{0} \DoxyCodeLine{00001\ } \DoxyCodeLine{00002\ \textcolor{preprocessor}{\#pragma\ once}} \DoxyCodeLine{00003\ } \DoxyCodeLine{00004\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00005\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{struct_8h}{struct.h}}"{}}} \DoxyCodeLine{00006\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00007\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00008\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00009\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00010\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{env_8h}{env.h}}"{}}} \DoxyCodeLine{00011\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{const_8h}{const.h}}"{}}} \DoxyCodeLine{00012\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{utils_8h}{utils.h}}"{}}} \DoxyCodeLine{00013\ } \DoxyCodeLine{00014\ } \DoxyCodeLine{00015\ \mbox{\hyperlink{structdisk}{disk}}\ \mbox{\hyperlink{disk_8h_a7eb10c7006ff648d851b15f24e4305c3}{create\_disk}}();} \DoxyCodeLine{00016\ \mbox{\hyperlink{structdisk}{disk}}\ \mbox{\hyperlink{disk_8h_a0410aa30c92de7cca42080e61d4dcd91}{open\_disk}}(\textcolor{keywordtype}{char}*\ filename);} \DoxyCodeLine{00017\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{disk_8h_a9db73bc21d502f4b9231a7366070fcad}{do\_ls}}(\mbox{\hyperlink{structdisk}{disk}}\ *d,\ \textcolor{keywordtype}{char}*\ path);} \DoxyCodeLine{00018\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{disk_8h_ae99a488757a20d04370d00dd36dcd605}{do\_touch}}(\mbox{\hyperlink{structdisk}{disk}}\ *d,\ \textcolor{keywordtype}{char}\ *filepath);} \DoxyCodeLine{00019\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{disk_8h_a69cc37c23ee36cbf476280a13b83276b}{do\_mkdir}}(\mbox{\hyperlink{structdisk}{disk}}*\ d,\ \textcolor{keywordtype}{char}\ *dirpath);} \DoxyCodeLine{00020\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{disk_8h_a31d16b7fcc1b8c0cfc7651c86d233bd5}{do\_df}}(\mbox{\hyperlink{structdisk}{disk}}\ *d);} \DoxyCodeLine{00021\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{disk_8h_ab892860e63632cdcf960c65b314772b9}{do\_rm}}(\mbox{\hyperlink{structdisk}{disk}}\ *\mbox{\hyperlink{structdisk}{disk}},\ \textcolor{keywordtype}{char}\ *filepath);} \DoxyCodeLine{00022\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{disk_8h_af10807a70b9341c379973247c446824e}{do\_rmdir}}(\mbox{\hyperlink{structdisk}{disk}}\ *\mbox{\hyperlink{structdisk}{disk}},\ \textcolor{keywordtype}{char}\ *filepath);} \DoxyCodeLine{00023\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{disk_8h_a6715a2ff0198e20d4596d140784d633b}{do\_cat}}(\mbox{\hyperlink{structdisk}{disk}}\ *\mbox{\hyperlink{structdisk}{disk}},\ \textcolor{keywordtype}{char}*\ path\_to\_file);} \DoxyCodeLine{00024\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{disk_8h_acaa80df6e40b49030c912453717bc176}{do\_grep}}(\textcolor{keywordtype}{char}*\ arg);} \DoxyCodeLine{00025\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{disk_8h_a6f69e1d7bb5d136f816149887845e9c8}{find\_dir\_inode\_by\_name}}(\textcolor{keywordtype}{char}\ *name,\ \textcolor{keywordtype}{int}\ dir\_index,\ \mbox{\hyperlink{structdisk}{disk}}\ *d);} \DoxyCodeLine{00026\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{disk_8h_ae1bed71dffe181556a19024ae600412f}{redirect\_out}}(\mbox{\hyperlink{structdisk}{disk}}\ *d,\ \textcolor{keywordtype}{int}\ mode,\ \textcolor{keywordtype}{char}\ *file,\ \textcolor{keywordtype}{int}\ in);} \DoxyCodeLine{00027\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{disk_8h_ad6626984368788d12c01f0dffe24d4ea}{persist\_on\_disk}}(\mbox{\hyperlink{structdisk}{disk}}*\ d);} \end{DoxyCode}