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 root dataset is not mounted #755

Open
gronke opened this issue Apr 14, 2020 · 1 comment
Open

ZFS root dataset is not mounted #755

gronke opened this issue Apr 14, 2020 · 1 comment
Labels

Comments

@gronke
Copy link
Member

gronke commented Apr 14, 2020

When a ZFS dataset is created with an ancestor without mountpoint, libioc detects the dataset as not mounted, although it technically is.

zfs = libzfs.ZFS()
zfs.get_pool("zroot").create_dataset("zroot/test")
d = zfs.get_dataset("zroot/test")
d.mountpoint is None // True
d.properties["mountpoint"].value = "/tmp/test"
d.properties["mounted"].value == "yes" // False
d2 = zfs.get_dataset("zroot/test")
d2.properties["mounted"].value == "yes" // True
@yonk42
Copy link
Contributor

yonk42 commented Apr 20, 2020

For me, this bug seems to depend on the version of py-libzfs used. As @urosgruber mentioned in #753, the version 20181220 in the FreeBSD pkg repos still works (for me).

I tried to identify the commit introducing the regression for me via git bisect. Many commits did not build correctly for me and I did not have time to fix this (something was wrong with ./configure I think), but I still narrowed it down to 5 commits. Here is my bisect log (I started with the last commit on 20-12-2018), maybe it can be of help: https://gist.github.com/yonk42/2cb2538cd7d607756f5707e6ab76dbce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants