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

feature(rwx): add FilesystemResize method and request #30

Merged
merged 2 commits into from
Nov 23, 2024

Conversation

james-munson
Copy link
Contributor

@james-munson james-munson commented Nov 4, 2024

Which issue(s) this PR fixes:

Issue: longhorn/longhorn#9736 aka longhorn/longhorn#8118

What this PR does / why we need it:

Add an RPC call for FilesystemResize to the share-manager interface.

Special notes for your reviewer:

Additional documentation or context

@derekbit
Copy link
Member

derekbit commented Nov 4, 2024

@james-munson need to execute make generate_grpc to regenerate files

@@ -10,6 +10,7 @@ option go_package = "github.com/longhorn/types/pkg/generated/smrpc";
import "google/protobuf/empty.proto";

service ShareManagerService {
rpc FilesystemResize(google.protobuf.Empty) returns (google.protobuf.Empty) {}
Copy link
Member

Choose a reason for hiding this comment

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

No need the new and old sizes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's correct - the fs utility, either resize2fs or xfs_growfs recognizes the necessary growth and just does the right thing.

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need a method to get the current size of the filesystem inside share manager? Like this one is set method and the new one is get method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A good question. Shall I write a separate ticket for that? I'd hate to hold this up for it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thinking about it again, I think we can skip it for now. We can add them later when we need the new function

@james-munson james-munson requested review from PhanLe1010 and a team November 20, 2024 20:39
@james-munson james-munson self-assigned this Nov 20, 2024
Copy link
Contributor

@PhanLe1010 PhanLe1010 left a comment

Choose a reason for hiding this comment

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

In General, LGTM

@derekbit derekbit merged commit 48c550a into longhorn:main Nov 23, 2024
2 checks passed
@james-munson james-munson deleted the 9736-rwx-resize branch November 25, 2024 18:02
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