cmogstored.git  about / heads / tags
alternative mogstored implementation for MogileFS
blob 39c8c310d7cd06cf2c18a8c0f49d6fe2bf3c8276 319 bytes (raw)
$ git show v1.4.2: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-2015 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