Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ext4 filesystem being remounted at / supports timestamps until 2038 (0x7fffffff) #238

Open
Harvie opened this issue Feb 22, 2024 · 5 comments

Comments

@Harvie
Copy link
Contributor

Harvie commented Feb 22, 2024

Hello,
ext4 filesystem created by genimage does not seem to be Y2K38 ready :-) when i mount it on debian, it says following:

ext4 filesystem being remounted at / supports timestamps until 2038 (0x7fffffff)

not sure about other filesystems supported by genimage.

@Harvie
Copy link
Contributor Author

Harvie commented Feb 22, 2024

It's weird, because mke2fs is called with -I 256 argument in image-ext2.c, which should enable support for higher dates... i don't get it.

using following config:

image part-rootfs.ext4.img {
  ext4 {
    label = "ROOT_FS"
  }
  size = 2630M
  srcpath = "./rootfs"
}

@michaelolbrich
Copy link
Member

You need to add use-mke2fs = true to the ext4 section. Otherwise genext2fs is used and not mke2fs.

I've been reluctant to change the default here, but maybe it's time to do that.

@Harvie
Copy link
Contributor Author

Harvie commented Feb 23, 2024

Are there any downsides to using mke2fs ?

@michaelolbrich
Copy link
Member

The images created by genext2fs can be slightly smaller, because it tries to compact things as much as possible.

It's mostly historical. When ext images in genimage where first implemented, mke2fs did not support adding content to the created filesystem, so it could not be used.

I recommend using mke2fs for everything unless you have a really good reason not to.

@Harvie
Copy link
Contributor Author

Harvie commented Feb 23, 2024

images created by genext2fs can be slightly smaller

i guess that explains the 128b inodes :-)

I recommend using mke2fs for everything unless you have a really good reason not to.

sounds like a good candidate to be used by default :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants