Skip to content

Commit

Permalink
rbd: Use assume_storage_prezeroed when formatting
Browse files Browse the repository at this point in the history
Instead of passing lazy_itable_init=1 and lazy_journal_init=1 to
mkfs.ext4, pass assume_storage_prezeroed=1 which is
stronger and allows the filesystem to skip inode table zeroing
completely instead of simply doing it lazily.

Closes: ceph#4948

Signed-off-by: Niraj Yadav <[email protected]>
  • Loading branch information
black-dragon74 committed Nov 27, 2024
1 parent 630c97a commit 60069c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/rbd/nodeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ var (
xfsHasReflink = xfsReflinkUnset

mkfsDefaultArgs = map[string][]string{
"ext4": {"-m0", "-Enodiscard,lazy_itable_init=1,lazy_journal_init=1"},
"ext4": {"-m0", "-Enodiscard,assume_storage_prezeroed=1"},
"xfs": {"-K"},
}

Expand Down

0 comments on commit 60069c4

Please sign in to comment.