Skip to content

--efs-mount-options silently drops options it does not know (nconnect, etc.) #1390

Closed

Description

@scttfrdmn

Found while writing #1366's flag gate (nconnect=4 produced the same user data as no --efs-mount-options at all).

storage.ParseCustomOptions (pkg/storage/efs.go) handles nfsvers/rsize/wsize/timeo/retrans/actimeo and hard/soft/noresvport/async/nosharecache. Anything else falls into

default:
    // Ignore unknown options (pass through)

which does not pass it through: EFSMountOptions has no field for it and ToMountString never emits it. So --efs-mount-options nconnect=8,timeo=600 mounts with timeo=600 and no nconnect, and nothing says so.

Evidence: storage.ParseCustomOptions("nconnect=8") round-tripped through ToMountString() equals the general profile's string. Unit-level only.

Either pass unknown options through verbatim or refuse them with the list of supported ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:launcharea:storagebugcomponent:spawntype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions