Open ociaw opened 8 months ago
I will take a look later this week and cut a new release after fixing it.
I guess it's either make them optional or make a separate Properties type. Both are breaking change. if there is no objections, then I will go with making them optional.
Describe the bug
libzetta panics when reading the properties of snapshots of volumes:
libzetta expects the properties
devices
,exec
,setuid
,xattr
,version
, andcasesensitivity
to exist on every snapshot. However, these properties do not appear on volume snapshots, causing a panic.To Reproduce
Attempt to get the properties of a snapshot without a
devices
property. For example, only the following properties are present on a snapshot of a volume on my pool:Expected behavior
No panic occurs. Unsure if the final solution should simply ignore the missing properties or if a new type (such as
VolumeSnapshotProperties
) should be created, as there are a number of volume-specific properties such asvolblocksize
that are not represented inSnapshotProperties
.Please complete the following information: