1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-08-03 08:22:00 +03:00

libdm: parse more info from cache status

Parse Fail/Error/need_check/ro status info from cache.
This commit is contained in:
Zdenek Kabelac
2016-03-09 18:00:57 +01:00
parent 9918d95490
commit 29d1533a49
3 changed files with 26 additions and 1 deletions

View File

@ -361,8 +361,14 @@ struct dm_status_cache {
char **core_argv;
char *policy_name;
int policy_argc;
int policy_argc;
char **policy_argv;
unsigned error : 1; /* detected error (switches to fail soon) */
unsigned fail : 1; /* all I/O fails */
unsigned needs_check : 1; /* metadata needs check */
unsigned read_only : 1; /* metadata may not be changed */
uint32_t reserved : 28;
};
int dm_get_status_cache(struct dm_pool *mem, const char *params,