2013-06-27 05:42:39 +04:00
|
|
|
/*
|
2016-03-12 09:18:42 +03:00
|
|
|
* Author: Kent Overstreet <kent.overstreet@gmail.com>
|
2013-06-27 05:42:39 +04:00
|
|
|
*
|
|
|
|
* GPLv2
|
|
|
|
*/
|
|
|
|
|
2017-02-02 06:16:42 +03:00
|
|
|
#ifndef _CMDS_H
|
|
|
|
#define _CMDS_H
|
2010-10-08 18:04:49 +04:00
|
|
|
|
2017-01-08 12:13:18 +03:00
|
|
|
#include "tools-util.h"
|
2015-01-15 12:33:48 +03:00
|
|
|
|
2016-08-24 06:50:31 +03:00
|
|
|
int cmd_format(int argc, char *argv[]);
|
2017-03-12 17:53:43 +03:00
|
|
|
int cmd_show_super(int argc, char *argv[]);
|
2024-01-05 03:45:54 +03:00
|
|
|
int cmd_reset_counters(int argc, char *argv[]);
|
2022-05-26 23:26:53 +03:00
|
|
|
int cmd_set_option(int argc, char *argv[]);
|
2016-08-24 06:50:31 +03:00
|
|
|
|
2017-12-23 08:50:55 +03:00
|
|
|
int cmd_fs_usage(int argc, char *argv[]);
|
2016-08-24 06:50:31 +03:00
|
|
|
|
2021-11-01 07:30:13 +03:00
|
|
|
int device_usage(void);
|
2016-08-24 06:50:31 +03:00
|
|
|
int cmd_device_add(int argc, char *argv[]);
|
|
|
|
int cmd_device_remove(int argc, char *argv[]);
|
2017-03-12 17:53:43 +03:00
|
|
|
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[]);
|
2017-12-28 09:01:16 +03:00
|
|
|
int cmd_device_resize(int argc, char *argv[]);
|
2020-11-17 18:52:29 +03:00
|
|
|
int cmd_device_resize_journal(int argc, char *argv[]);
|
2016-08-24 06:50:31 +03:00
|
|
|
|
2021-11-01 07:30:13 +03:00
|
|
|
int data_usage(void);
|
2018-02-08 23:30:19 +03:00
|
|
|
int cmd_data_rereplicate(int argc, char *argv[]);
|
2024-12-29 16:44:31 +03:00
|
|
|
int cmd_data_scrub(int argc, char *argv[]);
|
2021-03-17 04:37:23 +03:00
|
|
|
int cmd_data_job(int argc, char *argv[]);
|
2018-02-08 23:30:19 +03:00
|
|
|
|
2017-11-09 04:03:59 +03:00
|
|
|
int cmd_unlock(int argc, char *argv[]);
|
|
|
|
int cmd_set_passphrase(int argc, char *argv[]);
|
|
|
|
int cmd_remove_passphrase(int argc, char *argv[]);
|
|
|
|
|
2017-01-08 12:13:18 +03:00
|
|
|
int cmd_fsck(int argc, char *argv[]);
|
|
|
|
|
2017-02-03 09:45:08 +03:00
|
|
|
int cmd_dump(int argc, char *argv[]);
|
2020-03-25 23:20:45 +03:00
|
|
|
int cmd_list_journal(int argc, char *argv[]);
|
2022-04-08 02:25:30 +03:00
|
|
|
int cmd_kill_btree_node(int argc, char *argv[]);
|
2017-02-03 09:45:08 +03:00
|
|
|
|
2017-03-01 13:45:15 +03:00
|
|
|
int cmd_migrate(int argc, char *argv[]);
|
|
|
|
int cmd_migrate_superblock(int argc, char *argv[]);
|
|
|
|
|
2018-02-14 12:28:24 +03:00
|
|
|
int cmd_version(int argc, char *argv[]);
|
|
|
|
|
2018-12-19 23:41:47 +03:00
|
|
|
int cmd_setattr(int argc, char *argv[]);
|
|
|
|
|
2021-11-01 07:30:13 +03:00
|
|
|
int subvolume_usage(void);
|
2021-03-04 22:48:21 +03:00
|
|
|
int cmd_subvolume_create(int argc, char *argv[]);
|
|
|
|
int cmd_subvolume_delete(int argc, char *argv[]);
|
|
|
|
int cmd_subvolume_snapshot(int argc, char *argv[]);
|
|
|
|
|
2019-10-01 21:06:58 +03:00
|
|
|
int cmd_fusemount(int argc, char *argv[]);
|
2024-01-08 04:36:33 +03:00
|
|
|
|
2024-01-16 09:41:00 +03:00
|
|
|
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[]);
|
2019-10-01 21:06:58 +03:00
|
|
|
|
2017-02-02 06:16:42 +03:00
|
|
|
#endif /* _CMDS_H */
|