Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zfs umount succeeds but prints message "snapshot delimiter '@' is not expected here" to stderr #12447

Closed
youzhongyang opened this issue Jul 29, 2021 · 0 comments
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@youzhongyang
Copy link
Contributor

System information

Type Version/Name
Distribution Name Ubuntu
Distribution Version 20.04LTS
Kernel Version 5.4.0-26-lowlatency
Architecture x86_64
OpenZFS Version 2.0.5

Describe the problem you're observing

When trying to unmount a zfs dataset, if a snapshot of the dataset or its descendant dataset is also mounted, the zfs umount command successfully finishes but prints a confusing message like the following to the standard error:

cannot open 'rpool/fs@snap': snapshot delimiter '@' is not expected here

Describe how to reproduce the problem

# zfs create rpool/fs
# zfs create rpool/fs/fs1
# zfs create rpool/fs/fs1/fs2
# zfs snapshot -r rpool/fs@snap
# ls /fs/.zfs/snapshot/snap/ ; zfs umount rpool/fs
fs1
cannot open 'rpool/fs@snap': snapshot delimiter '@' is not expected here
# zfs mount -a
# ls /fs/fs1/.zfs/snapshot/snap/ ; zfs umount rpool/fs
fs2
cannot open 'rpool/fs/fs1@snap': snapshot delimiter '@' is not expected here
# zfs mount -a
# ls /fs/fs1/fs2/.zfs/snapshot/snap/ ; zfs umount rpool/fs
cannot open 'rpool/fs/fs1/fs2@snap': snapshot delimiter '@' is not expected here
# zfs mount -a
# ls /fs/fs1/fs2/.zfs/snapshot/snap/ ; zfs umount rpool/fs ; echo $?
cannot open 'rpool/fs/fs1/fs2@snap': snapshot delimiter '@' is not expected here
0

Include any warning/errors/backtraces from the system logs

@youzhongyang youzhongyang added the Type: Defect Incorrect behavior (e.g. crash, hang) label Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

No branches or pull requests

1 participant