Skip to content

Commit

Permalink
nolint for building on unsupported platforms
Browse files Browse the repository at this point in the history
Signed-off-by: Avi Deitcher <[email protected]>
  • Loading branch information
deitch committed May 26, 2024
1 parent 87a4cfd commit 8d32eda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diskfs_other.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
)

// getBlockDeviceSize get the size of an opened block device in Bytes.
func getBlockDeviceSize(f *os.File) (int64, error) {
func getBlockDeviceSize(_ *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) {
func getSectorSizes(_ *os.File) (logicalSectorSize, physicalSectorSize int64, err error) {
return 0, 0, errors.New("block devices not supported on this platform")
}

0 comments on commit 8d32eda

Please sign in to comment.