Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage: Robustify btrfs polling #19853

Merged

Conversation

mvollmer
Copy link
Member

It is only a warning when one of the "btrfs" invocations terminates unsuccessfully, and the loop continues with the next volume.

Some failures are expected when polling happens concurrently with removing subvolumes or volumes.

It is only a warning when one of the "btrfs" invocations terminates
unsuccessfully, and the loop continues with the next volume.

Some failures are expected when polling happens concurrently with
removing subvolumes or volumes.
@mvollmer mvollmer requested a review from jelly January 18, 2024 09:50
@jelly jelly added the release-blocker Targetted for next release label Jan 18, 2024
@mvollmer mvollmer marked this pull request as ready for review January 18, 2024 10:42
const m = line.match(/ID (\d+).*parent (\d+).*path (<FS_TREE>\/)?(.*)/);
if (m)
subvols.push({ pathname: m[4], id: Number(m[1]) });
console.warn(`unable to obtain subvolumes for mount point ${mount_point}`, err);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This added line is not executed by any test. Details

const id_match = output.match(/ID (\d+).*/);
if (id_match)
btrfs_default_subvol[uuid] = Number(id_match[1]);
} catch (err) {
console.error(`unable to obtain default subvolume for mount point ${mount_point}`, err);
console.warn(`unable to obtain default subvolume for mount point ${mount_point}`, err);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This added line is not executed by any test. Details

Comment on lines +298 to +299
} catch (err) {
console.warn(`btrfs filesystem show ${uuid}`, err);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These 2 added lines are not executed by any test. Details

Copy link
Member

@jelly jelly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the tests agree!

@mvollmer mvollmer merged commit 2db54da into cockpit-project:main Jan 18, 2024
95 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-blocker Targetted for next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants