]> git.sesse.net Git - bcachefs-tools-debian/blob - libbcache/notify.h
Delete more unused shim code, update bcache code
[bcachefs-tools-debian] / libbcache / notify.h
1 /*
2  * Code for sending uevent notifications to user-space.
3  *
4  * Copyright 2015 Datera, Inc.
5  */
6
7 #ifndef _NOTIFY_H
8 #define _NOTIFY_H
9
10 #ifndef NO_BCACHE_NOTIFY
11
12 void bch_notify_fs_read_write(struct cache_set *);
13 void bch_notify_fs_read_only(struct cache_set *);
14 void bch_notify_fs_stopped(struct cache_set *);
15
16 void bch_notify_dev_read_write(struct cache *);
17 void bch_notify_dev_read_only(struct cache *);
18 void bch_notify_dev_added(struct cache *);
19 void bch_notify_dev_removing(struct cache *);
20 void bch_notify_dev_removed(struct cache *);
21 void bch_notify_dev_remove_failed(struct cache *);
22 void bch_notify_dev_error(struct cache *, bool);
23
24 #else
25
26 static inline void bch_notify_fs_read_write(struct cache_set *c) {}
27 static inline void bch_notify_fs_read_only(struct cache_set *c) {}
28 static inline void bch_notify_fs_stopped(struct cache_set *c) {}
29
30 static inline void bch_notify_dev_read_write(struct cache *ca) {}
31 static inline void bch_notify_dev_read_only(struct cache *ca) {}
32 static inline void bch_notify_dev_added(struct cache *ca) {}
33 static inline void bch_notify_dev_removing(struct cache *ca) {}
34 static inline void bch_notify_dev_removed(struct cache *ca) {}
35 static inline void bch_notify_dev_remove_failed(struct cache *ca) {}
36 static inline void bch_notify_dev_error(struct cache *ca, bool b) {}
37
38 #endif
39
40 #endif /* _NOTIFY_H */