[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Read-only /usr



On Thu, Nov 08, 2001 at 11:24:52AM +1000, Anthony Towns wrote:
> On Thu, Nov 08, 2001 at 12:18:54AM +0100, Bernd Eckenfels wrote:
> > On Wed, Nov 07, 2001 at 11:22:34AM +0100, Martin Waitz wrote:
> > > isn't this a filesystem bug?
> > Closing a delted file means freeing blocks and this means writing to disk.
> > So you cant remount ro as long as a file which is deleted is open. Same is
> > true as long as you have a file opened for read.
> 
> You could, of course, change your filesystem so that it'd have a separate
> "soon-to-be-deleted" table on the disk, which needn't be empty for the
> fs to be mounted read-only; with the behaviour that if an open file has

Why not simply make the filesystem act as if it was read-only and tag it in some
way (in the mount table) so that it will really get ro once the opened files
are closed and deleted?

Greetings

	Torsten

Attachment: pgp0ZQnPVvdw7.pgp
Description: PGP signature


Reply to: