Skip to content

Conversation

@inevity
Copy link
Contributor

@inevity inevity commented Nov 1, 2017

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)"

@inevity
Copy link
Contributor Author

inevity commented Nov 1, 2017

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
Copy link
Owner

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
Copy link
Owner

Choose a reason for hiding this comment

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

Please name this Subtype.

Copy link
Contributor Author

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'?

Copy link
Owner

@jacobsa jacobsa left a 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

Copy link
Owner

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.

Copy link
Contributor Author

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
Copy link
Owner

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
Copy link
Owner

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.

@inevity inevity force-pushed the mountsubtype branch 3 times, most recently from cd9af56 to eba79bc Compare November 2, 2017 01:53
@inevity
Copy link
Contributor Author

inevity commented Nov 3, 2017

Have amended.

@jacobsa jacobsa merged commit 88e3bc5 into jacobsa:master Nov 3, 2017
@inevity inevity deleted the mountsubtype branch November 3, 2017 05:27
@inevity inevity restored the mountsubtype branch November 3, 2017 05:27
@inevity inevity deleted the mountsubtype branch November 3, 2017 05:36
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.

2 participants