pmemset API version 1.0

The PMDK repository on GitHub is the ultimate source of information on PMDK from release 2.0! For all questions and to submit eventual issues please follow to that repository. The PMDK documentation collected here should be valid up to the 1.13.1 release but is maintained only on a best-effort basis and may not reflect the latest state of the art.

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
SEE ALSO

NAME

pmemset_get_store_granularity() - reads effective mappings granularity for pmemset

SYNOPSIS

#include <libpmemset.h>

int pmemset_get_store_granularity(struct pmemset *set, enum pmem2_granularity *g);

DESCRIPTION

The pmemset_get_store_granularity() function reads effective granularity of the set object and puts it in the *g;

The set object has to contain at least one mapped part using pmemset_map(3) function, otherwise reading granularity value is pointless and function pmemset_get_store_granularity(3) will fail.

Concept of the granularity is described in libpmem2(7).

RETURN VALUE

The pmemset_get_store_granularity() function returns 0 on success or a negative error code on failure.

ERRORS

pmemset_get_store_granularity() can fail with the following error:

  • PMEMSET_E_NO_PART_MAPPED - cannot read effective granularity of the set because it does not contain any mapped parts.

SEE ALSO

pmemset_config_set_required_store_graularity(3), pmemset_map(3), libpmem2**(7), libpmemset(7) and http://pmem.io

The contents of this web site and the associated GitHub repositories are BSD-licensed open source.