2017-01-08 12:13:18 +03:00
|
|
|
/*
|
|
|
|
* Code for sending uevent notifications to user-space.
|
|
|
|
*
|
|
|
|
* Copyright 2015 Datera, Inc.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NOTIFY_H
|
|
|
|
#define _NOTIFY_H
|
|
|
|
|
2017-03-04 09:09:52 +03:00
|
|
|
#ifndef NO_BCACHE_NOTIFY
|
|
|
|
|
2017-03-11 00:40:01 +03:00
|
|
|
void bch_notify_fs_read_write(struct bch_fs *);
|
|
|
|
void bch_notify_fs_read_only(struct bch_fs *);
|
|
|
|
void bch_notify_fs_stopped(struct bch_fs *);
|
|
|
|
|
|
|
|
void bch_notify_dev_read_write(struct bch_dev *);
|
|
|
|
void bch_notify_dev_read_only(struct bch_dev *);
|
|
|
|
void bch_notify_dev_added(struct bch_dev *);
|
|
|
|
void bch_notify_dev_removing(struct bch_dev *);
|
|
|
|
void bch_notify_dev_removed(struct bch_dev *);
|
|
|
|
void bch_notify_dev_remove_failed(struct bch_dev *);
|
|
|
|
void bch_notify_dev_error(struct bch_dev *, bool);
|
2017-03-04 09:09:52 +03:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
2017-03-11 00:40:01 +03:00
|
|
|
static inline void bch_notify_fs_read_write(struct bch_fs *c) {}
|
|
|
|
static inline void bch_notify_fs_read_only(struct bch_fs *c) {}
|
|
|
|
static inline void bch_notify_fs_stopped(struct bch_fs *c) {}
|
|
|
|
|
|
|
|
static inline void bch_notify_dev_read_write(struct bch_dev *ca) {}
|
|
|
|
static inline void bch_notify_dev_read_only(struct bch_dev *ca) {}
|
|
|
|
static inline void bch_notify_dev_added(struct bch_dev *ca) {}
|
|
|
|
static inline void bch_notify_dev_removing(struct bch_dev *ca) {}
|
|
|
|
static inline void bch_notify_dev_removed(struct bch_dev *ca) {}
|
|
|
|
static inline void bch_notify_dev_remove_failed(struct bch_dev *ca) {}
|
|
|
|
static inline void bch_notify_dev_error(struct bch_dev *ca, bool b) {}
|
2017-03-04 09:09:52 +03:00
|
|
|
|
|
|
|
#endif
|
2017-01-08 12:13:18 +03:00
|
|
|
|
|
|
|
#endif /* _NOTIFY_H */
|