How does ext2 implement sparse files?
- From: Lars Noschinski <lklml@xxxxxxxxxxxxxxxx>
- Date: Thu, 31 Jan 2008 16:28:23 +0100
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]
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: How does ext2 implement sparse files?
- From: Andi Kleen
- Re: How does ext2 implement sparse files?
- From: Chris Snook
- Re: How does ext2 implement sparse files?
- From: Lennart Sorensen
- Re: How does ext2 implement sparse files?
- Prev by Date: [PATCH] Define a NO_GPIO macro to compare against and to use as an invalid GPIO
- Next by Date: Re: asm-generic/tlb.h and check_pgt_cache()
- Previous by thread: [PATCH] Define a NO_GPIO macro to compare against and to use as an invalid GPIO
- Next by thread: Re: How does ext2 implement sparse files?
- Index(es):
Relevant Pages
|
|