From 2eea0f9799ff2405f525235240f57c6ca135c4d2 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 14 Nov 2015 13:01:17 +0100 Subject: [PATCH] Add hash algos as flags on the folder in cluster config --- specs/bep-v1.rst | 10 +++++++++- {draft => users}/hashalgo.rst | 0 2 files changed, 9 insertions(+), 1 deletion(-) rename {draft => users}/hashalgo.rst (100%) diff --git a/specs/bep-v1.rst b/specs/bep-v1.rst index 7d47ccca2..eaf6e438f 100644 --- a/specs/bep-v1.rst +++ b/specs/bep-v1.rst @@ -337,7 +337,7 @@ folder Flags field contains the following single bit flags: 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Reserved |D|P|R| + | Reserved | Hash |D|P|R| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ :Bit 31 ("R", Read Only): @@ -351,6 +351,14 @@ folder Flags field contains the following single bit flags: :Bit 29 ("D", Ignore Deletes): is set for folders that the device will ignore deletes for. +:Bits 25-28 (Hash): + indicates the hash algorithm in use for this folder, as a four bit integer. + The value values are: + + - 0: SHA256 + - 1: Murmur3-128 + - 2-15: Reserved for future usage + The **Options** field contains a list of options that apply to the folder. Fields (Device Structure) diff --git a/draft/hashalgo.rst b/users/hashalgo.rst similarity index 100% rename from draft/hashalgo.rst rename to users/hashalgo.rst