Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Implement mounting and unmounting snapshots #2109

Merged
merged 7 commits into from
Jul 30, 2020
Merged

Implement mounting and unmounting snapshots #2109

merged 7 commits into from
Jul 30, 2020

Conversation

mkpankov
Copy link
Contributor

@mkpankov mkpankov commented Jul 28, 2020

Signed-off-by: Michael Pankov work@michaelpankov.com


This change is Reviewable

@mkpankov mkpankov requested a review from a team July 28, 2020 10:37
@mkpankov mkpankov self-assigned this Jul 28, 2020
@mkpankov mkpankov added this to the IML EX V3 milestone Jul 28, 2020
iml-agent/src/cli.rs Outdated Show resolved Hide resolved
(filesystem_name, snapshot_name): (String, String),
) -> Result<(), ImlAgentError> {
let args = &[
"snapshot_umount",
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we should stick to the lctl naming (umount/unmount) :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't want these Unixy 1-letter contractions in our code to be honest

jgrund
jgrund previously approved these changes Jul 28, 2020
Copy link
Member

@jgrund jgrund left a comment

Choose a reason for hiding this comment

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

LGTM, pending tests pass and dependant patch lands first.

@jgrund jgrund requested a review from ip1981 July 28, 2020 14:58
johnsonw
johnsonw previously approved these changes Jul 28, 2020
ip1981
ip1981 previously approved these changes Jul 28, 2020
@ip1981 ip1981 force-pushed the ip1981/ex-1468-snapshots branch 2 times, most recently from 2ef3f43 to 87cf2be Compare July 28, 2020 19:47
Base automatically changed from ip1981/ex-1468-snapshots to master July 29, 2020 12:15
@jgrund jgrund dismissed stale reviews from ip1981, johnsonw, and themself July 29, 2020 12:15

The base branch was changed.

@jgrund
Copy link
Member

jgrund commented Jul 29, 2020

This patch has conflicts with master

Signed-off-by: Michael Pankov <work@michaelpankov.com>
Signed-off-by: Michael Pankov <work@michaelpankov.com>
Signed-off-by: Michael Pankov <work@michaelpankov.com>
Signed-off-by: Michael Pankov <work@michaelpankov.com>
Signed-off-by: Michael Pankov <work@michaelpankov.com>
Signed-off-by: Michael Pankov <work@michaelpankov.com>
Signed-off-by: Michael Pankov <work@michaelpankov.com>
#[derive(serde::Deserialize, Debug)]
#[cfg_attr(feature = "cli", derive(StructOpt))]
/// Ask agent to unmount the snapshot
pub struct Unmount {
Copy link
Member

Choose a reason for hiding this comment

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

Btw, I was already thinking that simple tuple was good :) At least the same structure could be used for both mounting and unmounting.

Copy link
Member

Choose a reason for hiding this comment

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

Tuple is good, but would need to be a tuple struct. The value here is being able to have the caller break at compile time if this changes.

@jgrund jgrund merged commit 5e39921 into master Jul 30, 2020
@jgrund jgrund deleted the mount branch July 30, 2020 13:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants