Commit Graph

258 Commits (7d30ec599b8a56ae0d849bad4868ccc061964e5f)

Author SHA1 Message Date
Lomanic ec973203e9 [disk][netbsd] Generate cpu_netbsd_arm.go via mktypes.sh 8 months ago
uubulb 9e6efdb991 update disk & cpu & process 8 months ago
shirou 72d3ba4191 [disk][windows]: ignore network drive when not ready 9 months ago
shirou 37f531010d fix golangcilint errors, ignore gosec G115 9 months ago
shirou 5f158096be fix: golangci lint with max -> maxConn 9 months ago
Mingyang Zheng 16d7f3242c fix(IOCountersWithContext): Fix the issue of not using names to filter devices in func IOCountersWithContext of the windows implementation 10 months ago
shirou c34d29a8bf fix: rename v3 that remained in file c to v4 1 year ago
shirou d725bd1786 fix lint 1 year ago
shirou e9591b5b01 rename redundant test function names, such as TestCPU in cpu package 1 year ago
shirou bc060cc227 add SPDX License, remove old build tag, and replace import 1 year ago
Dylan Myers ff4ae36cc0 Remove extraneous development note comments
Move a function from nocgo to main file for disk package
1 year ago
Dylan Myers 9bf502f825 Fix logic errors, syntax errors, and typos 1 year ago
Dylan Myers 0917790819 Remove inappropriate package addition 1 year ago
Dylan Myers 3bf34ce7fb Add AIX disk serial numbers for nocgo 1 year ago
Dylan Myers ea8f72ed4a Add Usage for AIX nocgo 1 year ago
majorteach 71b81735f9 chore: fix typo
Signed-off-by: majorteach <csgcgl@126.com>
1 year ago
Jonathan Matthew 27ffa28a0d add support for OpenBSD/riscv64 1 year ago
shirou ce11e9ca5f [linux][disk]: fix Rdev cast 1 year ago
Ville Skyttä adaeba09d9 feat(disk): look for filesystem labels from udev on Linux 1 year ago
shirou 4870f6f119
Merge pull request #1569 from scop/perf/regex-compile
Avoid repeated regexp compilations
1 year ago
Ville Skyttä 11bc5b3970 Avoid some uses of regexps 1 year ago
Ville Skyttä 362fa4b9c4 Avoid repeated regexp compilations 1 year ago
Justin Yang 826037fe4b Fix build_test on amd64 NetBSD 2 years ago
Justin Yang 7ffb24dbe3
Merge branch 'shirou:master' into feature/netbsd-arm64-port 2 years ago
Justin Yang def3572629 format the code 2 years ago
Justin Yang 734a7a6e55 disk: we should use frsize as the real block size 2 years ago
Justin Yang dd0253b0ec disk: fix various bugs 2 years ago
Justin Yang 319f5ea6e5 disk: small improvement, but still doesn't work 2 years ago
Justin Yang 1136aa25da disk: code can be compiled now, but test still failed though 2 years ago
Justin Yang ec817bfa68 disk: code cleanup (not finish yet) 2 years ago
Justin Yang caafa49ed1 disk: code cleanup 2 years ago
Justin Yang b6a10e04e7 disk: Implement Usage for NetBSD 2 years ago
Justin Yang 7df86f0f6a Add disk partitions support for NetBSD 2 years ago
shirou 0665cafa1b chore: replace deprecated ioutil package to os and io 2 years ago
Justin Yang 302751d509 disk: start porting to NetBSD, far from complete 2 years ago
Greg Dallavalle 0a23dc690f comment cleanup 2 years ago
Greg Dallavalle b2d1f05f08 update comment 2 years ago
Greg aa4c84c6b3
Update disk/disk_linux.go
Co-authored-by: shirou <shirou.faw@gmail.com>
2 years ago
Greg Dallavalle 0ca6266393 fix IOCounters() SerialNumber enumeration 2 years ago
Ozan HACIBEKİROĞLU 1ed7ea75d7 fix: fixed windows disk package leaks
- fixed goroutine leak in PartitionsWithContext
- closed registry handle in init
2 years ago
Antoine Toulme b712e59295 fix more linting reports 2 years ago
Antoine Toulme 38b94668ea allow to pass context values to override environment variables 2 years ago
Matthieu MOREL 1fb1e3e3e6 ci(lint): correct gci linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 years ago
shirou 586926508c
Merge pull request #1431 from powersj/fix/1429
fix: moves common.Warnings to common OS files
2 years ago
Josh Powers e7c6b6991d
fix: moves common.Warnings to common OS files
This allows all OS types to unwrap the Warnings from errors, and not
just linux in host or windows in disk.

fixes: #1429
2 years ago
David Newhall II 3a88ef27a5 close channel in function that sends to it 2 years ago
shirou b51f72ebfb
Merge pull request #1412 from powersj/fix/dm-resolution
fix(disk): correctly replace /dev in /dev/mapper
2 years ago
shirou 852f455217 fix lint 2 years ago
Josh Powers 7645051510
fix(disk): correctly replace /dev in /dev/mapper
Only replace the first instance of /dev in a /dev/mapper string.
Otherwise, if an LVM group is named dev it will replace that as well.

fixes: #1411
2 years ago
shirou 8105a6d577 [disk][windows]: add context handling on PartionsWithContext 2 years ago