]> git.proxmox.com Git - pve-storage.git/commitdiff
api: scan: note that USB is depreacated
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 2 Dec 2020 10:31:03 +0000 (11:31 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 2 Dec 2020 10:31:06 +0000 (11:31 +0100)
It now got moved in /nodes/<node>/hardware/usb as envisioned[0], this
allows to sunset the usb scan API endpoint here and drop it with 7.0

[0]: https://lists.proxmox.com/pipermail/pve-devel/2018-November/034694.html

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Storage/Scan.pm

index 76fbd812dfa21112ec27f2f38fa3f94bc1196cf7..15b39b50eb76a284797a73750fd7adf343dd8514 100644 (file)
@@ -48,6 +48,7 @@ __PACKAGE__->register_method({
            { method => 'lvm' },
            { method => 'nfs' },
            { method => 'pbs' },
+           # FIXME: remove with 7.0 (replaced by /nodes/<node>/hardware/usb)
            { method => 'usb' },
            { method => 'zfs' },
        ];
@@ -447,6 +448,7 @@ __PACKAGE__->register_method({
        return PVE::Storage::scan_zfs();
     }});
 
+# FIXME: remove with 7.0 (replaced by /nodes/<node>/hardware/usb)
 __PACKAGE__->register_method({
     name => 'usbscan',
     path => 'usb',