All of lore.kernel.org
 help / color / mirror / Atom feed
* ext2/ext3 different block_sizes/i_size/e2fsck question
@ 2010-03-24 19:27 Evgeniy Ivanov
  2010-03-24 23:18 ` Evgeniy Ivanov
  2010-03-25  1:55 ` tytso
  0 siblings, 2 replies; 4+ messages in thread
From: Evgeniy Ivanov @ 2010-03-24 19:27 UTC (permalink / raw)
  To: linux-ext4

Hello,

Sorry for bothering list with my ext2 questions.
I got into trouble with my ext2 implementation and filesystem with
1024 block size. Sometimes when I write files they're written
correctly (md5sum is the same as original, i_size is correct either),
but e2fsck changes i_size to another values (which breaks files). E.g.
67445000->67446784 or 67445248->67446784. I see that new sizes are
numbers of multiples of 1024.
Strange thing is that I can't reproduce this problem with 2048 and
4096 block sizes. I thought the problem was in trash in unused part of
last block (actually it is zeroed), but then it would be reproduceable
in fs with another block size.
How does ext2 decide to fix that files sizes? Any suggestions?

Thanks in advance for any help.


-- 
Evgeniy Ivanov

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

end of thread, other threads:[~2010-03-25 22:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-24 19:27 ext2/ext3 different block_sizes/i_size/e2fsck question Evgeniy Ivanov
2010-03-24 23:18 ` Evgeniy Ivanov
2010-03-25  1:55 ` tytso
2010-03-25 22:43   ` Evgeniy Ivanov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.