mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-07 21:18:59 +03:00
5c8922b724
A patch to the kernel, adding the 'luid' field to dm_ulog_request, will allow us to properly identify log instances. We will now be able to definitively identify which logs are to be removed/ suspended/resumed. This replaces the old faulty behavior of assuming the logs were the same if they had the same UUID and incrementing/decrementing a reference count.
24 lines
653 B
C
24 lines
653 B
C
#ifndef __CLOG_FUNCTIONS_DOT_H__
|
|
#define __CLOG_FUNCTIONS_DOT_H__
|
|
|
|
#include <linux/dm-log-userspace.h>
|
|
#include "cluster.h"
|
|
|
|
#define LOG_RESUMED 1
|
|
#define LOG_SUSPENDED 2
|
|
|
|
int local_resume(struct dm_ulog_request *rq);
|
|
int cluster_postsuspend(char *, uint64_t);
|
|
|
|
int do_request(struct clog_request *rq, int server);
|
|
int push_state(const char *uuid, uint64_t luid,
|
|
const char *which, char **buf, uint32_t debug_who);
|
|
int pull_state(const char *uuid, uint64_t luid,
|
|
const char *which, char *buf, int size);
|
|
|
|
int log_get_state(struct dm_ulog_request *rq);
|
|
int log_status(void);
|
|
void log_debug(void);
|
|
|
|
#endif /* __CLOG_FUNCTIONS_DOT_H__ */
|