Skip to content

canmount=noauto causes failure of zfs mount -R, zfs mount -a, and zfs unmount -a #18244

@lawmay00

Description

@lawmay00

System information

Type Version/Name
Distribution Name OpenSUSE Tumbleweed
Distribution Version 20260212
Kernel Version 6.18.9
Architecture x86_64
OpenZFS Version 2.4.0

Describe the problem you're observing

canmount=noauto causes failure of zfs mount -R, zfs mount -a, and zfs unmount -a

Describe how to reproduce the problem

zfs create -o canmount=noauto zroot/dummy leaves zroot/dummy unmounted as expected, as shown by zfs mount.

Bug 1: zfs mount -R zroot/dummy and zfs mount -a both silently fail to mount zroot/dummy, as shown by zfs mount.

zroot/dummy can only be mounted with zfs mount zroot/dummy: i.e no -R or -a flag.

Bug 2: zfs unmount -a silently fails to unmount zroot/dummy, as shown by zfs mount.

zroot/dummy can only be unmounted with zfs unmount zroot/dummy: i.e no -a flag.

Include any warning/errors/backtraces from the system logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: DefectIncorrect behavior (e.g. crash, hang)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions