-
Notifications
You must be signed in to change notification settings - Fork 117
add fuse mount subtype to mountconfig #34
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
Conversation
|
gluster example,kernel:myvolume on /mnt/gluster type fuse.glusterfs (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,max_read=131072) |
mount_config.go
Outdated
| // documentation for this package. | ||
| Options map[string]string | ||
|
|
||
| SubType string |
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.
Please add documentation. Something like:
// The subtype to report for the file system, reflected in e.g. mount(8), which will report the type as "fuse.<subtype>".
mount_config.go
Outdated
| // documentation for this package. | ||
| Options map[string]string | ||
|
|
||
| SubType string |
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.
Please name this Subtype.
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.
What do you mean about 'name this Subytpe'?
jacobsa
left a comment
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.
I mean please name the field "Subtype", not "SubType".
mount_config.go
Outdated
| // Sets the filesystem type (third field in /etc/mtab). /etc/mtab and | ||
| // /proc/mounts will show the filesystem type as fuse.SubType. | ||
| // If not set ,/proc/mounts will show the filesystem type as fuse/fuseblk | ||
|
|
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.
This empty line shouldn't be here.
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.
Thank your review. I will modify those.
mount_config.go
Outdated
|
|
||
| // Sets the filesystem type (third field in /etc/mtab). /etc/mtab and | ||
| // /proc/mounts will show the filesystem type as fuse.SubType. | ||
| // If not set ,/proc/mounts will show the filesystem type as fuse/fuseblk |
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.
s/set ,/set, /
mount_config.go
Outdated
|
|
||
| // Sets the filesystem type (third field in /etc/mtab). /etc/mtab and | ||
| // /proc/mounts will show the filesystem type as fuse.SubType. | ||
| // If not set ,/proc/mounts will show the filesystem type as fuse/fuseblk |
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.
Full stop (".") after fuse/fuseblk.
cd9af56 to
eba79bc
Compare
|
Have amended. |
when want to mount jacobsa based filesystem,
we can use command like " mount -t goofys -o allow_other,debug http://cs6:6081:newbucket9 /mnt/s3
"
when mounted,the cmd mount will be "http://127.0.0.1:8080:goofys-test-terrrr on /mnt/s3 type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions)
"
If not set subtype value by filesystem goofys,the output will be that the type is fuse.
If set subtype value as goofys by filesystem goofys. the output will be "http://127.0.0.1:8080:goofys-test-terrrr on /mnt/s3 type fuse.goofys (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions)"