display inodes on macOS
- Dominant language
- Rust
- Stars
- 2.9k
- Forks
- 59
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 1
Description
inodes on my arm64 macOS (Tahoe 26.1) system get reported as `null`
```
$ dysk --version
dysk 3.5.0
$ dysk --strategy diskutil --json
Calling diskutil to read device information
[
{
"bound": false,
"dev": {
"major": 1,
"minor": 15
},
"disk": {
"crypted": false,
"ram": false,
"removable": false,
"rotational": false,
"type": "SSD"
},
"fs": "/dev/disk3s5",
"fs-label": null,
"fs-type": "APFS",
"id": null,
"mount-point": "/System/Volumes/Data",
"options": "",
"remote": false,
"stats": {
"available": "362G",
"bavail": 88465025,
"bfree": 88465025,
"blocks": 120699413,
"bsize": 4096,
"bused": 26678491,
"inodes": null,
"size": "494G",
"used": "109G",
"used-percent": "27%"
},
"unreachable": false
}
]
$ dysk -c +inodes
┌──────────────────┬────┬────┬────┬─────────┬────┬────┬─────────────────────┬──────┐
│ filesystem │type│disk│used│ use │free│size│mount point │inodes│
├──────────────────┼────┼────┼────┼─────────┼────┼────┼─────────────────────┼──────┤
│/dev/disk3s5 │APFS│SSD │132G│27% █▍ │362G│494G│/System/Volumes/Data │ │
│OrbStack:/OrbStack│NFS │ │ 28G│ 7% ▍ │344G│372G│/Users/raylu/OrbStack│ │
└──────────────────┴────┴────┴────┴─────────┴────┴────┴─────────────────────┴──────┘
```
originally in [#23](https://github.com/Canop/dysk/issues/23#issuecomment-3609160286)
canop says inodes haven't been ported to macOS yet
Contributor guide
Research direction
Start by tracing the `--strategy diskutil` path and how filesystem statistics are collected on macOS. Compare the existing inode handling with the JSON and table output shown in the issue; done means APFS inode values are reported instead of `null` or a blank column, with the existing commands still working.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100