mirror of
https://github.com/digarok/gsplus.git
synced 2024-06-14 03:29:32 +00:00
host fst fix
reported in c.e.a2 - when dropping into p8, fst_shutdown is called. when returning to gs/os, fst_startup is NOT called. This effective unmounts the host file system, permanently, since it assumed fst_startup would get called again. fst_shutdown code now closes any open files but does not otherwise unmount.
This commit is contained in:
parent
a02f323fb5
commit
5a21b96f52
|
@ -407,6 +407,10 @@ static char *get_path2(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* shutdown is called when switching to p8.
|
||||||
|
* startup is ONLY called during initial boot.
|
||||||
|
*/
|
||||||
|
|
||||||
static word32 fst_shutdown(void) {
|
static word32 fst_shutdown(void) {
|
||||||
|
|
||||||
|
@ -418,7 +422,7 @@ static word32 fst_shutdown(void) {
|
||||||
free_fd(head);
|
free_fd(head);
|
||||||
head = next;
|
head = next;
|
||||||
}
|
}
|
||||||
host_shutdown();
|
//host_shutdown();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -426,6 +430,8 @@ static word32 fst_startup(void) {
|
||||||
// if restart, close any previous files.
|
// if restart, close any previous files.
|
||||||
|
|
||||||
fst_shutdown();
|
fst_shutdown();
|
||||||
|
host_shutdown();
|
||||||
|
|
||||||
memset(&cookies, 0, sizeof(cookies));
|
memset(&cookies, 0, sizeof(cookies));
|
||||||
|
|
||||||
return host_startup();
|
return host_startup();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user