All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC][9/11][MANUX] Kernel compatibility : ext2's dtime field?
@ 2014-04-15 13:43 Emmanuel Colbus
  2014-04-15 20:10 ` Theodore Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Emmanuel Colbus @ 2014-04-15 13:43 UTC (permalink / raw)
  To: linux-kernel

Now, another question. In ext2, what is the point of the dtime field?
Personaly, I'm never setting it, because, well, if an inode is removed,
it's removed, and nobody is supposed to access it again; and anyways,
since no syscall allows seeing it, the dtime seems to me like nothing
but an information leakage. But I doubt you would have put a useless
data in the filesystem, so I'm likely overlooking something; if so, what
is it?

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

* Re: [RFC][9/11][MANUX] Kernel compatibility : ext2's dtime field?
  2014-04-15 13:43 [RFC][9/11][MANUX] Kernel compatibility : ext2's dtime field? Emmanuel Colbus
@ 2014-04-15 20:10 ` Theodore Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Ts'o @ 2014-04-15 20:10 UTC (permalink / raw)
  To: Emmanuel Colbus; +Cc: linux-kernel

On Tue, Apr 15, 2014 at 03:43:12PM +0200, Emmanuel Colbus wrote:
> Now, another question. In ext2, what is the point of the dtime field?
> Personaly, I'm never setting it, because, well, if an inode is removed,
> it's removed, and nobody is supposed to access it again; and anyways,
> since no syscall allows seeing it, the dtime seems to me like nothing
> but an information leakage. But I doubt you would have put a useless
> data in the filesystem, so I'm likely overlooking something; if so, what
> is it?

For ext2, it was useful as a way of being able to do some emergency
undelete operations on a file system.  These days, it's mostly for
debugging purposes.

This field is also used as a linked list in ext3 and ext4 for "orphan
inodes" and inodes which are in the process of being truncated or for
which should be truncated after a crash (to avoid leaking stale data,
for example).

						- Ted

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

end of thread, other threads:[~2014-04-15 20:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-15 13:43 [RFC][9/11][MANUX] Kernel compatibility : ext2's dtime field? Emmanuel Colbus
2014-04-15 20:10 ` Theodore Ts'o

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.