The btrfs_get_subvol_id() function is broken, because the btrfs 'subvol show' command is invoked with '-q', so there is no output.
The function currently has no reachable caller. Signed-off-by: Fiona Ebner <f.eb...@proxmox.com> --- src/PVE/Storage/BTRFSPlugin.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PVE/Storage/BTRFSPlugin.pm b/src/PVE/Storage/BTRFSPlugin.pm index db678cf..e20b36c 100644 --- a/src/PVE/Storage/BTRFSPlugin.pm +++ b/src/PVE/Storage/BTRFSPlugin.pm @@ -232,6 +232,7 @@ sub btrfs_cmd { return $msg; } +# NOTE: this function is currently boken, because btrfs_cmd uses '-q' so there will be no output. sub btrfs_get_subvol_id { my ($class, $path) = @_; my $info = $class->btrfs_cmd(['subvolume', 'show', '--', $path]); -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel