-
-
Notifications
You must be signed in to change notification settings - Fork 256
Open
Description
Describe the bug
Block size is inexplicably divided by 8 before printing, reporting 512bytes on my SE2 (iOS26 and iOS18). Block size on a modern iPhone is 4096 bytes.
To Reproduce
../go-ios/go-ios diskspace --address ... --rsd-port ...
Smartphone (please complete the following information):
SE2, iOS26, SE2 iOS18
Current output:
Model: iPhone12,8
BlockSize: 512
FreeSpace: 36.7GB
UsedSpace: 27.3GB
TotalSpace: 64.0GB
Actual source code in main.c:
fmt.Printf(" BlockSize: %d\n", info.BlockSize/8)
iOS uses apfs since 2017
https://en.wikipedia.org/wiki/Apple_File_System
Minimum block size on apfs is 4k:
https://developer.apple.com/support/downloads/Apple-File-System-Reference.pdf
#define NX_MINIMUM_BLOCK_SIZE 4096
#define NX_DEFAULT_BLOCK_SIZE 4096
#define NX_MAXIMUM_BLOCK_SIZE 65536
Metadata
Metadata
Assignees
Labels
No labels