mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
cstyle: Resolve C style issues
The vast majority of these changes are in Linux specific code. They are the result of not having an automated style checker to validate the code when it was originally written. Others were caused when the common code was slightly adjusted for Linux. This patch contains no functional changes. It only refreshes the code to conform to style guide. Everyone submitting patches for inclusion upstream should now run 'make checkstyle' and resolve any warning prior to opening a pull request. The automated builders have been updated to fail a build if when 'make checkstyle' detects an issue. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #1821
This commit is contained in:
committed by
Brian Behlendorf
parent
8ffef572ed
commit
d1d7e2689d
@@ -39,7 +39,7 @@ extern "C" {
|
||||
#define FM_EREPORT_ZFS_CONFIG_SYNC "config.sync"
|
||||
#define FM_EREPORT_ZFS_POOL "zpool"
|
||||
#define FM_EREPORT_ZFS_POOL_DESTROY "zpool.destroy"
|
||||
#define FM_EREPORT_ZFS_POOL_REGUID "zpool.reguid"
|
||||
#define FM_EREPORT_ZFS_POOL_REGUID "zpool.reguid"
|
||||
#define FM_EREPORT_ZFS_DEVICE_UNKNOWN "vdev.unknown"
|
||||
#define FM_EREPORT_ZFS_DEVICE_OPEN_FAILED "vdev.open_failed"
|
||||
#define FM_EREPORT_ZFS_DEVICE_CORRUPT_DATA "vdev.corrupt_data"
|
||||
|
||||
@@ -71,22 +71,22 @@ typedef struct erpt_dump {
|
||||
|
||||
#ifdef _KERNEL
|
||||
|
||||
#define ZEVENT_SHUTDOWN 0x1
|
||||
#define ZEVENT_SHUTDOWN 0x1
|
||||
|
||||
typedef void zevent_cb_t(nvlist_t *, nvlist_t *);
|
||||
|
||||
typedef struct zevent_s {
|
||||
nvlist_t *ev_nvl; /* protected by the zevent_lock */
|
||||
nvlist_t *ev_detector; /* " */
|
||||
list_t ev_ze_list; /* " */
|
||||
list_node_t ev_node; /* " */
|
||||
zevent_cb_t *ev_cb; /* " */
|
||||
nvlist_t *ev_nvl; /* protected by the zevent_lock */
|
||||
nvlist_t *ev_detector; /* " */
|
||||
list_t ev_ze_list; /* " */
|
||||
list_node_t ev_node; /* " */
|
||||
zevent_cb_t *ev_cb; /* " */
|
||||
} zevent_t;
|
||||
|
||||
typedef struct zfs_zevent {
|
||||
zevent_t *ze_zevent; /* protected by the zevent_lock */
|
||||
list_node_t ze_node; /* " */
|
||||
uint64_t ze_dropped; /* " */
|
||||
zevent_t *ze_zevent; /* protected by the zevent_lock */
|
||||
list_node_t ze_node; /* " */
|
||||
uint64_t ze_dropped; /* " */
|
||||
} zfs_zevent_t;
|
||||
|
||||
extern void fm_init(void);
|
||||
|
||||
Reference in New Issue
Block a user