-
Notifications
You must be signed in to change notification settings - Fork 11
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
Conversation
@james-munson need to execute |
1c245e9
to
f7f62e9
Compare
f7f62e9
to
94a7bed
Compare
@@ -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) {} |
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.
No need the new and old sizes?
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.
That's correct - the fs utility, either resize2fs
or xfs_growfs
recognizes the necessary growth and just does the right thing.
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.
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?
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.
A good question. Shall I write a separate ticket for that? I'd hate to hold this up for it.
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.
Thinking about it again, I think we can skip it for now. We can add them later when we need the new function
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.
In General, LGTM
Signed-off-by: James Munson <[email protected]>
Signed-off-by: James Munson <[email protected]>
94a7bed
to
cffd572
Compare
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