[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: file born 30 seconds after its creation on ext4 - bug?



On Mon, May 02, 2022 at 10:04:00AM -0500, David Wright wrote:

> I'm not very familiar with files' birth as it's a relatively new
> addition to filesystems, particularly how to display it even when
> present. So I looked it up, and the ext4 wiki says it's the time
> at which the inode is created. I also read in ext4 wikipedia:

[...]

> So I wondered whether a delayed birth time could be caused by the
> filesystem waiting a while before it actually starts creating any
> allocation for the file on the disk. Having amassed some data,
> depending on its size, it decides where it's going to write it,
> ie which block group. Only then does it create the file's inode,
> so that it can keep file contents and inode close together.

That actually makes sense. It would be surprising behaviour,
but at least whithin reach; whether it's intentional or may be
considered a bug is, of course, another thing

Thanks for diving into details, cheers
-- 
t

Attachment: signature.asc
Description: PGP signature


Reply to: