On Mon, 03 Jul 2006 15:46:55 MDT, "Jeff V. Merkey" said: > Add a salvagable file system to ext4, i.e. when a file is deleted, you > just rename it and move it to a directory called DELETED.SAV and recycle > the files as people allocate new ones. Easy to do (internal "mv" of > file to another directory) and modification of the allocation bitmaps. > Very simple and will pay off big. If you need help designing it, just Much better done in userspace - the kernel can't get this right without some user hinting. For starters, it creates a big security hole in all the code that does an open()/unlink(). Also, how do you handle the corner cases? The fact you're adding to the pathname of the file means you might push some long names over the MAXPATHLEN value, and you have to worry about name collisions in the directory, and so on. There's also more subtle leakage issues, such as properly handling the permissions on the files on a multi-user system so users can't rummage each other's trash....
Attachment:
pgp6euLripNsu.pgp
Description: PGP signature
- References:
- ext4 features
- From: Thomas Glanzmann <[email protected]>
- Re: ext4 features
- From: Tomasz Torcz <[email protected]>
- Re: ext4 features
- From: Thomas Glanzmann <[email protected]>
- Re: ext4 features
- From: Tomasz Torcz <[email protected]>
- Re: ext4 features
- From: Helge Hafting <[email protected]>
- Re: ext4 features
- From: Tomasz Torcz <[email protected]>
- Re: ext4 features
- From: Arjan van de Ven <[email protected]>
- Re: ext4 features
- From: "Jeff V. Merkey" <[email protected]>
- ext4 features
- Prev by Date: Re: [Patch][RFC] Disabling per-tgid stats on task exit in taskstats
- Next by Date: Re: Driver for Microsoft USB Fingerprint Reader
- Previous by thread: Re: ext4 features
- Next by thread: Re: Kernel recycler [was: ext4 features]
- Index(es):