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

Add option to force importing zpool using cache #17

Merged
merged 1 commit into from Jun 12, 2018

Conversation

gyakovlev
Copy link
Contributor

@gyakovlev gyakovlev commented Jun 6, 2018

while this #15 approach also works, I prefer mine (obviously)

So I propose this:
Add simple option to pass to kernel via loader.

dozfs=cache will use /etc/zfs/zpool.cache
avoiding 30+ second wait for udev in zpool import

Also it's possible to use both cache and force
at the same time:
dozfs=force,cache (order is not important) will
force import and use cache.

Closes: https://bugs.gentoo.org/627320

Add simple option to pass to kernel via loader.

dozfs=cache will use /etc/zfs/zpool.cache
avoiding 30+ second wait for udev in zpool import

Also it's possible to use both cache and force
at the same time:
dozfs=force,cache (order is not important) will
force import and use cache.

Closes: https://bugs.gentoo.org/627320
Signed-off-by: Georgy Yakovlev <ya@sysdump.net>
@gyakovlev
Copy link
Contributor Author

gyakovlev commented Jun 6, 2018

I force-pushed a small addition, that checks for the presence of cache file in initrd and falls-back to scanning if the file is not found or empty.

robbat2 added a commit to gentoo/genkernel that referenced this pull request Jun 12, 2018
Closes: robbat2#17
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
@robbat2 robbat2 merged commit 5c5c32a into robbat2:master Jun 12, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants