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
↓ 3 callers
Function
newDeviceBlockTester
(deviceSize uint64)
storage/block_device_test.go:43
↓ 3 callers
Function
newDistributor
(srv *torus.Server, addr *url.URL)
distributor/distributor.go:37
↓ 3 callers
Function
newServer
(md *temp.Server)
block/volume_test.go:19
↓ 3 callers
Method
offset
()
internal/nbd/nbd.go:388
↓ 3 callers
Method
openWrite
()
file.go:102
↓ 3 callers
Function
pstring
poke a string into p at off and pad with space
block/aoe/device.go:68
↓ 3 callers
Method
resetConn
resetConn resets connection for the uuid.
distributor/client.go:101
↓ 3 callers
Function
run
(cmd string, args ...string)
storage/block_device_test.go:35
↓ 3 callers
Function
stderr
(msg string, args ...interface{})
cmd/fsck.torus/fsck.torus.go:19
↓ 3 callers
Function
testRequest
testRequest performs a single AoE request using the input request header and returns a single AoE response.
block/aoe/aoe_test.go:232
↓ 3 callers
Method
tracef
(format string, stuff ...interface{})
internal/nbd/nbdserver.go:110
↓ 3 callers
Method
writeData
(offset uint64, data []byte)
storage/block_device.go:269
↓ 2 callers
Method
AtomicModifyKey
TODO(barakmich): Perhaps make this an etcd client library function.
metadata/etcd/etcd.go:243
↓ 2 callers
Method
Block
(ctx context.Context, ref torus.BlockRef)
distributor/protocols/protocols.go:17
↓ 2 callers
Method
ChangeReplication
(r int)
ring.go:23
↓ 2 callers
Method
Clear
()
gc/gc.go:22
↓ 2 callers
Method
Delete
(br torus.BlockRef)
storage/block_device/blockHeader.go:118
↓ 2 callers
Method
DeleteVolume
()
block/metadata.go:30
↓ 2 callers
Method
Disconnect
()
internal/nbd/nbd.go:260
↓ 2 callers
Method
ExtendContext
(ctx context.Context)
server.go:109
↓ 2 callers
Method
GetBlocks
()
models/torus.pb.go:61
↓ 2 callers
Method
GetLiveINodes
GetLiveInodes returns the current INode representation of the Blockset. The returned INode might not be synced.
blockset.go:23
↓ 2 callers
Method
GetPeerMap
()
server.go:115
↓ 2 callers
Method
HasBlock
(ctx context.Context, b BlockRef)
storage.go:251
↓ 2 callers
Method
HasBlock
(_ context.Context, s torus.BlockRef)
storage/temp.go:63
↓ 2 callers
Method
HasBlock
(_ context.Context, s torus.BlockRef)
storage/mfile.go:187
↓ 2 callers
Method
HasUUID
(uuid string)
ring.go:102
↓ 2 callers
Method
IsDead
(torus.BlockRef)
gc/gc.go:21
↓ 2 callers
Method
IsUsed
()
storage/block_device/blockHeader.go:97
↓ 2 callers
Method
Kind
()
storage/temp.go:38
↓ 2 callers
Method
Lease
()
server.go:65
↓ 2 callers
Function
ListenReplication
ListenReplication opens the internal networking port and connects to the cluster
distributor/replication.go:15
↓ 2 callers
Method
Marshal
()
storage/block_device/metadata.go:16
↓ 2 callers
Function
MustParseBlockLayerSpec
(s string)
blockset/blockset_main.go:154
↓ 2 callers
Method
NumBlocks
()
storage/temp.go:51
↓ 2 callers
Method
NumBlocks
NumBlocks returns the total capacity of the file in blocks.
storage/mmap_file.go:82
↓ 2 callers
Method
PrepVolume
(*models.Volume)
distributor/rebalance/rebalancer.go:24
↓ 2 callers
Method
ReadFrom
(b []byte)
block/aoe/aoe_test.go:385
↓ 2 callers
Method
RestoreSnapshot
(name string)
block/blockfile.go:88
↓ 2 callers
Method
Ring
()
distributor/rebalance/rebalancer.go:17
↓ 2 callers
Method
Send
(hdr *aoe.Header)
block/aoe/frame.go:44
↓ 2 callers
Method
Serve
()
internal/nbd/nbd.go:175
↓ 2 callers
Method
SetBlockSize
(blocksize int64)
internal/nbd/nbd.go:126
↓ 2 callers
Method
String
()
storage/block_device/blockHeader.go:39
↓ 2 callers
Method
SyncAllWrites
()
file.go:351
↓ 2 callers
Method
SyncBlocks
()
file.go:378
↓ 2 callers
Function
Uint64ToBytes
(x uint64)
metadata/etcd/helpers.go:15
↓ 2 callers
Function
Unmarshal
(b []byte)
ring/ring_main.go:22
↓ 2 callers
Method
Unmarshal
(buf []byte)
storage/block_device/blockHeader.go:57
↓ 2 callers
Method
UpdatePeerMap
()
heartbeat.go:155
↓ 2 callers
Method
UsedBlocks
()
storage.go:257
↓ 2 callers
Method
UsedBlocks
()
storage/temp.go:57
↓ 2 callers
Method
VersionStart
()
distributor/rebalance/rebalancer.go:23
↓ 2 callers
Function
benchmarkWrites
(b *testing.B, flush bool)
storage/mmap_file_test.go:21
↓ 2 callers
Function
bitsetFromBool
(in []bool)
distributor/protocols/tdp/bitset.go:31
↓ 2 callers
Function
compareBytes
(t *testing.T, mds *temp.Server, data []byte, volume string)
integration/integration_test.go:173
↓ 2 callers
Method
createOrRenewLease
(ctx context.Context)
server.go:50
↓ 2 callers
Function
createVol
(t *testing.T, server *torus.Server, volname string, size uint64)
integration/integration_test.go:123
↓ 2 callers
Function
defaultConfig
defaultConfig is the default AoE server configuration.
block/aoe/aoe.go:265
↓ 2 callers
Function
die
(why string, args ...interface{})
cmd/fsck.torus/fsck.torus.go:29
↓ 2 callers
Method
findDefaultBlockOffset
(b torus.BlockRef)
storage/block_device.go:428
↓ 2 callers
Method
findEmpty
()
storage/mfile.go:175
↓ 2 callers
Function
flush
(d string)
cmd/torusblk/aoe.go:125
↓ 2 callers
Method
flush
()
storage/mfile.go:128
↓ 2 callers
Method
get
(key string)
distributor/lru.go:65
↓ 2 callers
Method
getOrCreateBlockINode
(ref torus.INodeRef)
block/volume.go:129
↓ 2 callers
Method
getRing
()
metadata/etcd/etcd.go:385
↓ 2 callers
Method
getWriteFromServer
()
distributor/storage.go:175
↓ 2 callers
Method
handleFrame
(from net.Addr, iface *Interface, f *Frame)
block/aoe/aoe.go:194
↓ 2 callers
Method
incrementUsedBlocks
()
storage/block_device.go:468
↓ 2 callers
Method
length
()
internal/nbd/nbd.go:380
↓ 2 callers
Function
loadIndex
(m *MFile)
storage/mfile.go:37
↓ 2 callers
Method
makeID
(torus.INodeRef)
blockset/blockset_main.go:38
↓ 2 callers
Function
marshalTest
(t *testing.T, s torus.BlockStore, spec torus.BlockLayerSpec)
blockset/base_test.go:49
↓ 2 callers
Method
mustAssembleBPF
mustAssembleBPF assembles a BPF program to filter out packets not bound for this server.
block/aoe/aoe.go:281
↓ 2 callers
Function
newReplicationBlockset
(sub blockset, bs torus.BlockStore, r int)
blockset/replication.go:40
↓ 2 callers
Function
newServer
(md *temp.Server)
distributor/distributor_test.go:15
↓ 2 callers
Method
nextHelper
(firstRun bool)
storage/block_device.go:352
↓ 2 callers
Function
openReplication
(s *torus.Server, addr *url.URL)
distributor/replication.go:23
↓ 2 callers
Function
openVol
(t *testing.T, server *torus.Server, volname string)
integration/integration_test.go:131
↓ 2 callers
Function
parseJSONArg
(s string)
cmd/torusblk/flex.go:129
↓ 2 callers
Method
printBalance
()
cmd/ringtool/ringtool.go:164
↓ 2 callers
Method
readFromPeer
(ctx context.Context, i torus.BlockRef, peer string)
distributor/storage.go:163
↓ 2 callers
Method
readSequential
(ctx context.Context, i torus.BlockRef, peers torus.PeerPermutation, timeout time.Duration)
distributor/storage.go:87
↓ 2 callers
Function
readWriteTest
(t *testing.T, b blockset)
blockset/base_test.go:22
↓ 2 callers
Method
resize
(buf []byte)
internal/nbd/nbd.go:395
↓ 2 callers
Function
ringN
(t testing.TB, n int)
distributor/rpc_test.go:94
↓ 2 callers
Method
serveLoop
(dev Device, wg *sync.WaitGroup)
internal/nbd/nbd.go:298
↓ 2 callers
Method
set
(i int)
distributor/protocols/tdp/bitset.go:5
↓ 2 callers
Method
setStore
(store torus.BlockStore)
blockset/blockset_main.go:39
↓ 2 callers
Method
updatePeerMap
()
heartbeat.go:122
↓ 2 callers
Function
volumeCreateBlockFromSnapshotAction
(cmd *cobra.Command, args []string)
cmd/torusctl/volume.go:133
↓ 2 callers
Function
writeFull
(w io.Writer, buf []byte)
internal/nbd/nbdserver.go:239
↓ 2 callers
Method
writeMetadata
()
storage/block_device.go:478
↓ 2 callers
Method
writeToBlock
(i, from, to int, data []byte)
file.go:124
↓ 1 callers
Method
AddTimeoutCallback
(f func(uuid string))
heartbeat.go:95
↓ 1 callers
Method
BeginHeartbeat
BeginHeartbeat spawns a goroutine for heartbeats. Non-blocking.
heartbeat.go:40
↓ 1 callers
Method
Check
(ctx context.Context, peer string, refs []torus.BlockRef)
distributor/rebalance/rebalancer.go:29
↓ 1 callers
Method
Clear
()
block/gc_block_vol.go:134
↓ 1 callers
Method
Close
()
server.go:71
← previous
next →
201–300 of 1,324, ranked by callers