No space left on device error while creating and immediately deleting files using redoxfs via libfuse in linux
Im using redoxfs via libfuse under linux. To mount redoxfs , i use make mount
command. I only changed the size of disk to bs=4096 count=400
.
I used a script to continuously create and delete files in the image/
directory, creating a file and then immediately deleting it. After looping like this for over 100 times, an error occurred.
Here's my script:
# ./create_and_delete_files.sh
for i in {1..100}
do
touch "file_$i.txt"
rm "file_$i.txt"
done
echo "Completed creating and deleting 100 files."
And the image i uploaded is the error message saying that theres no space left on the disk. Which is wierd.
I also tried to use redoxfs on a toyos im currently working on. And i found that on my toyos, after each create and delete operation(i called create_node once and remove_node once), the result obtained from calling the allocator's free function is always one less than before performing the operation.