- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for checkCrossMounts (0.09 sec)
-
internal/mountinfo/mountinfo_linux_test.go
t.Fatal(err) } mounts, err := readProcMounts(mountsPath) if err != nil { t.Fatal(err) } // Failure case where we detected successfully cross device mounts. { if err = mounts.checkCrossMounts("/path/to/1"); err == nil { t.Fatal("Expected to fail, but found success") } mp := []mountInfo{ {"/dev/2", "/path/to/1/2", "type2", []string{"flags"}, "2", "2"}, }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 7.3K bytes - Viewed (0) -
internal/mountinfo/mountinfo_linux.go
if err != nil { return err } for _, path := range absPaths { if err := mounts.checkCrossMounts(path); err != nil { return err } } return nil } // CheckCrossDevice - check if given path has any sub-mounts in the input mounts list. func (mts mountInfos) checkCrossMounts(path string) error { if !filepath.IsAbs(path) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 4.7K bytes - Viewed (0)