-
Notifications
You must be signed in to change notification settings - Fork 67
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 filesystem magic for linux #239
Conversation
fs/magic_linux.go
Outdated
) | ||
|
||
// GetFSMagic returns the filesystem id given the path. | ||
func GetFSMagic(rootpath string) (FsMagic, error) { |
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.
func GetFSMagic(rootpath string) (FsMagic, error) { | |
func GetFsMagic(rootPath string) (FsMagic, error) { |
*/ | ||
|
||
/* | ||
Copyright 2013-2018 Docker, Inc. |
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 add a permanent link to the original file
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.
done
2344e2b
to
a87d007
Compare
fs/magic_linux.go
Outdated
limitations under the License. | ||
*/ | ||
|
||
// Original source: https://github.com/moby/moby/blob/master/daemon/graphdriver/driver_linux.go |
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 replace "master" with the actual version
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.
done
Signed-off-by: Yang Yang <yang8518296@163.com>
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.
Thanks
Related to containerd/containerd#5859
File filesystem magic number is general operation, so it is placed here.