You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libzetta panics when reading the properties of snapshots of volumes:
thread 'main' panicked at /home/username/.cargo/git/checkouts/libzetta-rs-2c006bbd2fc21a39/7191a10/src/zfs/open3.rs:493:45:
Failed to build properties: UninitializedField("devices")
libzetta expects the properties devices, exec, setuid, xattr, version, and casesensitivity 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:
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 as volblocksize that are not represented in SnapshotProperties.
Please complete the following information:
OS: Fedora 39
ZFS version: 2.2.3
libZetta version: v0.5.0
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: