* dummy fs
@ 2006-01-11 17:18 Jan Koss
2006-01-12 14:52 ` Tyler
0 siblings, 1 reply; 3+ messages in thread
From: Jan Koss @ 2006-01-11 17:18 UTC (permalink / raw)
To: kernelnewbies, linux-fsdevel
Hello.
I want implement educational file-system for Linux.
I suppose it would be very simplified UFS (for example,
with such limitations like: size of file <=8K, length of name <20 characters
and so on). The main goal is simplicity, small size of implementation
and space for speedup improvements.
1)May be some one hear about such for Linux 2.6 ?
2)Currently I'm investigating how "truncate" method should works on
the filesystem layer.
Is any description how it should works?
I mean, as I understand first I should truncate page cache
(block_truncate_page?),
what about "buffer_head" which now not belong to my file and may be
used by another process at the same time?
3)As I see sb_find_get_block return "buffer_head", with b_count==2,
(if nobody before use this "buffer_head"),
is it right behavior?
Should I call two time brelse to free "buffer_head",
which I get using sb_find_get_block?
4)Is there set of tests to check work of ordinary Unix file-system?
For example: one process creates files, and another check using
(readdir) is all right,
one open file for writing, another open the same file for reading... etc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: dummy fs
2006-01-11 17:18 dummy fs Jan Koss
@ 2006-01-12 14:52 ` Tyler
2006-01-12 17:31 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Tyler @ 2006-01-12 14:52 UTC (permalink / raw)
To: kernelnewbies; +Cc: linux-fsdevel
Jan Koss wrote:
> Hello.
>
> I want implement educational file-system for Linux.
> I suppose it would be very simplified UFS (for example,
> with such limitations like: size of file <=8K, length of name <20 characters
> and so on). The main goal is simplicity, small size of implementation
> and space for speedup improvements.
>
> 1)May be some one hear about such for Linux 2.6 ?
>
> 2)Currently I'm investigating how "truncate" method should works on
> the filesystem layer.
> Is any description how it should works?
> I mean, as I understand first I should truncate page cache
> (block_truncate_page?),
> what about "buffer_head" which now not belong to my file and may be
> used by another process at the same time?
>
> 3)As I see sb_find_get_block return "buffer_head", with b_count==2,
> (if nobody before use this "buffer_head"),
> is it right behavior?
> Should I call two time brelse to free "buffer_head",
> which I get using sb_find_get_block?
>
> 4)Is there set of tests to check work of ordinary Unix file-system?
> For example: one process creates files, and another check using
> (readdir) is all right,
> one open file for writing, another open the same file for reading... etc
> -
Hi,
you can have a look at this page :
http://wiki.kernelnewbies.org/NdevfsSource
it's the simplest ram filesystem.
or have a look at the ramfs.c file in the kernel tree.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-01-12 17:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-11 17:18 dummy fs Jan Koss
2006-01-12 14:52 ` Tyler
2006-01-12 17:31 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).