Skip to content

ebsnvme-id throws warnings in modern python versions #53

@paulcdejean

Description

@paulcdejean

[fedora@i-0054b4c0f1da1f682 disk]$ ebsnvme-id
/usr/bin/ebsnvme-id:28: DeprecationWarning: Due to 'pack', the 'nvme_admin_command' Structure will use memory layout compatible with MSVC (Windows). If this is intended, set layout to 'ms'. The implicit default is deprecated and slated to become an error in Python 3.19.
class nvme_admin_command(Structure):
/usr/bin/ebsnvme-id:48: DeprecationWarning: Due to 'pack', the 'nvme_identify_controller_amzn_vs' Structure will use memory layout compatible with MSVC (Windows). If this is intended, set layout to 'ms'. The implicit default is deprecated and slated to become an error in Python 3.19.
class nvme_identify_controller_amzn_vs(Structure):
/usr/bin/ebsnvme-id:54: DeprecationWarning: Due to 'pack', the 'nvme_identify_controller_psd' Structure will use memory layout compatible with MSVC (Windows). If this is intended, set layout to 'ms'. The implicit default is deprecated and slated to become an error in Python 3.19.
class nvme_identify_controller_psd(Structure):
/usr/bin/ebsnvme-id:67: DeprecationWarning: Due to 'pack', the 'nvme_identify_controller' Structure will use memory layout compatible with MSVC (Windows). If this is intended, set layout to 'ms'. The implicit default is deprecated and slated to become an error in Python 3.19.
class nvme_identify_controller(Structure):
usage: ebsnvme-id [-h] [-v] [-b] [-u] device

Reads EBS information from NVMe devices.

positional arguments:
device Device to query

options:
-h, --help show this help message and exit

Display Options:
-v, --volume Return volume-id
-b, --block-dev Return block device mapping
-u, --udev Output data in format suitable for udev rules
[fedora@i-0054b4c0f1da1f682 disk]$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions