Commit Graph

285 Commits (master)

Author SHA1 Message Date
Dani Louca 1d0f16a4cb
fix PR review
Signed-off-by: Dani Louca <dlouca@splunk.com>
3 weeks ago
Dani Louca 311c16dbaf
Fetch stats from folder mounted volumes
Signed-off-by: Dani Louca <dlouca@splunk.com>
3 weeks ago
shirou ce7e4c88d9
Merge pull request #1856 from mmorel-35/gocritic/enable-all
enable all go-critic
3 weeks ago
shirou d3578cf3e8 [disk][linux]: simplify logic
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
3 weeks ago
Matthieu MOREL 431dd63e80 enable all go-critic
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 month ago
shirou 9896b27464 [disk][linux]: refactor Partitions and add tests. 1 month ago
shirou c4ec263816 [disk][linux]: fix mount opt parse when use 1/mounts. 1 month ago
Max Altgelt 71c5b00525
fix: don't assume GetDriveType returns error
GetDriveType does not set an error for GetLastError, see
https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getdrivetypea.
Fix some code that assumed this.
Also prefer windows.GetDriveType to a direct call.
2 months ago
Matthieu MOREL cefed48244 chore: enable staticcheck linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
Matthieu MOREL 6469062ba9 chore: enable ineffassign linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
NewbieOrange 212dfbbb39
[disk][linux] add bcachefs magic 3 months ago
shirou 6d4c8e567e
[disk][darwin]:rename unused parameter in function to fix lint 3 months ago
shirou 935bb6c8f3
Merge branch 'master' into support-get-disk-serial-number-darwin 3 months ago
shirou 7b14b866f1
Merge pull request #1783 from mmorel-35/revive/unused-parameter
chore: enable unused-parameter from revive
3 months ago
shirou 9d29c70c52
Merge pull request #1813 from mmorel-35/gocritic
chore: enable gocritic linter
3 months ago
shirou 2ab27a0ba3
Merge pull request #1817 from mmorel-35/revive/var-naming
chore: enable var-naming from revive
3 months ago
Matthieu MOREL dfdd90ab72 chore: enable gocritic linter 4 months ago
Matthieu MOREL 9925fd41ec chore: enable var-naming from revive
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
4 months ago
Matthieu MOREL dc9b409803 chore: enable unused-parameter from revive
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
4 months ago
Matthieu MOREL a5e496769c chore: enable begin rule from thelper
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
4 months ago
Matthieu MOREL 8c1a718a5d chore: use testify instead of testing
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
4 months ago
Matthieu MOREL 0a45e0f24d chore(golangci-lint): cover aix and cgo
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
4 months ago
Sam Burba 9fc28f2f22 Refactor: Improve formatting, update struct naming, and optimize JSON parsing.
a
4 months ago
Sam Burba 15c5b67917 add support for get disk serial number on darwin 4 months ago
Matthieu MOREL 30aff030d0 chore(golangci-lint): GOOS and GOARCH matrix
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
4 months ago
Matthieu MOREL 9ce2ec161e chore: enable golangci-lint on Windows and MacOS
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
5 months ago
uubulb 1f39525d2d refactor(darwin): optimize string allocation 6 months ago
Lomanic ec973203e9 [disk][netbsd] Generate cpu_netbsd_arm.go via mktypes.sh 9 months ago
uubulb 9e6efdb991 update disk & cpu & process 9 months ago
shirou 72d3ba4191 [disk][windows]: ignore network drive when not ready 10 months ago
shirou 37f531010d fix golangcilint errors, ignore gosec G115 10 months ago
shirou 5f158096be fix: golangci lint with max -> maxConn 11 months ago
Mingyang Zheng 16d7f3242c fix(IOCountersWithContext): Fix the issue of not using names to filter devices in func IOCountersWithContext of the windows implementation 11 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 2 years ago
Ville Skyttä adaeba09d9 feat(disk): look for filesystem labels from udev on Linux 2 years ago
shirou 4870f6f119
Merge pull request #1569 from scop/perf/regex-compile
Avoid repeated regexp compilations
2 years ago
Ville Skyttä 11bc5b3970 Avoid some uses of regexps 2 years ago
Ville Skyttä 362fa4b9c4 Avoid repeated regexp compilations 2 years ago
Justin Yang 826037fe4b Fix build_test on amd64 NetBSD 2 years ago