commit cc34761d0d55ea6c036421cf4fee677ccbe657a4
parent 6699070ee14aa0fc3a48c52e0a146f6946e39ce5
Author: sin <sin@2f30.org>
Date: Fri, 26 Apr 2019 11:22:11 +0100
Add some comments
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bstorage.c b/bstorage.c
@@ -413,7 +413,7 @@ bsopen(struct bctx *bctx, char *path, int flags, int mode, struct bparam *bpar)
return -1;
}
- /* Populate bparam */
+ /* Populate bparam compression algo */
calgo = (bhdr->flags >> CALGOSHIFT) & CALGOMASK;
switch (calgo) {
case CNONETYPE:
@@ -428,6 +428,7 @@ bsopen(struct bctx *bctx, char *path, int flags, int mode, struct bparam *bpar)
return -1;
}
+ /* Populate bparam hash algo */
halgo = (bhdr->flags >> HALGOSHIFT) & HALGOMASK;
switch (halgo) {
case HBLAKE2BTYPE: