cmogstored.git about / heads / tags alternative mogstored implementation for MogileFS
blob 81426f4d4cd9f04f81476f8068b6c9db6b53ca7a 326 bytes (raw) $ git show HEAD:path_parser.h # shows this blob on the CLI
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* * Copyright (C) 2012-2020 all contributors <cmogstored-public@yhbt.net> * License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt> */ #include "config.h" #include <stdint.h> static void mog_devid_incr(uint32_t *mog_devid, unsigned c) { *mog_devid *= 10; *mog_devid += c - '0'; /* no overflow checking here */ }
git clone https://yhbt.net/cmogstored.git