mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-27 12:38:11 +00:00
19 lines
528 B
Go
Vendored
19 lines
528 B
Go
Vendored
//go:build !windows && !linux && !darwin
|
|
|
|
package diskfs
|
|
|
|
import (
|
|
"errors"
|
|
"os"
|
|
)
|
|
|
|
// getBlockDeviceSize get the size of an opened block device in Bytes.
|
|
func getBlockDeviceSize(f *os.File) (int64, error) {
|
|
return 0, errors.New("block devices not supported on this platform")
|
|
}
|
|
|
|
// getSectorSizes get the logical and physical sector sizes for a block device
|
|
func getSectorSizes(f *os.File) (logicalSectorSize, physicalSectorSize int64, err error) {
|
|
return 0, 0, errors.New("block devices not supported on this platform")
|
|
}
|