I am mounting the HTML5 filesystem with the following:
mount("", "/persistent", "html5fs", 0, "type=PERSISTENT,expected_size=1048576");
I create a file using the following
FILE *logfile = fopen("logfile.log", "a");
fwrite("test", 1, 4, logfile);
fclose(logfile);
I can call the above code multiple times without any problem.
After executing the above code, the following code will fail
FILE *logfile = fopen("logfile2.log", "a");
if (logfile == NULL) {
// fails here
}
I can reproduce this with the nacl_io_demo code
These steps always fail
1. create file
2. write to file
3. close file
4. create file 2 // fail
The following steps never fail
1. create file
2. close file
3. create file 2
4. close file
5. create file 3
6. close file 3