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

Support fstab mount with hyphens #1993

Merged
merged 10 commits into from
Jun 19, 2024
Merged

Support fstab mount with hyphens #1993

merged 10 commits into from
Jun 19, 2024

Conversation

ashmeenkaur
Copy link
Collaborator

@ashmeenkaur ashmeenkaur commented Jun 10, 2024

Description

GCSFuse persistent mounting does not allow inherent GCSFuse flags with hyphens '-'. This PR adds support for hyphens '-' in GCSFuse persistent mount with the backward compatibility of supporting underscores "_".
This PR also adds missing flags to the persistent mounting binary.

Link to the issue in case of a bug fix.

NA

Testing details

  1. Manual - Manually verified that the persistent mounting works with underscore and hyphen using the following mount commands:
  • By using mount -t command.
  • By adding an entry to /etc/fstab file and then running mount -a.
  • By building mount_gcsfuse binary and using it for mounting.
  1. Unit tests - Added
  2. Integration tests - Ran via KOKORO

@ashmeenkaur ashmeenkaur added the execute-integration-tests Run only integration tests label Jun 10, 2024
Copy link

codecov bot commented Jun 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.62%. Comparing base (9cfb931) to head (971da8f).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1993      +/-   ##
==========================================
+ Coverage   73.56%   73.62%   +0.06%     
==========================================
  Files          97       97              
  Lines       10382    10382              
==========================================
+ Hits         7637     7644       +7     
+ Misses       2406     2400       -6     
+ Partials      339      338       -1     
Flag Coverage Δ
unittests 73.62% <ø> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ashmeenkaur ashmeenkaur changed the title Support fstab mount Support fstab mount with hyphens Jun 11, 2024
@ashmeenkaur ashmeenkaur marked this pull request as ready for review June 11, 2024 09:14
@ashmeenkaur ashmeenkaur requested a review from a team as a code owner June 11, 2024 09:14
tools/config-gen/config.tpl Outdated Show resolved Hide resolved
tools/mount_gcsfuse/main.go Outdated Show resolved Hide resolved
tools/mount_gcsfuse/main_test.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@kislaykishore kislaykishore left a comment

Choose a reason for hiding this comment

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

LGTM. Just some nits.

tools/mount_gcsfuse/main.go Outdated Show resolved Hide resolved
tools/mount_gcsfuse/main_test.go Outdated Show resolved Hide resolved
tools/mount_gcsfuse/main_test.go Outdated Show resolved Hide resolved
tools/mount_gcsfuse/main_test.go Outdated Show resolved Hide resolved
tools/mount_gcsfuse/main.go Outdated Show resolved Hide resolved
@ashmeenkaur ashmeenkaur requested review from sethiay and removed request for vadlakondaswetha June 13, 2024 11:32
tools/mount_gcsfuse/main.go Show resolved Hide resolved
@sethiay sethiay self-requested a review June 18, 2024 14:56
@ashmeenkaur ashmeenkaur merged commit 5eaf517 into master Jun 19, 2024
12 checks passed
@ashmeenkaur ashmeenkaur deleted the support_fstab_mount branch June 19, 2024 08:26
vadlakondaswetha pushed a commit that referenced this pull request Jul 31, 2024
Support fstab mount with hyphens (#1993)

* add normalise function for fstab flags

* allow passing gcsfuse hyphen flags in persistent mount

* add missing flags

* revert normalisation changes as it is not required

* fix typo

* add unit test

* review comments

* review comments

* review comments

* Prefix grpc_conn_pool_size with "experimental_"

---------

Co-authored-by: Kislay Kishore <kislayk@google.com>
@vadlakondaswetha vadlakondaswetha mentioned this pull request Jul 31, 2024
vadlakondaswetha added a commit that referenced this pull request Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
execute-integration-tests Run only integration tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants