mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
UBIFS: define journal head numbers in ubifs-media.h
The journal head names and numbers are part of the UBIFS format, so they should be in the ubifs-media.h. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This commit is contained in:
parent
873a64c762
commit
d6d140097b
2 changed files with 11 additions and 6 deletions
|
@ -135,6 +135,13 @@
|
||||||
/* The key is always at the same position in all keyed nodes */
|
/* The key is always at the same position in all keyed nodes */
|
||||||
#define UBIFS_KEY_OFFSET offsetof(struct ubifs_ino_node, key)
|
#define UBIFS_KEY_OFFSET offsetof(struct ubifs_ino_node, key)
|
||||||
|
|
||||||
|
/* Garbage collector journal head number */
|
||||||
|
#define UBIFS_GC_HEAD 0
|
||||||
|
/* Base journal head number */
|
||||||
|
#define UBIFS_BASE_HEAD 1
|
||||||
|
/* Data journal head number */
|
||||||
|
#define UBIFS_DATA_HEAD 2
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* LEB Properties Tree node types.
|
* LEB Properties Tree node types.
|
||||||
*
|
*
|
||||||
|
|
|
@ -105,12 +105,10 @@
|
||||||
/* Number of non-data journal heads */
|
/* Number of non-data journal heads */
|
||||||
#define NONDATA_JHEADS_CNT 2
|
#define NONDATA_JHEADS_CNT 2
|
||||||
|
|
||||||
/* Garbage collector head */
|
/* Shorter names for journal head numbers for internal usage */
|
||||||
#define GCHD 0
|
#define GCHD UBIFS_GC_HEAD
|
||||||
/* Base journal head number */
|
#define BASEHD UBIFS_BASE_HEAD
|
||||||
#define BASEHD 1
|
#define DATAHD UBIFS_DATA_HEAD
|
||||||
/* First "general purpose" journal head */
|
|
||||||
#define DATAHD 2
|
|
||||||
|
|
||||||
/* 'No change' value for 'ubifs_change_lp()' */
|
/* 'No change' value for 'ubifs_change_lp()' */
|
||||||
#define LPROPS_NC 0x80000001
|
#define LPROPS_NC 0x80000001
|
||||||
|
|
Loading…
Reference in a new issue