Documentation
¶
Overview ¶
Package fuse provides a client for the FUSE (Filesystem in Userspace) protocol.
Index ¶
Constants ¶
View Source
const DefaultConnectionsDir = "/sys/fs/fuse/connections"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionInfo ¶
type ConnectionInfo struct { // The device number of the connection. // The process and mount information can be found in the corresponding "mountinfo" file // at "/proc/[process id]/mountinfo". // e.g., // "1573 899 0:53 / /mnt/remote-volume/dev rw,nosuid,nodev,relatime shared:697 - fuse.testfs TestFS:test" Device int `json:"device"` // Fstype is the filesystem type of the connection. // Derived from "/proc/self/mountinfo". Fstype string `json:"fstype"` // DeviceName is the device name of the connection. // Derived from "/proc/self/mountinfo". DeviceName string `json:"device_name"` CongestionThreshold int `json:"congestion_threshold"` // CongestedPercent is the percentage of the congestion threshold that is congested // based on the waiting value. CongestedPercent float64 `json:"congested_percent"` MaxBackground int `json:"max_background"` // MaxBackgroundPercent is the percentage of the max background that is used // based on the waiting value. MaxBackgroundPercent float64 `json:"max_background_percent"` // The number of requests which are waiting to be transferred to // userspace or being processed by the filesystem daemon. If there is // no filesystem activity and 'waiting' is non-zero, then the // filesystem is hung or deadlocked. Waiting int `json:"waiting"` }
Represents the information about a FUSE connection. ref. https://www.kernel.org/doc/Documentation/filesystems/fuse.txt
func (ConnectionInfo) JSON ¶ added in v0.4.0
func (info ConnectionInfo) JSON() ([]byte, error)
type ConnectionInfos ¶
type ConnectionInfos []ConnectionInfo
func ListConnections ¶
func ListConnections() (ConnectionInfos, error)
ListConnections retrieves the connection information for all FUSE connections.
func (ConnectionInfos) RenderTable ¶
func (infos ConnectionInfos) RenderTable(wr io.Writer)
Click to show internal directories.
Click to hide internal directories.