Skip to content

Synchronise zed with upstream#181

Open
github-actions[bot] wants to merge 1 commit intostackhpc/zedfrom
upstream/zed-2026-04-06
Open

Synchronise zed with upstream#181
github-actions[bot] wants to merge 1 commit intostackhpc/zedfrom
upstream/zed-2026-04-06

Conversation

@github-actions
Copy link
Copy Markdown

@github-actions github-actions bot commented Apr 6, 2026

This PR contains a snapshot of zed from upstream unmaintained/zed.

The _create_ephemeral() method is responsible for creating ephemeral
disks with image type "raw" and formatting them with mkfs. In the case
of [libvirt]images_type "qcow2", _create_ephemeral() will create
backing files.

Currently we are not using a consistent naming convention for choosing
the filesystem label for ephemeral disks. When we create a server for
example, we go through the disks and label them "ephemeral0",
"ephemeral1", "ephemeral2", etc.

When we hard reboot a server, there is a check to create missing
backing files and if so, a new backing file will be created but instead
of being labeled "ephemeralN" the code attempts to label them with the
name of the backing file itself for example "ephemeral_1_40d1d2c". This
will fail if the filesystem used for ephemeral disks has limitations on
the length of filesystem label names (VFAT, XFS, ...). For example:

  mkfs.vfat: Label can be no longer than 11 characters

This adds a helper method for obtaining ephemeral disks filesystem
label names and uses it the same way in the few places fs_label is
specified.

Closes-Bug: #2061701

Change-Id: Id033a5760272e4fb06dee2342414b26aa16ffe24
(cherry picked from commit 82856f9)
(cherry picked from commit 09fc2fa)
(cherry picked from commit 2fd65bd)
Signed-off-by: Pierre Riteau <pierre@stackhpc.com>
(cherry picked from commit d6cdd73)
(cherry picked from commit 911cc31)
@github-actions github-actions bot added automated Automated action performed by GitHub Actions synchronisation labels Apr 6, 2026
@github-actions github-actions bot requested a review from a team as a code owner April 6, 2026 06:53
@priteau priteau closed this Apr 6, 2026
@priteau priteau reopened this Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated Automated action performed by GitHub Actions synchronisation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants