dream-lab / ElfStore

ElfStore: Edge local federated Store
Apache License 2.0
3 stars 2 forks source link

MD5 checksum for blocks should be part of metadata #24

Closed simmhan closed 5 years ago

skmonga commented 5 years ago

Need to add the MD5 checksum for the blocks alongside other metadata.

skmonga commented 5 years ago

The metadata is updated in two different ways, one involving remote write and other being a local write. In case of a remote write, the parent Fog will send the data to its Edge device for writing and afterwards using the data compute the MD5 checksum and store it as part of the metadata of the block. In case of local write, the Edge device to which data is written is either the client itself or one of the Edges with which the client can directly communicate. The client sends the data to the Edge device directly and after completion of the write makes a call to its parent Fog for the metadata insertion only. Since the data is not passed to the Fog in this case, the client should itself compute the MD5 checksum of the block and pass it as part of the metadata itself.