- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for mountInfo (0.32 sec)
-
internal/mountinfo/mountinfo.go
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Aug 19 01:35:22 UTC 2021 - 1.1K bytes - Viewed (0) -
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 Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 7.3K bytes - Viewed (0) -
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 Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.4K bytes - Viewed (0) -
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 Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 4.7K bytes - Viewed (0) -
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 Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Aug 19 01:35:22 UTC 2021 - 1.1K bytes - Viewed (0) -
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 Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Aug 19 01:35:22 UTC 2021 - 2K bytes - Viewed (0) -
pkg/volume/util/hostutil/hostutil_linux_test.go
} } func writeFile(content string) (string, string, error) { tempDir, err := os.MkdirTemp("", "mounter_shared_test") if err != nil { return "", "", err } filename := filepath.Join(tempDir, "mountinfo") err = os.WriteFile(filename, []byte(content), 0600) if err != nil { os.RemoveAll(tempDir) return "", "", err } return tempDir, filename, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 20 14:49:03 UTC 2023 - 8K bytes - Viewed (0) -
src/syscall/ztypes_openbsd_386.go
F_namemax uint32 F_owner uint32 F_ctime uint64 F_fstypename [16]int8 F_mntonname [90]int8 F_mntfromname [90]int8 F_mntfromspec [90]int8 Pad_cgo_0 [2]byte Mount_info [160]byte } type Flock_t struct { Start int64 Len int64 Pid int32 Type int16 Whence int16 } type Dirent struct { Fileno uint64 Off int64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 6.7K bytes - Viewed (0) -
src/syscall/ztypes_openbsd_arm64.go
F_namemax uint32 F_owner uint32 F_ctime uint64 F_fstypename [16]int8 F_mntonname [90]int8 F_mntfromname [90]int8 F_mntfromspec [90]int8 Pad_cgo_0 [2]byte Mount_info [160]byte } type Flock_t struct { Start int64 Len int64 Pid int32 Type int16 Whence int16 } type Dirent struct { Fileno uint64 Off int64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 17:34:54 UTC 2019 - 6.7K bytes - Viewed (0) -
src/syscall/ztypes_openbsd_mips64.go
F_namemax uint32 F_owner uint32 F_ctime uint64 F_fstypename [16]int8 F_mntonname [90]int8 F_mntfromname [90]int8 F_mntfromspec [90]int8 Pad_cgo_0 [2]byte Mount_info [160]byte } type Flock_t struct { Start int64 Len int64 Pid int32 Type int16 Whence int16 } type Dirent struct { Fileno uint64 Off int64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 29 08:08:26 UTC 2020 - 6.7K bytes - Viewed (0)