.\" Automatically generated by Pandoc 2.9.2.1 .\" .TH "STATFS" "1" "Sep 2019" "" "" .hy .SH NAME .PP statfs - dump the statfs(2) information for PATH to console in JSON format. .SH SYNOPSIS .PP statfs PATH .SH DESCRIPTION .PP The statfs(2) system call returns information about a mounted filesystem in a \f[C]statfs_t\f[R] structure. This tool dumps this information in JSON format. It is developed as part of gocryptfs and written in Go. .PP The \f[C]statfs_t\f[R] structure is architecture-dependent. On amd64 it looks like this: .IP .nf \f[C] type Statfs_t struct { Type int64 Bsize int64 Blocks uint64 Bfree uint64 Bavail uint64 Files uint64 Ffree uint64 Fsid struct { Val [2]int32 } Namelen int64 Frsize int64 Flags int64 Spare [4]int64 } \f[R] .fi .PP See the statfs(2) man page for the meaning of these fields, and note that the field names here are acc. to the Go \f[C]golang.org/x/sys/unix\f[R] naming convention, and slightly different than in C. .SH EXAMPLES .PP Get the statfs(2) information for /tmp: .IP .nf \f[C] $ statfs /tmp { \[dq]Type\[dq]: 16914836, \[dq]Bsize\[dq]: 4096, \[dq]Blocks\[dq]: 3067428, \[dq]Bfree\[dq]: 3067411, \[dq]Bavail\[dq]: 3067411, \[dq]Files\[dq]: 3067428, \[dq]Ffree\[dq]: 3067381, \[dq]Fsid\[dq]: { \[dq]Val\[dq]: [ 0, 0 ] }, \[dq]Namelen\[dq]: 255, \[dq]Frsize\[dq]: 4096, \[dq]Flags\[dq]: 38, \[dq]Spare\[dq]: [ 0, 0, 0, 0 ] } \f[R] .fi .SH SEE ALSO .PP statfs(2) gocryptfs(1) .SH AUTHORS github.com/rfjakob.