[pkg-cryptsetup-devel] Bug#902449: cryptsetup-initramfs: auto-detection of zfs pool(s)

Michal Humpula debian at hudrydum.cz
Thu Jul 5 10:05:08 BST 2018


> Since ZFS doesn't expose a block device one would need another
> documented way to resolve /sys/fs/zfs/$FS.  Hopefully ‘tank/my/fs’ is
> unique and can't be aliased to something else, can it?

> Do the slash characters in ‘tank/my/fs’ hint at a hierarchy, or is it a
> flat string?

It's unique and designates the ZFS specific fs instance which is hierarchical. 
First level is the zpool name. As far as I know btrfs has something similar 
with subvolumes. Below is an example of zfs list

NAME                       USED  AVAIL  REFER  MOUNTPOINT
tank                      2,45T   189G   120K  /tank
tank/backup               75,8G   189G   136K  /tank/backup
tank/data                 1,91T   189G  1,83T  /tank/data
tank/home                  122G   189G  42,2G  /home
tank/root                  148G   189G  13,9G  /

So, thanks for hints. I will try to inspect what the zfs upstream thinks about 
this.



More information about the pkg-cryptsetup-devel mailing list