Skip to content

return all partitions and disks in linux, regardless of mount status - take 2 - #1590

Draft
LinuxSquare wants to merge 18 commits into
GuillaumeGomez:mainfrom
LinuxSquare:all_disks
Draft

return all partitions and disks in linux, regardless of mount status - take 2#1590
LinuxSquare wants to merge 18 commits into
GuillaumeGomez:mainfrom
LinuxSquare:all_disks

remove duplicate procfs_disk_stats

78fb382
Select commit
Loading
Failed to load commit list.
Cirrus CI / rust 1.88 on mac m1 failed Oct 6, 2025 in 23s

Task Summary

Instruction test failed in 00:02

Details

⚠️ Not enough compute credits to prioritize tasks!
⚠️ Only [ghcr.io/cirruslabs/macos-runner:sonoma, ghcr.io/cirruslabs/macos-runner:sequoia] is allowed. Automatically upgraded to ghcr.io/cirruslabs/macos-runner:sequoia.

✅ 00:01 clone
✅ 00:14 setup
❌ 00:02 test

  --> src/unix/apple/macos/disk.rs:38:25
   |
38 |         IOReleaser::new(unsafe { IOIteratorNext(service_iterator.inner()) })
   |                         ^^^^^^ unnecessary `unsafe` block

warning: `sysinfo` (lib) generated 9 warnings
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.23s
RUSTFLAGS=-Dwarnings cargo check --no-default-features
   Compiling libc v0.2.176
    Checking sysinfo v0.37.2 (/private/var/folders/g9/7rkt8rt1241bwwhd3_s8ndp40000gn/T/cirrus-ci-build)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.31s
RUSTFLAGS=-Dwarnings cargo check --no-default-features --features system
    Checking bitflags v2.9.4
    Checking memchr v2.7.6
    Checking objc2-core-foundation v0.3.2
    Checking objc2-io-kit v0.3.2
    Checking sysinfo v0.37.2 (/private/var/folders/g9/7rkt8rt1241bwwhd3_s8ndp40000gn/T/cirrus-ci-build)
error: use of deprecated static `objc2_io_kit::kIOMasterPortDefault`
  --> src/unix/apple/macos/cpu.rs:32:42
   |
32 |             IOServiceGetMatchingServices(kIOMasterPortDefault, Some(matching), &mut iterator);
   |                                          ^^^^^^^^^^^^^^^^^^^^
   |
   = note: `-D deprecated` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(deprecated)]`

error: use of deprecated static `objc2_io_kit::kIOMasterPortDefault`
  --> src/unix/apple/macos/cpu.rs:16:73
   |
16 |         IOServiceGetMatchingServices, IOServiceMatching, io_iterator_t, kIOMasterPortDefault,
   |                                                                         ^^^^^^^^^^^^^^^^^^^^

error: use of deprecated static `objc2_io_kit::kIOMasterPortDefault`
   --> src/unix/apple/macos/system.rs:177:37
    |
177 |         IOServiceGetMatchingService(kIOMasterPortDefault, Some(matching.as_opaque().into()))
    |                                     ^^^^^^^^^^^^^^^^^^^^

error: use of deprecated static `objc2_io_kit::kIOMasterPortDefault`
   --> src/unix/apple/macos/system.rs:164:9
    |
164 |         kIOMasterPortDefault,
    |         ^^^^^^^^^^^^^^^^^^^^

error: unnecessary `unsafe` block
  --> src/unix/apple/macos/utils.rs:31:9
   |
31 |         unsafe { IOObjectRelease(self.0.get() as _) };
   |         ^^^^^^ unnecessary `unsafe` block
   |
   = note: `-D unused-unsafe` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(unused_unsafe)]`

error: could not compile `sysinfo` (lib) due to 5 previous errors

Exit status: 101