1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

252 Commits

Author SHA1 Message Date
shirou
c34d29a8bf fix: rename v3 that remained in file c to v4 2024-05-28 22:42:36 +09:00
shirou
d725bd1786 fix lint 2024-05-28 22:27:17 +09:00
shirou
e9591b5b01 rename redundant test function names, such as TestCPU in cpu package 2024-05-28 22:27:17 +09:00
shirou
bc060cc227 add SPDX License, remove old build tag, and replace import 2024-05-28 22:27:17 +09:00
Dylan Myers
ff4ae36cc0 Remove extraneous development note comments
Move a function from nocgo to main file for disk package
2024-05-22 08:25:39 -04:00
Dylan Myers
9bf502f825 Fix logic errors, syntax errors, and typos 2024-05-17 23:57:00 -04:00
Dylan Myers
0917790819 Remove inappropriate package addition 2024-05-17 21:31:34 -04:00
Dylan Myers
3bf34ce7fb Add AIX disk serial numbers for nocgo 2024-05-17 14:39:44 -04:00
Dylan Myers
ea8f72ed4a Add Usage for AIX nocgo 2024-05-16 09:32:46 -04:00
majorteach
71b81735f9 chore: fix typo
Signed-off-by: majorteach <csgcgl@126.com>
2024-03-23 17:25:51 +08:00
Jonathan Matthew
27ffa28a0d add support for OpenBSD/riscv64 2024-02-11 16:20:56 +10:00
shirou
ce11e9ca5f [linux][disk]: fix Rdev cast 2024-01-01 22:07:23 +09:00
Ville Skyttä
adaeba09d9 feat(disk): look for filesystem labels from udev on Linux 2023-12-25 12:07:23 +02:00
shirou
4870f6f119
Merge pull request #1569 from scop/perf/regex-compile
Avoid repeated regexp compilations
2023-12-23 23:36:29 +09:00
Ville Skyttä
11bc5b3970 Avoid some uses of regexps 2023-12-21 10:00:30 +02:00
Ville Skyttä
362fa4b9c4 Avoid repeated regexp compilations 2023-12-21 09:51:14 +02:00
Justin Yang
826037fe4b Fix build_test on amd64 NetBSD 2023-09-29 16:36:44 +08:00
Justin Yang
7ffb24dbe3
Merge branch 'shirou:master' into feature/netbsd-arm64-port 2023-09-23 16:02:34 +08:00
Justin Yang
def3572629 format the code 2023-09-17 01:43:13 +08:00
Justin Yang
734a7a6e55 disk: we should use frsize as the real block size 2023-09-16 15:49:22 +08:00
Justin Yang
dd0253b0ec disk: fix various bugs 2023-09-16 04:03:33 +08:00
Justin Yang
319f5ea6e5 disk: small improvement, but still doesn't work 2023-09-12 00:16:22 +08:00
Justin Yang
1136aa25da disk: code can be compiled now, but test still failed though 2023-09-10 23:37:30 +08:00
Justin Yang
ec817bfa68 disk: code cleanup (not finish yet) 2023-09-10 23:33:42 +08:00
Justin Yang
caafa49ed1 disk: code cleanup 2023-09-10 02:40:14 +08:00
Justin Yang
b6a10e04e7 disk: Implement Usage for NetBSD 2023-09-09 20:32:59 +08:00
Justin Yang
7df86f0f6a Add disk partitions support for NetBSD 2023-09-09 17:47:44 +08:00
shirou
0665cafa1b chore: replace deprecated ioutil package to os and io 2023-09-08 17:05:14 +00:00
Justin Yang
302751d509 disk: start porting to NetBSD, far from complete 2023-09-03 23:08:54 +08:00
Greg Dallavalle
0a23dc690f comment cleanup 2023-08-18 09:17:37 -05:00
Greg Dallavalle
b2d1f05f08 update comment 2023-08-17 09:38:49 -05:00
Greg
aa4c84c6b3
Update disk/disk_linux.go
Co-authored-by: shirou <shirou.faw@gmail.com>
2023-08-17 09:37:46 -05:00
Greg Dallavalle
0ca6266393 fix IOCounters() SerialNumber enumeration 2023-08-16 21:36:08 -05:00
Ozan HACIBEKİROĞLU
1ed7ea75d7 fix: fixed windows disk package leaks
- fixed goroutine leak in PartitionsWithContext
- closed registry handle in init
2023-08-10 14:48:26 +03:00
Antoine Toulme
b712e59295 fix more linting reports 2023-06-03 14:17:16 -07:00
Antoine Toulme
38b94668ea allow to pass context values to override environment variables 2023-06-02 01:31:05 -07:00
Matthieu MOREL
1fb1e3e3e6 ci(lint): correct gci linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2023-04-04 18:07:22 +00:00
shirou
586926508c
Merge pull request #1431 from powersj/fix/1429
fix: moves common.Warnings to common OS files
2023-03-19 22:41:51 +09:00
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
2023-03-15 06:39:08 -06:00
David Newhall II
3a88ef27a5 close channel in function that sends to it 2023-03-13 20:09:01 -07:00
shirou
b51f72ebfb
Merge pull request #1412 from powersj/fix/dm-resolution
fix(disk): correctly replace /dev in /dev/mapper
2023-02-18 10:41:08 +09:00
shirou
852f455217 fix lint 2023-02-12 09:24:52 +00:00
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
2023-02-01 08:26:10 -07:00
shirou
8105a6d577 [disk][windows]: add context handling on PartionsWithContext 2023-01-14 17:59:36 +09:00
shirou
8d22915181
[disk][darwin]: add issue URL 2022-12-18 13:11:56 +09:00
Brian Ryner
c2fa2cbf8e Update comment 2022-12-18 14:23:01 +11:00
Brian Ryner
34da06e9b7 fix 2022-12-07 14:31:09 +11:00
Brian Ryner
c5e42b972f Truncate the result of Getfsstat to the item count that is returned.
This count may be less than what was returned by the first call to Getfsstat.
2022-12-07 14:27:20 +11:00
shirou
a0f8443561
Revert "[disk][windows] Support LabelWithContext & SerialNumberWithContext - rebased " 2022-12-01 08:42:17 +09:00
shirou
af44f9d16b
Merge pull request #1367 from FrankSpitulski/feat/implement-label-windows
[disk][windows] Support LabelWithContext & SerialNumberWithContext - rebased
2022-12-01 08:34:29 +09:00