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
shirou
9fc4d70059
Merge pull request #1379 from shirou/feature/revert_errors_from_internal
...
[disk][host]: move back Warnings from internal to disk and host.
2022-12-01 08:30:31 +09:00
shirou
5473fd114d
[disk][host]: change to use type alias.
2022-11-30 23:23:31 +00:00
Steve Zhang
cf62eac8f9
The current codes miss below statistic data under solaris/illumos:
...
1. the disk io statistic data as: nread, nwritten, reads, writes, rtime, wtime;
2. the free memory under global zone;
3. the net io statistic data as: rbytes64, ipackets64, idrops64, ierrors, obytes64, opackets64, odrops64, oerrors.
The new feature branch adds the above missing statistic data based on the psutil project (https://psutil.readthedocs.io/ ), it has been tested under solaris ( Oracle Solaris 11.4 X86) and illumos (OmniOS v11 r151044).
2022-11-21 21:28:36 -07:00
shirou
4ac7e99c6a
[disk][host]: move back Warnings from internal to disk and host.
...
fix #1377
2022-11-19 11:37:38 +00:00
Frank Spitulski
d7c791252a
rebase on master
2022-10-19 19:19:59 -07:00
Matthew Palmer
b515acb162
[disk][windows] Support LabelWithContext & SerialNumberWithContext
...
Add support for LabelWithContext & SerialNumberWithContext, additionally returning this data back for the IOCountersWithContext function.
2022-10-19 19:10:01 -07:00
Aman Karmani
0823447625
[ios][disk] IOKit is not available on iOS
2022-10-11 13:17:17 -07:00
shirou
769daafb9e
Merge pull request #1347 from atoulme/windows_errors
...
Return all Windows partitions
2022-10-09 12:55:42 +09:00
Antoine Toulme
dbc0f20fe3
code review
2022-10-03 13:55:14 -07:00
shirou
da529f3639
Merge pull request #1341 from chbuescher/master
...
implement aix nocgo disk usage
2022-09-30 17:13:54 +09:00
Antoine Toulme
6b2bfe408d
Return all partitions on Windows and all errors rather than returning early
2022-09-06 23:13:22 -07:00
Ties de Wit
705a63f1b2
Update disk_unix.go
2022-08-29 15:44:23 +02:00