I don't think there is need of superuser concept here. What I'm
imagining, again, without having seen the source code, is something
like this:

The file system is formatted and data representing the structure of
the file system are stored normally.

At execution time, the file server check a flag stored in some
place to see if the system is full. If not, the data is changed so
the blocks are "hidden" and execution continues.

If the system is full, the file system starts a console session
presenting the last file edited. At the end of the session, if the
number of free blocks is bigger than the reserved blocks, the blocks are
"hidden" and execution continues. If not, the console session gives
an error and continues.

The flag can be turn on at the same place the error of file system
full is triggered.

In a multi-user environment you can make the file system do something
similar when the system is full, but instead of starting a console
session, delete the last file modified and presenting the user
an error.

------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T4ec62ed03a91d7a4-M4987d580aea7ace04872c584
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to