MCPcopy
hub / github.com/etcd-io/bbolt / getBlkSize

Function getBlkSize

tests/dmflakey/dmsetup.go:102–105  ·  view source on GitHub ↗

getBlkSize gets size in 512-byte sectors (BLKGETSIZE64 / 512). REF: https://man7.org/linux/man-pages/man8/blockdev.8.html

(device string)

Source from the content-addressed store, hash-verified

100//
101// REF: https://man7.org/linux/man-pages/man8/blockdev.8.html
102func getBlkSize(device string) (int64, error) {
103 size, err := getBlkSize64(device)
104 return size / 512, err
105}

Callers 2

InitFlakeyFunction · 0.85
newFlakeyDeviceFunction · 0.85

Calls 1

getBlkSize64Function · 0.85

Tested by

no test coverage detected