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

Set max ashift to 4K #3122

Merged
merged 1 commit into from
Mar 30, 2023
Merged

Conversation

zedi-pramodh
Copy link

Set max auto ashift to 4K. This will ensure ashift is always set to 4K irrespective of the block size supported by the physical device.

Testing done

Compiled.

Tested that parameter is set.

Before fix

(ns: pillar) 5e2b3989-174a-450f-ad73-47b021784f28:/sys/module/zfs/parameters# cat zfs_vdev_min_auto_ashift
12
(ns: pillar) 5e2b3989-174a-450f-ad73-47b021784f28:/sys/module/zfs/parameters# cat zfs_vdev_max_auto_ashift
16

After Fix

5e2b3989-174a-450f-ad73-47b021784f28:/sys/module/zfs/parameters# cat zfs_vdev_min_auto_ashift
12
5e2b3989-174a-450f-ad73-47b021784f28:/sys/module/zfs/parameters# cat zfs_vdev_max_auto_ashift
12

@rene
Copy link
Contributor

rene commented Mar 29, 2023

@zedi-pramodh , I would add the PR short explanation (Set max auto ashift to 4K. This will ensure ashift is always set to 4K irrespective of the block size supported by the physical device.) to the commit message as well.

Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zedi-pramodh
Copy link
Author

@zedi-pramodh , I would add the PR short explanation (Set max auto ashift to 4K. This will ensure ashift is always set to 4K irrespective of the block size supported by the physical device.) to the commit message as well.

Sure will do. Does that trigger another round of tests ? Just trying to save resources.

This will ensure ashift is always set to 4K irrespective of the block size supported by the physical device.

Signed-off-by: Pramodh Pallapothu <pramodh@zededa.com>
@eriknordmark eriknordmark merged commit 8391619 into lf-edge:master Mar 30, 2023
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.

3 participants