1
0
Fork 0

Compare commits

...

1 Commits

Author SHA1 Message Date
Dmitry Yusko 5727772bdc Add relatime and lazytime for ext4 mounting 2023-12-14 17:03:38 +03:00
1 changed files with 4 additions and 0 deletions

View File

@ -539,6 +539,10 @@ func (ns *NodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePublis
{
opt = append(opt, "nouuid")
}
if (fsType == "ext4")
{
opt = append(opt, "relatime","lazytime")
}
readOnly := Contains(opt, "ro")
if (existingFormat == "" && !readOnly)
{