-
Notifications
You must be signed in to change notification settings - Fork 35
Implement mounting and unmounting snapshots #2109
Conversation
(filesystem_name, snapshot_name): (String, String), | ||
) -> Result<(), ImlAgentError> { | ||
let args = &[ | ||
"snapshot_umount", |
There was a problem hiding this comment.
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) :)
There was a problem hiding this comment.
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
There was a problem hiding this 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.
2ef3f43
to
87cf2be
Compare
The base branch was changed.
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 { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Signed-off-by: Michael Pankov work@michaelpankov.com
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)