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

[disk][linux] flag bind mounts #955

Merged
merged 1 commit into from Oct 11, 2020
Merged

Conversation

tmm1
Copy link
Contributor

@tmm1 tmm1 commented Oct 7, 2020

possible solution to #954

@@ -283,6 +283,14 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro
mountPoint := fields[4]
mountOpts := fields[5]

if rootDir := fields[3]; rootDir != "" && rootDir != "/" {
if len(mountOpts) == 0 {
Copy link
Owner

Choose a reason for hiding this comment

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

👍 mountOpts is just a string, so this is fastest way (mountOpts should be a list, not string, though).

@shirou
Copy link
Owner

shirou commented Oct 11, 2020

Good catch! I can confirm it can detect and add 'bind' to Opts in Ubuntu 20.04. Thank you.

@shirou shirou merged commit 7144fe3 into shirou:master Oct 11, 2020
@shirou shirou mentioned this pull request Oct 11, 2020
14 tasks
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.

None yet

2 participants