linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* question about i_dtime being used as an orphan list pointer
@ 2010-08-25 19:22 Vitali Lovich
  2010-08-25 20:39 ` Ted Ts'o
  0 siblings, 1 reply; 5+ messages in thread
From: Vitali Lovich @ 2010-08-25 19:22 UTC (permalink / raw)
  To: linux-ext4

So I've run into this problem where the clock was reset into the 1970s
on my system, causing e2fsck to get confused & think a file I deleted
actually had an orphan list inode pointer stored in the i_dtime
instead of the deletion time, causing e2fsck to get all confused &
return an error code.

My current idea for a workaround is to clamp the value to midnight
2000 if get_seconds returns that, but I'm not really enamoured with
that idea.

Looking at this further, I made the following observations (please let
me know if I'm completely off base):

Even a value of midnight 2010 corresponds to a limit of only about 1
billion files (1 262 304 000).  Thus it seems if you delete a file on
a partition with more than a billion files, it will make e2fsck think
you've got a corrupt file-system even though you don't.

A slightly related question I have is if anyone knows whether i_dtime
is actually used as a timestamp for anything useful in kernel or
user-space?  Can I just set d_time to 0xffffffff when it's deleted
instead of giving it wall-clock time?

Thanks for any feedback,
Vitali

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

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

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-25 19:22 question about i_dtime being used as an orphan list pointer Vitali Lovich
2010-08-25 20:39 ` Ted Ts'o
2010-08-25 21:25   ` Vitali Lovich
2010-08-25 22:48     ` Ted Ts'o
2010-08-25 22:51       ` Vitali Lovich

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).