Age | Commit message (Collapse) | Author |
|
This commit adds support for DragonFly BSD, FreeBSD and OpenBSD to the
internal/helper/fstype package and fixes the implementation on Darwin.
On each of these platforms, fstype.FileSystem will call statfs(2) and
use the f_fstypename member of struct statfs to determine the file
system type. Unfortunately, the Go wrapper for this struct uses
differently named fields on OpenBSD and the other supported systems. For
this reason, a separate implementation for OpenBSD is included.
|
|
On for example ARMv6 this syscall will return an int32 instead of an
int64. By explicitly casting this would still work as Golangs type
inferencer will work in both occasions.
Closes https://gitlab.com/gitlab-org/gitaly/issues/1726
|
|
Allowing GitLab to detect NFS requires a statfs syscall and remapping
that value to a string value. For the `MAGIC` numbers, as found in `man
2 statfs`, the names are mapped as mentioned there. The only exceptions
are the EXT values, as these had duplicate keys.
Part of: https://gitlab.com/gitlab-org/gitlab-ce/issues/60602
|