{%- set chip_copy = {"rw": "writable", "ro": "read-only", "unmounted": "unmounted", "error": "error"} -%} {%- set action_labels = {"mount": "Make writable", "unmount": "Unmount", "eject": "Eject"} -%} {%- set ns = namespace(volume=None) -%} {%- for candidate in state.volumes -%} {%- if candidate.id == selected -%}{%- set ns.volume = candidate -%}{%- endif -%} {%- endfor -%} {%- set volume = ns.volume -%}
{% if not volume %}

Select a drive to see its actions.

{% else %} ← All drives

{{ volume.label or "Untitled volume" }}

{{ chip_copy.get(volume.state, volume.state) }}

{{ volume.device }} {% if volume.size >= 1000000000000 %}{{ "%.1f"|format(volume.size / 1000000000000) }} TB{% elif volume.size >= 1000000000 %}{{ "%.1f"|format(volume.size / 1000000000) }} GB{% elif volume.size >= 1000000 %}{{ "%.1f"|format(volume.size / 1000000) }} MB{% else %}{{ volume.size }} B{% endif %} {% if volume.uuid %}UUID {{ volume.uuid }}{% endif %} {% if volume.mount_point %}mounted at {{ volume.mount_point }}{% else %}not mounted{% endif %} {% if volume.driver %}{{ volume.driver }}{% if volume.pid %}, pid {{ volume.pid }}{% endif %}{% endif %}

{% if error %} {% endif %}
Working…{% if state.operation %}: {{ state.operation.action }} {{ state.operation.volume }}{% endif %}
{% if volume.actions %}
{% for action in volume.actions %} {% set reason_id = "reason-" ~ action.name %}
{% if volume.size is not none %}{% endif %} {% if action.reason %}{{ action.reason }}{% endif %}
{% endfor %}
{% endif %} {% if volume.options %}
Advanced
{% for option in volume.options %} {% if option.name == "remove_hiberfile" %}
{% if option.reason %}

{{ option.reason }}

{% endif %}
{% elif option.name == "recover" %}
{% if volume.size is not none %}{% endif %} {% if option.reason %}{{ option.reason }}{% endif %}
{% endif %} {% endfor %}
{% endif %} {% include "_activity.html" %} {% endif %}
{% if oob %} {% include "_doctor_status.html" %} {% include "_doctor_banners.html" %} {% endif %}