Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MilenMT/torus
/ functions
Functions
1,324 in github.com/MilenMT/torus
⨍
Functions
1,324
◇
Types & classes
158
↓ 5 callers
Function
BytesToUint64
(b []byte)
metadata/etcd/helpers.go:24
↓ 5 callers
Method
Debug
Debug writes a bunch of debug output to the io.Writer.
server.go:94
↓ 5 callers
Method
DeleteBlock
(ctx context.Context, b BlockRef)
storage.go:255
↓ 5 callers
Method
Err
()
storage.go:264
↓ 5 callers
Method
IsNil
()
storage/block_device/blockHeader.go:35
↓ 5 callers
Method
Next
()
storage.go:265
↓ 5 callers
Method
Put
(key string, value interface{})
distributor/lru.go:30
↓ 5 callers
Method
RebalanceCheck
(ctx context.Context, refs []torus.BlockRef)
distributor/protocols/tdp/tdp.go:49
↓ 5 callers
Method
SaveSnapshot
(name string)
block/metadata.go:32
↓ 5 callers
Method
SetBlockType
(t BlockType)
storage.go:188
↓ 5 callers
Method
Uint32
()
models/rpc.pb.go:1070
↓ 5 callers
Method
WithContext
(ctx context.Context)
metadata.go:44
↓ 5 callers
Function
debug
(verbose bool, msg string, args ...interface{})
cmd/mkfs.torus/lib/lib.go:17
↓ 5 callers
Method
findIndex
(s torus.BlockRef)
storage/mfile.go:165
↓ 5 callers
Method
getContext
()
file.go:128
↓ 5 callers
Method
putReplyHeader
(dst []byte, err uint32)
internal/nbd/nbd.go:403
↓ 5 callers
Method
readBlockHeader
(offset uint64)
storage/block_device.go:20
↓ 5 callers
Function
registerRing
(t torus.RingType, name string, newFunc createRingFunc)
ring/ring_main.go:36
↓ 4 callers
Method
AddPeers
(PeerInfoList)
ring.go:28
↓ 4 callers
Method
Append
(s []string)
cmd/torusctl/table.go:41
↓ 4 callers
Method
Block
(ctx context.Context, in *BlockRequest, opts ...grpc.CallOption)
models/rpc.pb.go:626
↓ 4 callers
Function
CreateBlockVolume
CreateBlockVolume creates volume in metadata service.
block/volume.go:26
↓ 4 callers
Function
CreateOrOpenMFile
(path string, size uint64, blkSize uint64)
storage/mmap_file.go:17
↓ 4 callers
Method
Describe
()
ring.go:15
↓ 4 callers
Method
GetINode
()
block/metadata.go:26
↓ 4 callers
Method
GetWeights
()
ring.go:147
↓ 4 callers
Method
IsZero
()
storage.go:192
↓ 4 callers
Method
MarshalTo
(dAtA []byte)
models/rpc.pb.go:863
↓ 4 callers
Function
ParseSnapName
(s string)
cmd/torusctl/block_snapshot.go:83
↓ 4 callers
Method
PutBlock
(ctx context.Context, ref torus.BlockRef, data []byte)
distributor/protocols/protocols.go:16
↓ 4 callers
Method
PutBlock
(ctx context.Context, ref torus.BlockRef, data []byte)
distributor/protocols/tdp/tdp.go:48
↓ 4 callers
Method
PutBlock
(ctx context.Context, in *PutBlockRequest, opts ...grpc.CallOption)
models/rpc.pb.go:627
↓ 4 callers
Method
ReadAt
(b []byte, off int64)
internal/nbd/nbd.go:74
↓ 4 callers
Method
SendError
(aerr aoe.Error)
block/aoe/frame.go:74
↓ 4 callers
Method
SetDeadline
(t time.Time)
block/aoe/aoe_test.go:425
↓ 4 callers
Method
String
()
storage/block_device_test.go:127
↓ 4 callers
Method
Union
(b PeerList)
ring.go:66
↓ 4 callers
Method
Union
(b PeerInfoList)
ring.go:116
↓ 4 callers
Method
WriteAt
(b []byte, off int64)
internal/nbd/nbd.go:75
↓ 4 callers
Function
bytesOrIbytes
(s uint64, si bool)
cmd/torusctl/common.go:45
↓ 4 callers
Function
closeAll
(t testing.TB, c ...*torus.Server)
integration/integration_test.go:101
↓ 4 callers
Function
createBlockMetadata
(mds torus.MetadataService, name string, vid torus.VolumeID)
block/metadata.go:37
↓ 4 callers
Function
createServer
()
cmd/torusblk/main.go:91
↓ 4 callers
Function
die
(why string, args ...interface{})
cmd/torusd/main.go:263
↓ 4 callers
Function
die
(why string, args ...interface{})
cmd/torusblk/main.go:127
↓ 4 callers
Method
findBlockOffset
findBlockOffset finds the offset into the device a block's header is. Returns the blocks offset, whether or not the block was found, and any errors
storage/block_device.go:419
↓ 4 callers
Function
makeTempFilename
()
storage/mmap_file_test.go:10
↓ 4 callers
Function
makeTestData
(size int)
integration/integration_test.go:114
↓ 4 callers
Function
makeTinyPeers
(t *testing.T)
ring/ketama_test.go:13
↓ 4 callers
Function
newBaseBlockset
(store torus.BlockStore)
blockset/base.go:28
↓ 4 callers
Function
newFile
(name string, t *testing.T)
file_blackbox_test.go:50
↓ 4 callers
Method
numBlocks
()
storage/mfile.go:112
↓ 4 callers
Method
optReply
(opt uint32, reptype uint32, data []byte)
internal/nbd/nbdserver.go:252
↓ 4 callers
Method
perform
(d *deviceBlock)
storage/block_device_test.go:131
↓ 4 callers
Function
ringN
(t testing.TB, n int)
integration/integration_test.go:68
↓ 4 callers
Function
stderr
(msg string, args ...interface{})
cmd/mkfs.torus/mkfs.torus.go:20
↓ 4 callers
Function
testBPFProgram
testBPFProgram builds a BPF program for the input server and compares the output of the program against the input AoE header, returning whether or not
block/aoe/aoe_test.go:190
↓ 4 callers
Method
toBool
(len int)
distributor/protocols/tdp/bitset.go:43
↓ 4 callers
Method
writeBlockHeader
(hdrs blockDevice.BlockHeaders, offset uint64)
storage/block_device.go:52
↓ 3 callers
Method
AndNot
(b PeerList)
ring.go:56
↓ 3 callers
Method
BlockType
()
storage.go:184
↓ 3 callers
Method
CreateFile
(volume *models.Volume, inode *models.INode, blocks Blockset)
file.go:89
↓ 3 callers
Function
CreateMFile
(path string, size uint64)
storage/mmap_file.go:35
↓ 3 callers
Method
DeleteSnapshot
(name string)
block/metadata.go:34
↓ 3 callers
Method
FindDevice
(name string)
internal/nbd/nbdserver.go:36
↓ 3 callers
Method
GetAllBlockRefs
GetAllBlockRefs returns the BlockRef of the blocks in the Blockset. The ith BlockRef in the returned slice is the Ref of the ith Block in the Blockset
blockset.go:27
↓ 3 callers
Method
GetVolume
(volume string)
metadata.go:26
↓ 3 callers
Method
GetVolumes
()
metadata.go:25
↓ 3 callers
Method
GlobalMetadata
()
metadata/temp/temp.go:81
↓ 3 callers
Method
IndexAt
(uuid string)
ring.go:43
↓ 3 callers
Method
Int63
()
models/torus.pb.go:1544
↓ 3 callers
Function
NewTableWriter
(output io.Writer)
cmd/torusctl/table.go:16
↓ 3 callers
Function
OpenMFile
(path string, blkSize uint64)
storage/mmap_file.go:44
↓ 3 callers
Method
OpenSnapshot
(name string)
block/blockfile.go:50
↓ 3 callers
Method
RebalanceCheck
(ctx context.Context, in *RebalanceCheckRequest, opts ...grpc.CallOption)
models/rpc.pb.go:628
↓ 3 callers
Function
RegisterBlockset
RegisterBlockset is the hook used for implementations of blocksets to register themselves to the system. This is usually called in the init() of the p
blockset/blockset_main.go:59
↓ 3 callers
Method
RemovePeers
(PeerList)
ring.go:33
↓ 3 callers
Method
Render
()
cmd/torusctl/table.go:22
↓ 3 callers
Method
RenderCSV
()
cmd/torusctl/table.go:35
↓ 3 callers
Method
SetHeader
(s []string)
cmd/torusctl/table.go:45
↓ 3 callers
Method
SubscribeNewRings
(chan Ring)
metadata.go:40
↓ 3 callers
Method
SyncINode
(torus.INodeRef)
block/metadata.go:27
↓ 3 callers
Method
Trim
Trim zeros the blocks in range [from, to).
blockset.go:42
↓ 3 callers
Method
UUID
()
distributor/rebalance/rebalancer.go:18
↓ 3 callers
Method
Unmarshal
(buf []byte)
storage/block_device/metadata.go:28
↓ 3 callers
Method
Unmarshal
(dAtA []byte)
models/torus.pb.go:2150
↓ 3 callers
Method
UnmarshalBinary
(data []byte)
block/aoe/frame.go:18
↓ 3 callers
Method
UnsubscribeNewRings
(chan Ring)
metadata.go:41
↓ 3 callers
Method
UpdateRebalanceInfo
(ri *models.RebalanceInfo)
heartbeat.go:160
↓ 3 callers
Function
ZeroINode
()
storage.go:200
↓ 3 callers
Function
connectSystemd
()
cmd/torusblk/flex.go:92
↓ 3 callers
Function
createBlockset
(b torus.BlockLayer, store torus.BlockStore, subLayer blockset)
blockset/blockset_main.go:76
↓ 3 callers
Function
debug
(verbose bool, msg string, args ...interface{})
cmd/fsck.torus/lib/lib.go:15
↓ 3 callers
Function
devToUnitName
(dev string)
cmd/torusblk/flex.go:82
↓ 3 callers
Function
die
(why string, args ...interface{})
cmd/mkfs.torus/mkfs.torus.go:30
↓ 3 callers
Function
generateLinearFile
(vol torus.VolumeID, in torus.INodeID, size int)
cmd/ringtool/ringtool.go:241
↓ 3 callers
Method
getConn
getConn returns RPC interface after found proper peers.
distributor/client.go:62
↓ 3 callers
Function
headersEqual
headersEqual compares a response and request AoE header for equality, but does not factor in their Arg fields.
block/aoe/aoe_test.go:351
↓ 3 callers
Method
isClosed
()
distributor/protocols/tdp/tdp.go:222
↓ 3 callers
Function
newCRCBlockset
(sub blockset)
blockset/crc.go:30
← previous
next →
101–200 of 1,324, ranked by callers