For those who love Journaled File Systems ...

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:For those who love Journaled File Systems ...

Post by Solar »

Just a quick one before I head for the weekend, regarding "importance" of files - I'd base "importance" on frequency of write accesses, date of last write, and date of last read. I think that might be better than some by-filetype-lookup. Just an idea.

Gotta run.
Every good solution is obvious once you've found it.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:For those who love Journaled File Systems ...

Post by Pype.Clicker »

i don't agree, Solar ... my /var/log/messages is accessed far more often than any of my home-cooked .html files and yet it is less important to me ...
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:For those who love Journaled File Systems ...

Post by Candy »

Pype.Clicker wrote: I mean i'm probably unlikely to be happy if some 'deleted-but-still-recoverable' documents become unrecoverable because the system lacks space for downloading a DiVx, right ?
Especially if those documents are my thesis (you know, that word file i'm editting for about 3 years now :P)
I seriously doubt that you are going to make that clearer. By the time the computer starts erasing your thesis for space, you're seriously cramped. The computer should warn you for low disk space a lot sooner. And still, if you intentionally delete your thesis, it's still your own fault. When the space is needed, and you've deleted your file, you cannot expect the filesystem to trick its way around that. Best-effort IMO shouldn't extend that far.
I'd suggest that each file get a sort of "importance level" which can be set automatically using some heuristics (the program that created the file, the user that made it, the mime type of the file, the importance of the "directory" where it is stored, etc.) and that can be adjusted manually by the user (perhaps using some 'tags' UI)

When disk space is missing for a specific task, the system can automatically permanently delete any file that has a 'lower' importance than your current task, but user agreement should be asked before "equal" or "more" important files are permanently deleted (of course, only among files selected for deletion).

The only trouble here is that the 'importance' is actually computed while the file is "alive" and used when the file has been 'scheduled' for deletion by the user ...
That won't work. First of all, everybody thinks his files are a lot more important than other people's files. I've seen people consider their mp3's more important than their friends documents...

On the other hand, huge documents I download from some server in the US are less important than mp3's I've made from my own LP's. No computer can ever judge that as good as I can, but the entire point of deleting a file is that you say you don't need it anymore. Undeletion is correction of a human error and can only be done on a best-effort base.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:For those who love Journaled File Systems ...

Post by Solar »

Pype.Clicker wrote: i don't agree, Solar ... my /var/log/messages is accessed far more often than any of my home-cooked .html files and yet it is less important to me ...
Hargl...

Why can't you guys leave a quick idea alone? :P ;)

OK, I implied that log files would mostly be rotating anyways.

And, I know people that run webservers who would much rather sacrifice their entire home directories than losing /var/log/...

Sheesh. 8) Why can't there be a "message flag" in forums like these which you can set to "I'm BRAINSTORMING, damnit" or "...on a very high level..." or something like that? :D
Every good solution is obvious once you've found it.
Post Reply