Skip to content
Snippets Groups Projects
Commit 22fac508 authored by Thierno souleymane Bah's avatar Thierno souleymane Bah
Browse files

feat(save_super function added)

parent 61c4848a
No related branches found
No related tags found
No related merge requests found
...@@ -189,3 +189,11 @@ int load_super(unsigned int vol) ...@@ -189,3 +189,11 @@ int load_super(unsigned int vol)
assert(super.magic == MAGIC); assert(super.magic == MAGIC);
} }
void save_super()
{
unsigned char buffer[sizeof(vsuper_t)];
memcpy(buffer, &super, sizeof(vsuper_t));
write_bloc(super.id, SUPER_BLOC, buffer);
}
\ No newline at end of file
...@@ -61,5 +61,6 @@ void remove_vol(); ...@@ -61,5 +61,6 @@ void remove_vol();
void init_volume(unsigned int vol); void init_volume(unsigned int vol);
int load_super(unsigned int vol); int load_super(unsigned int vol);
void save_super();
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment