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

zfs_fs: support updating mountpoint properly #762

Merged
merged 3 commits into from
Sep 17, 2024

Conversation

Enzime
Copy link
Member

@Enzime Enzime commented Sep 9, 2024

Use zfs set -u to update the mountpoint flag without mounting or unmounting the filesystem. This flag was added in OpenZFS 2.2.0, which was released October 2023.

The previous logic would not update mountpoint if config.options was empty or only contained mountpoint.

@Enzime
Copy link
Member Author

Enzime commented Sep 9, 2024

@iFreilicht could you test if this change works on your system?

@Mic92 @Lassulus now that _create is idempotent, is it meant to be run online (with your disks already mounted) or offline?

@Mic92
Copy link
Member

Mic92 commented Sep 9, 2024

@iFreilicht could you test if this change works on your system?

@Mic92 @Lassulus now that _create is idempotent, is it meant to be run online (with your disks already mounted) or offline?

It's meant to run from a installer or in-memory system that doesn't depend on the disks. However ideally it could also unmount disks as needed to perform the operation.

@iFreilicht
Copy link
Contributor

@iFreilicht could you test if this change works on your system?

Don't have access right now, will do next week. Feel free to ping me again if I didn't reply by next Wednesday.

@Enzime
Copy link
Member Author

Enzime commented Sep 9, 2024

@iFreilicht out of curiosity, were you running the format script on an online machine or an offline one?

@iFreilicht
Copy link
Contributor

I ran on an online system if by online you mean "already installed and with drives mounted".

@Enzime Enzime force-pushed the zfs-set-mountpoint branch 2 times, most recently from 75870f2 to 692ac92 Compare September 15, 2024 09:25
@Enzime
Copy link
Member Author

Enzime commented Sep 15, 2024

@Mic92 any idea why make-disk-image and make-disk-image-impure are failing in Buildbot? They succeed locally and there shouldn't be any changes in this PR compared to master

@Mic92
Copy link
Member

Mic92 commented Sep 15, 2024

@Enzime they seem to succeed now, but .#checks.x86_64-linux.zfs-with-vdevs fails. Does this work for your locally?

@Enzime
Copy link
Member Author

Enzime commented Sep 15, 2024

@Mic92 yeah that check succeeds locally for me

Use `zfs set -u` to update the `mountpoint` flag without mounting or
unmounting the filesystem. This flag was added in OpenZFS 2.2.0, which
was released October 2023.

The previous logic would not update `mountpoint` if `config.options` was
empty or only contained `mountpoint`.
@Enzime
Copy link
Member Author

Enzime commented Sep 15, 2024

@Mic92 is there a way to trigger it to run again? I'm wondering if it's a flaky test

@Lassulus
Copy link
Collaborator

I can login into buildbot with github on the overview and then retrigger it, but maybe that's one of my undocumented superpowers I forgot about

@Mic92
Copy link
Member

Mic92 commented Sep 17, 2024

We just need to invite you to the nix-community org and then you can trigger rebuilds

@Mic92
Copy link
Member

Mic92 commented Sep 17, 2024

Invite sent.

@Enzime
Copy link
Member Author

Enzime commented Sep 17, 2024

@mergify queue

Copy link
Contributor

mergify bot commented Sep 17, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at d32d150

@mergify mergify bot merged commit d32d150 into nix-community:master Sep 17, 2024
4 checks passed
@Enzime Enzime deleted the zfs-set-mountpoint branch September 17, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants