github.com/demonoid81/containerd@v1.3.4/mount/mountinfo.go (about)

     1  /*
     2     Copyright The containerd Authors.
     3  
     4     Licensed under the Apache License, Version 2.0 (the "License");
     5     you may not use this file except in compliance with the License.
     6     You may obtain a copy of the License at
     7  
     8         http://www.apache.org/licenses/LICENSE-2.0
     9  
    10     Unless required by applicable law or agreed to in writing, software
    11     distributed under the License is distributed on an "AS IS" BASIS,
    12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13     See the License for the specific language governing permissions and
    14     limitations under the License.
    15  */
    16  
    17  package mount
    18  
    19  // Info reveals information about a particular mounted filesystem. This
    20  // struct is populated from the content in the /proc/<pid>/mountinfo file.
    21  type Info struct {
    22  	// ID is a unique identifier of the mount (may be reused after umount).
    23  	ID int
    24  
    25  	// Parent indicates the ID of the mount parent (or of self for the top of the
    26  	// mount tree).
    27  	Parent int
    28  
    29  	// Major indicates one half of the device ID which identifies the device class.
    30  	Major int
    31  
    32  	// Minor indicates one half of the device ID which identifies a specific
    33  	// instance of device.
    34  	Minor int
    35  
    36  	// Root of the mount within the filesystem.
    37  	Root string
    38  
    39  	// Mountpoint indicates the mount point relative to the process's root.
    40  	Mountpoint string
    41  
    42  	// Options represents mount-specific options.
    43  	Options string
    44  
    45  	// Optional represents optional fields.
    46  	Optional string
    47  
    48  	// FSType indicates the type of filesystem, such as EXT3.
    49  	FSType string
    50  
    51  	// Source indicates filesystem specific information or "none".
    52  	Source string
    53  
    54  	// VFSOptions represents per super block options.
    55  	VFSOptions string
    56  }