Fix getDeviceLogicalBlockSizeInner on darwin
This commit is contained in:
parent
b5df721e44
commit
7c435854bd
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func getDeviceLogicalBlockSizeInner(fd uintptr) (int64, error) {
|
func getDeviceLogicalBlockSizeInner(fd uintptr) (int64, error) {
|
||||||
bs, err := unix.IoctlGetInt(int(fd.Fd()), 0x40046418) // Syscall code for DKIOGETBLOCKSIZE
|
bs, err := unix.IoctlGetInt(int(fd), 0x40046418) // Syscall code for DKIOGETBLOCKSIZE
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, errors.Wrap(err, "ioctl get logical block size")
|
return 0, errors.Wrap(err, "ioctl get logical block size")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue