From 60069c44cef4958aebc2d5a856027d657ced260c Mon Sep 17 00:00:00 2001 From: Niraj Yadav Date: Wed, 27 Nov 2024 15:08:29 +0530 Subject: [PATCH] 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 --- internal/rbd/nodeserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rbd/nodeserver.go b/internal/rbd/nodeserver.go index 905fcf8af..211edfb35 100644 --- a/internal/rbd/nodeserver.go +++ b/internal/rbd/nodeserver.go @@ -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"}, }