mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-09 00:00:17 +03:00
Some checks failed
build / bcachefs-tools-deb (ubuntu-22.04) (push) Has been cancelled
build / bcachefs-tools-deb (ubuntu-24.04) (push) Has been cancelled
build / bcachefs-tools-rpm (push) Has been cancelled
build / bcachefs-tools-msrv (push) Has been cancelled
Nix Flake actions / nix-matrix (push) Has been cancelled
Nix Flake actions / ${{ matrix.name }} (${{ matrix.system }}) (push) Has been cancelled
Add a tool for creating small image files. Data is written out in a reproducible order, sequentially from the start of the device. Metadata is initially written to a temporary device, then after writing out data, the metadata we want to keep (alloc info is left out by default) is migrated to the real device. Then, the image file is trimmed to minimum size and the temporary metadata device dropped. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
58 lines
1.4 KiB
C
58 lines
1.4 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_recover_super(int argc, char *argv[]);
|
|
int cmd_reset_counters(int argc, char *argv[]);
|
|
int cmd_strip_alloc(int argc, char *argv[]);
|
|
int cmd_set_option(int argc, char *argv[]);
|
|
|
|
int image_cmds(int argc, char *argv[]);
|
|
|
|
int fs_usage(void);
|
|
int cmd_fs_usage(int argc, char *argv[]);
|
|
int cmd_fs_top(int argc, char *argv[]);
|
|
|
|
int device_cmds(int argc, char *argv[]);
|
|
|
|
int data_cmds(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 fs_cmds(int argc, char *argv[]);
|
|
int subvolume_cmds(int argc, char *argv[]);
|
|
|
|
#endif /* _CMDS_H */
|