How does ext2 implement sparse files?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Lars Noschinski
Date: Thursday, January 31, 2008 - 8:28 am

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]
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
How does ext2 implement sparse files?, Lars Noschinski, (Thu Jan 31, 8:28 am)
Re: How does ext2 implement sparse files?, Lennart Sorensen, (Thu Jan 31, 9:51 am)
Re: How does ext2 implement sparse files?, Chris Snook, (Thu Jan 31, 10:18 am)
Re: How does ext2 implement sparse files?, Andi Kleen, (Thu Jan 31, 11:14 am)
Re: How does ext2 implement sparse files?, Shuduo Sang, (Fri Feb 1, 3:34 am)
Re: How does ext2 implement sparse files?, Eric Dumazet, (Fri Feb 1, 4:08 am)
Re: How does ext2 implement sparse files?, Lars Noschinski, (Fri Feb 1, 4:55 am)