mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-01-22 00:04:31 +03:00
43a1380575
Implement 'bcachefs data scrub', frontend for BCH_IOCTL_DATA.BCH_DATA_OP_scrub. Takes a path to a device, mountpoint, or filesystem uuid. Can be run on a specific device by passing a device, or if run on a filesystem scrubs all devices in parallel. Metadata only scrubbing is supported via -m. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
65 lines
1.8 KiB
C
65 lines
1.8 KiB
C
/*
|
|
* Author: Kent Overstreet <kent.overstreet@gmail.com>
|
|
*
|
|
* GPLv2
|
|
*/
|
|
|
|
#ifndef _CMDS_H
|
|
#define _CMDS_H
|
|
|
|
#include "tools-util.h"
|
|
|
|
int cmd_format(int argc, char *argv[]);
|
|
int cmd_show_super(int argc, char *argv[]);
|
|
int cmd_reset_counters(int argc, char *argv[]);
|
|
int cmd_set_option(int argc, char *argv[]);
|
|
|
|
int cmd_fs_usage(int argc, char *argv[]);
|
|
|
|
int device_usage(void);
|
|
int cmd_device_add(int argc, char *argv[]);
|
|
int cmd_device_remove(int argc, char *argv[]);
|
|
int cmd_device_online(int argc, char *argv[]);
|
|
int cmd_device_offline(int argc, char *argv[]);
|
|
int cmd_device_evacuate(int argc, char *argv[]);
|
|
int cmd_device_set_state(int argc, char *argv[]);
|
|
int cmd_device_resize(int argc, char *argv[]);
|
|
int cmd_device_resize_journal(int argc, char *argv[]);
|
|
|
|
int data_usage(void);
|
|
int cmd_data_rereplicate(int argc, char *argv[]);
|
|
int cmd_data_scrub(int argc, char *argv[]);
|
|
int cmd_data_job(int argc, char *argv[]);
|
|
|
|
int cmd_unlock(int argc, char *argv[]);
|
|
int cmd_set_passphrase(int argc, char *argv[]);
|
|
int cmd_remove_passphrase(int argc, char *argv[]);
|
|
|
|
int cmd_fsck(int argc, char *argv[]);
|
|
|
|
int cmd_dump(int argc, char *argv[]);
|
|
int cmd_list_journal(int argc, char *argv[]);
|
|
int cmd_kill_btree_node(int argc, char *argv[]);
|
|
|
|
int cmd_migrate(int argc, char *argv[]);
|
|
int cmd_migrate_superblock(int argc, char *argv[]);
|
|
|
|
int cmd_version(int argc, char *argv[]);
|
|
|
|
int cmd_setattr(int argc, char *argv[]);
|
|
|
|
int subvolume_usage(void);
|
|
int cmd_subvolume_create(int argc, char *argv[]);
|
|
int cmd_subvolume_delete(int argc, char *argv[]);
|
|
int cmd_subvolume_snapshot(int argc, char *argv[]);
|
|
|
|
int cmd_fusemount(int argc, char *argv[]);
|
|
|
|
void bcachefs_usage(void);
|
|
int device_cmds(int argc, char *argv[]);
|
|
int fs_cmds(int argc, char *argv[]);
|
|
int data_cmds(int argc, char *argv[]);
|
|
int subvolume_cmds(int argc, char *argv[]);
|
|
|
|
#endif /* _CMDS_H */
|