Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for mountInfo (0.05 sec)

  1. internal/mountinfo/mountinfo.go

    package mountinfo
    
    // mountInfo - This represents a single line in /proc/mounts.
    type mountInfo struct {
    	Device  string
    	Path    string
    	FSType  string
    	Options []string
    	Freq    string
    	Pass    string
    }
    
    func (m mountInfo) String() string {
    	return m.Path
    }
    
    // mountInfos - This represents the entire /proc/mounts.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  2. internal/mountinfo/mountinfo_linux_test.go

    		}
    		mp = mountInfo{"/dev/1", "/path/to/1", "type1", []string{"flags"}, "1", "1"}
    		if !mountPointsEqual(mounts[1], mp) {
    			t.Errorf("got unexpected mountInfo[1]: %#v", mounts[1])
    		}
    		mp = mountInfo{"/dev/2", "/path/to/2", "type2", []string{"flags", "1", "2=3"}, "2", "2"}
    		if !mountPointsEqual(mounts[2], mp) {
    			t.Errorf("got unexpected mountInfo[2]: %#v", mounts[2])
    		}
    	}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. docs/debugging/reorder-disks/main.go

    	result := make(map[string]string)
    
    	mountInfo, err := os.Open("/proc/self/mountinfo")
    	if err != nil {
    		return nil, err
    	}
    	defer mountInfo.Close()
    
    	scanner := bufio.NewScanner(mountInfo)
    	for scanner.Scan() {
    		s := strings.Split(scanner.Text(), " ")
    		if len(s) != 11 {
    			return nil, errors.New("unsupported /proc/self/mountinfo format")
    		}
    		result[s[2]] = s[9]
    	}
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. internal/mountinfo/mountinfo_linux.go

    func readProcMounts(mountFilePath string) (mountInfos, error) {
    	file, err := os.Open(mountFilePath)
    	if err != nil {
    		return nil, err
    	}
    	defer file.Close()
    	return parseMountFrom(file)
    }
    
    func parseMountFrom(file io.Reader) (mountInfos, error) {
    	mounts := mountInfos{}
    	scanner := bufio.NewReader(file)
    	for {
    		line, err := scanner.ReadString('\n')
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  5. internal/mountinfo/mountinfo_others.go

    // GNU Affero General Public License for more details.
    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package mountinfo
    
    // CheckCrossDevice - check if any input path has multiple sub-mounts.
    // this is a dummy function and returns nil for now.
    func CheckCrossDevice(paths []string) error {
    	return nil
    }
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  6. internal/mountinfo/mountinfo_windows.go

    // GNU Affero General Public License for more details.
    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package mountinfo
    
    import (
    	"path/filepath"
    	"sync"
    
    	"golang.org/x/sys/windows"
    )
    
    // CheckCrossDevice - check if any input path has multiple sub-mounts.
    // this is a dummy function and returns nil for now.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  7. cmd/endpoint.go

    	"strings"
    	"time"
    
    	"github.com/dustin/go-humanize"
    	"github.com/minio/minio-go/v7/pkg/set"
    	"github.com/minio/minio/internal/config"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/minio/internal/mountinfo"
    	"github.com/minio/pkg/v3/env"
    	xnet "github.com/minio/pkg/v3/net"
    )
    
    // EndpointType - enum for endpoint type.
    type EndpointType int
    
    const (
    	// PathEndpointType - path style endpoint type enum.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 34.5K bytes
    - Viewed (0)
  8. CHANGELOG/CHANGELOG-1.32.md

    - github.com/moby/spdystream: [v0.4.0 → v0.5.0](https://github.com/moby/spdystream/compare/v0.4.0...v0.5.0)
    - github.com/moby/sys/mountinfo: [v0.7.1 → v0.7.2](https://github.com/moby/sys/compare/mountinfo/v0.7.1...mountinfo/v0.7.2)
    - github.com/mohae/deepcopy: [491d360 → c48cc78](https://github.com/mohae/deepcopy/compare/491d360...c48cc78)
    Registered: Fri Dec 26 09:05:12 UTC 2025
    - Last Modified: Tue Dec 16 18:27:41 UTC 2025
    - 448.1K bytes
    - Viewed (0)
  9. CHANGELOG/CHANGELOG-1.21.md

    - github.com/kr/pretty: [v0.2.0 → v0.2.1](https://github.com/kr/pretty/compare/v0.2.0...v0.2.1)
    - github.com/moby/sys/mountinfo: [v0.4.0 → v0.4.1](https://github.com/moby/sys/mountinfo/compare/v0.4.0...v0.4.1)
    - github.com/opencontainers/runc: [v1.0.0-rc93 → v1.0.0-rc95](https://github.com/opencontainers/runc/compare/v1.0.0-rc93...v1.0.0-rc95)
    Registered: Fri Dec 26 09:05:12 UTC 2025
    - Last Modified: Fri Oct 14 07:03:14 UTC 2022
    - 367.3K bytes
    - Viewed (0)
  10. CHANGELOG/CHANGELOG-1.31.md

    - github.com/moby/spdystream: [v0.2.0 → v0.4.0](https://github.com/moby/spdystream/compare/v0.2.0...v0.4.0)
    - github.com/moby/sys/mountinfo: [v0.6.2 → v0.7.1](https://github.com/moby/sys/compare/mountinfo/v0.6.2...mountinfo/v0.7.1)
    - github.com/moby/term: [1aeaba8 → v0.5.0](https://github.com/moby/term/compare/1aeaba8...v0.5.0)
    Registered: Fri Dec 26 09:05:12 UTC 2025
    - Last Modified: Wed Nov 12 11:33:21 UTC 2025
    - 451.9K bytes
    - Viewed (0)
Back to top