-
Notifications
You must be signed in to change notification settings - Fork 421
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 for key_file fstab option #182
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,6 +86,14 @@ func makeGcsfuseArgs( | |
"--"+strings.Replace(name, "_", "-", -1), | ||
) | ||
|
||
// Special case: support mount-like formatting for gcsfuse string flags. | ||
case "key_file": | ||
args = append( | ||
args, | ||
"--"+strings.Replace(name, "_", "-", -1), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please run gofmt. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did. Double-checked that now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My apologies, I had misjudged what gofmt would do here. Thanks! |
||
value, | ||
) | ||
|
||
// Special case: support mount-like formatting for gcsfuse string flags. | ||
case "dir_mode", "file_mode": | ||
args = append( | ||
|
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.
Could you touch up the wording here a bit (and drop the references to OS X and Linux, since these are the only systems we support)? Probably:
When mounting with an fstab entry, you can use the
key_file
option. For example: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.
Well, good point. My comment was based on the existing last note of this file though:
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.
Ah you're right. In that case, could you actually move this information to the fstab section of this file? So it says something like
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.
Sure thing.