mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-01-11 22:39:31 +00:00
rbd: Use assume_storage_prezeroed when formatting
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: #4948 Signed-off-by: Niraj Yadav <niryadav@redhat.com>
This commit is contained in:
parent
630c97a009
commit
60069c44ce
@ -101,7 +101,7 @@ var (
|
|||||||
xfsHasReflink = xfsReflinkUnset
|
xfsHasReflink = xfsReflinkUnset
|
||||||
|
|
||||||
mkfsDefaultArgs = map[string][]string{
|
mkfsDefaultArgs = map[string][]string{
|
||||||
"ext4": {"-m0", "-Enodiscard,lazy_itable_init=1,lazy_journal_init=1"},
|
"ext4": {"-m0", "-Enodiscard,assume_storage_prezeroed=1"},
|
||||||
"xfs": {"-K"},
|
"xfs": {"-K"},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user