Commit 04a801a
committed
Add macOS support for mkfs.simplefs
mkfs.simplefs depended on Linux-only headers and ioctl calls, so the
rv32emu CI could not run simplefs tests on macOS runners.
Add macOS-specific endian helpers and detect block device size via
DKIOCGETBLOCKCOUNT/DKIOCGETBLOCKSIZE while keeping the Linux path
(BLKGETSIZE64) unchanged.
Fixes: #78
Signed-off-by: hsule <leann9001@gmail.com>1 parent 17e6c30 commit 04a801a
1 file changed
Lines changed: 34 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
1 | 6 | | |
2 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
3 | 17 | | |
4 | 18 | | |
5 | 19 | | |
| |||
278 | 292 | | |
279 | 293 | | |
280 | 294 | | |
| 295 | + | |
281 | 296 | | |
282 | 297 | | |
283 | 298 | | |
284 | 299 | | |
285 | 300 | | |
286 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
287 | 320 | | |
288 | 321 | | |
289 | 322 | | |
| |||
0 commit comments