LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Final Year Projects...

[ILUG] Final Year Projects...

Padraig Brady padraig.brady at corvil.com
Tue Oct 1 10:02:03 IST 2002


kevin lyda wrote:
> On Mon, Sep 30, 2002 at 05:45:16PM +0100, Richard Eibrand wrote:
> 
>>So what this means is that many final year will need to undertake a
>>final year project of some form.  If any of you guys have ideas for
>>projects of varying levels of complexity (both diploma and degree
>>courses catered for),
> 
> an amusing project:
> 
>     add version file support to a linux fs ala vax/vms.  so when you
>     save a new file, the previous one gets a new version number.
> 
> a possibly useful project:
> 
>     add an fs level precomputed md5/sha1 checksum to a linux fs.  the idea
>     would be that a write or trunc call to a file would invalidate a
>     precomputed checksum.  an syscall for the file would either return
>     the checksum from a cache or calculate it and then return it.
> 
>     this might be useful for some sort of tripwire or mirroring type
>     utility that would run very frequently to check files for changes.

Note I presume the checksum would be calculated only on the
"getchecksum" syscall? I suppose you could do it on sys_close.
That would allow you to auto merge duplicates (at the
file level (not the block level) (which is usually what you want).
Then if a write changes the file to something unique you can
actually write the unique blocks. Note this may seem difficult
but the hard bits are done already as a lot of sys calls can
already return ENOSPC (because of holes in files etc.).
The obvious tradeoff here is the time it takes to calculate the
md5sum and search the existing md5sums on sys_close, whereas
you could argue that it's better to batch it outside the
filesystem as is currrently the case.

It would still be an interesting project that has the advantages
of not being too difficult and possibly being useful.

What would you call it, COCfs (Copy On Close filesystem)?

Padraig.




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell