Skip to content

Commit 5e5ba1b

Browse files
committed
remove fstype check
1 parent e437d24 commit 5e5ba1b

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

internal/node/ssd/ssd_node.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,8 @@ func (d *Node) NodePublishVolume(_ context.Context, request *csi.NodePublishVolu
5757

5858
if request.GetReadonly() {
5959
// Read-only volumes cannot be written to in any way
60-
mountOpts = append(mountOpts, node.ReadOnlyMountOption)
61-
62-
if mountCap := request.GetVolumeCapability().GetMount(); mountCap != nil {
63-
fsType := mountCap.GetFsType()
64-
if fsType == "ext4" {
65-
mountOpts = append(mountOpts, node.NoLoadMountOption)
66-
}
67-
}
60+
// We should not attempt to replay the journal
61+
mountOpts = append(mountOpts, node.ReadOnlyMountOption, node.NoLoadMountOption)
6862
}
6963

7064
err := nodePublishVolume(d.Mounter, d.Resizer, mountOpts, request)

0 commit comments

Comments
 (0)