summaryrefslogtreecommitdiff
path: root/libbcache/notify.h
blob: 80d658768764e22b10d8582499da54ad2e05c836 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Code for sending uevent notifications to user-space.
 *
 * Copyright 2015 Datera, Inc.
 */

#ifndef _NOTIFY_H
#define _NOTIFY_H

void bch_notify_cache_set_read_write(struct cache_set *);
void bch_notify_cache_set_read_only(struct cache_set *);
void bch_notify_cache_set_stopped(struct cache_set *);

void bch_notify_cache_read_write(struct cache *);
void bch_notify_cache_read_only(struct cache *);
void bch_notify_cache_added(struct cache *);
void bch_notify_cache_removing(struct cache *);
void bch_notify_cache_removed(struct cache *);
void bch_notify_cache_remove_failed(struct cache *);
void bch_notify_cache_error(struct cache *, bool);

#endif /* _NOTIFY_H */