[Pkg-zfsonlinux-devel] Bug#945585: Empty Snapshot Directories for Root Pool

Chris Dos chris at chrisdos.com
Wed Nov 27 13:11:52 GMT 2019


Package: zfs-linux
Version: 0.8.2-3

Snapshot directories are empty for snapshots in a root pool.
I.e.: /.zfs/snapshot/zfs-auto-daily-2019_11_27 shows an empty snapshot.

Bug is fixed here:
https://github.com/zfsonlinux/zfs/issues/9381

Patch listed in link:
diff --git a/module/os/linux/zfs/zfs_ctldir.c b/module/os/linux/zfs/zfs_ctldir.c
index 1e61ef0..3b2a6eb 100644
--- a/module/os/linux/zfs/zfs_ctldir.c
+++ b/module/os/linux/zfs/zfs_ctldir.c
@@ -1053,7 +1053,8 @@ zfsctl_snapshot_mount(struct path *path, int flags)
         * on mount.zfs(8).
         */
        snprintf(full_path, MAXPATHLEN, "%s/.zfs/snapshot/%s",
-           zfsvfs->z_vfs->vfs_mntpoint, dname(dentry));
+           zfsvfs->z_vfs->vfs_mntpoint ? zfsvfs->z_vfs->vfs_mntpoint : "",
+           dname(dentry));

        /*
         * Multiple concurrent automounts of a snapshot are never allowed.



More information about the Pkg-zfsonlinux-devel mailing list