Skip to main content.

mini_fo development page

Bug reports (please add here):

ID Description Status Posted by
000 mini_fo fs explodes cdrom during mount (just joking) closed Markus
001 hard links in the base fs are treated as individual files open Markus
002 overwriting a running binary fails (ok) but truncates the binary (bad) open Markus
003 exporting mini_fo with nfs causes trouble. open Markus

Bug details:


Problem: The problem is a hack in mini_fo_mmap() in file.c, where vma->vm_file is changed to point to the lower file. First deny_write_access() is called on the mini_fo file, which (correctly) decrements its file->f_dentry->d_inode->i_writecount. But after the switch the lower i_writecount is still zero, what leads to get_write_access() succeeding and the binary beeing truncated.

Solution: No easy one. Ugly: hack to synchronize the i_writecounts of mini_fo and lower inodes. Properly: implement mini_fo aops to do fan-out.


Development sources

Will be put here.

mini_fo testsuite

The mini_fo testsuite is a set of bash scripts and programs, that perform various tests on a mini_fo file system. Check the README in the sources to find out how to use it and how to write new tests.



-- MarkusKlotzbuecher - 09 May 2005

TopicClassification: PublicSupported
OperatingSystem: OsLinux

Attachment sort Action Size Date Who Comment
mini_fo-testsuite-0-0-2.tar.bz2 manage 6.4 K 09 May 2005 - 12:54 MarkusKlotzbuecher  
mini_fo-testsuite-0-0-3.tar.bz2 manage 12.9 K 09 May 2005 - 13:01 MarkusKlotzbuecher