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

Fixes mount parameter order in CDH/Storage/OSS #432

Merged
merged 3 commits into from
Jan 12, 2024

Conversation

Xynnn007
Copy link
Member

The previous parameters of the function is not correct, s.t. using source as the target mount path. This commit fixes this.

Also, this commit leverages the async lib to handle filesystem and time operations to avoid blocking.

The last part is that in the previous version, all mount operations will share a same OSSFS_PASSWD_FILE and GOCRYPTFS_PASSWD_FILE path. This means that the operation cannot be idempotent. This is fixed by create a temp directory under /tmp for every mount operation to store those metadata files.

cc @LindaYu17
related to kata-containers/kata-containers#7965

Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
Copy link
Member

@fitzthum fitzthum left a comment

Choose a reason for hiding this comment

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

Nice

The previous parameters of the function is not correct, s.t. using
`source` as the target mount path. This commit fixes this.

Also, this commit leverages the async lib to handle filesystem and time
operations to avoid blocking.

The last part is that in the previous version, all mount operations
will share a same OSSFS_PASSWD_FILE and GOCRYPTFS_PASSWD_FILE path. This
means that the operation cannot be idempotent. This is fixed by create a
temp directory under /tmp for every mount operation to store those
metadata files.

Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
This is a new clippy check item in cargo nightly.
https://rust-lang.github.io/rust-clippy/master/index.html#/useless_vec

Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
@LindaYu17
Copy link
Contributor

lgtm, thanks!

@Xynnn007 Xynnn007 merged commit 1b6c702 into confidential-containers:main Jan 12, 2024
12 checks passed
@Xynnn007 Xynnn007 deleted the refactor-cdh-storage branch January 12, 2024 03:01
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.

3 participants