* persistent preallocation
@ 2010-08-03 10:58 Bo Brantén
2010-08-03 11:18 ` Dmitry Monakhov
2010-08-03 18:06 ` Ted Ts'o
0 siblings, 2 replies; 4+ messages in thread
From: Bo Brantén @ 2010-08-03 10:58 UTC (permalink / raw)
To: linux-ext4
Hello,
I have a question on the implementation of persistent preallocation, the
reason to not return the disk block is because it can contain old data but
I wonder if an implementation has to return zeros instead or if it could
return any garbage as long as it is not _that_ garbage?
Bo Branten
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: persistent preallocation
2010-08-03 10:58 persistent preallocation Bo Brantén
@ 2010-08-03 11:18 ` Dmitry Monakhov
2010-08-03 16:25 ` Eric Sandeen
2010-08-03 18:06 ` Ted Ts'o
1 sibling, 1 reply; 4+ messages in thread
From: Dmitry Monakhov @ 2010-08-03 11:18 UTC (permalink / raw)
To: Bo Brantén; +Cc: linux-ext4
Bo Brantén <bosse@acc.umu.se> writes:
> Hello,
>
> I have a question on the implementation of persistent preallocation,
> the reason to not return the disk block is because it can contain old
> data but I wonder if an implementation has to return zeros instead or
Please look at fallocate(2) syscall.
> if it could return any garbage as long as it is not _that_ garbage?
Off course it is not a garbage, it is old user's data which may be
very very useful (old passwords, cookies, and etc)for person who has
time to analyze it :)
>
> Bo Branten
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: persistent preallocation
2010-08-03 11:18 ` Dmitry Monakhov
@ 2010-08-03 16:25 ` Eric Sandeen
0 siblings, 0 replies; 4+ messages in thread
From: Eric Sandeen @ 2010-08-03 16:25 UTC (permalink / raw)
To: Dmitry Monakhov; +Cc: Bo Brantén, linux-ext4
On 08/03/2010 06:18 AM, Dmitry Monakhov wrote:
> Bo Brantén <bosse@acc.umu.se> writes:
>
>> Hello,
>>
>> I have a question on the implementation of persistent preallocation,
>> the reason to not return the disk block is because it can contain old
>> data but I wonder if an implementation has to return zeros instead or
> Please look at fallocate(2) syscall.
>> if it could return any garbage as long as it is not _that_ garbage?
> Off course it is not a garbage, it is old user's data which may be
> very very useful (old passwords, cookies, and etc)for person who has
> time to analyze it :)
I think the question was, could the implementation return 0xFF rather
than what is actually on disk (and rather than 0's) when reading a
preallocated block.
You could certainly write it that way, but I don't know why you would
want to...
IOW it wouldn't be posix_fallocate() or fallocate(), it'd be
junk_preallocate() or something.
-Eric
>>
>> Bo Branten
>>
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: persistent preallocation
2010-08-03 10:58 persistent preallocation Bo Brantén
2010-08-03 11:18 ` Dmitry Monakhov
@ 2010-08-03 18:06 ` Ted Ts'o
1 sibling, 0 replies; 4+ messages in thread
From: Ted Ts'o @ 2010-08-03 18:06 UTC (permalink / raw)
To: Bo Brantén; +Cc: linux-ext4
On Tue, Aug 03, 2010 at 12:58:21PM +0200, Bo Brantén wrote:
>
> I have a question on the implementation of persistent preallocation,
> the reason to not return the disk block is because it can contain
> old data but I wonder if an implementation has to return zeros
> instead or if it could return any garbage as long as it is not
> _that_ garbage?
What would be the point? If we know that we can't return the on-disk
block contents, returning all zero's is much nicer for the application
since it also then looks like and works just like a sparse file.
- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-08-03 18:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-03 10:58 persistent preallocation Bo Brantén
2010-08-03 11:18 ` Dmitry Monakhov
2010-08-03 16:25 ` Eric Sandeen
2010-08-03 18:06 ` Ted Ts'o
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).