mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
5ed3fdff8f
Bumps [github.com/moby/sys/mountinfo](https://github.com/moby/sys) from 0.6.1 to 0.6.2. - [Release notes](https://github.com/moby/sys/releases) - [Commits](https://github.com/moby/sys/compare/mountinfo/v0.6.1...mountinfo/v0.6.2) --- updated-dependencies: - dependency-name: github.com/moby/sys/mountinfo dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
12 lines
302 B
Go
12 lines
302 B
Go
package mountinfo
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
func getMountinfo(entry *unix.Statfs_t) *Info {
|
|
return &Info{
|
|
Mountpoint: unix.ByteSliceToString(entry.F_mntonname[:]),
|
|
FSType: unix.ByteSliceToString(entry.F_fstypename[:]),
|
|
Source: unix.ByteSliceToString(entry.F_mntfromname[:]),
|
|
}
|
|
}
|