cmogstored.git  about / heads / tags
alternative mogstored implementation for MogileFS
blob 8c80d74e7eb02e9f5fce2bb12fd1b56cd25ba89b 319 bytes (raw)
$ git show gl-env: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-2016 all contributors <cmogstored-public@bogomips.org>
 * License: GPLv3 or later (see COPYING for details)
 */
#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