public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* How does ext2 implement sparse files?
@ 2008-01-31 15:28 Lars Noschinski
  2008-01-31 16:51 ` Lennart Sorensen
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Lars Noschinski @ 2008-01-31 15:28 UTC (permalink / raw)
  To: linux-kernel


Hello!

For an university project, we had to write a toy filesystem (ext2-like),
for which I would like to implement sparse file support. For this, I
digged through the ext2 source code; but I could not find the point,
where ext2 detects holes.

As far as I can see from fs/buffer.c, an hole is a buffer_head which is
not mapped, but uptodate. But I cannot find a relevant source line,
where ext2 makes usage of this information.

Any hints would be greatly appreciated,
     Lars.

[Please CC me on answers, I'm not subscribed]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-02-01 12:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-31 15:28 How does ext2 implement sparse files? Lars Noschinski
2008-01-31 16:51 ` Lennart Sorensen
2008-01-31 17:18 ` Chris Snook
2008-01-31 18:14 ` Andi Kleen
2008-02-01 10:34   ` Shuduo Sang
2008-02-01 11:08     ` Eric Dumazet
2008-02-01 11:55   ` Lars Noschinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox