On Wed, Mar 30, 2011 at 06:53:09PM +0200, Jan Schmidt wrote:
> - scrub commands added
> - open_file_or_dir no longer static (needed by scrub.c)
>
> Signed-off-by: Jan Schmidt <list.btrfs@xxxxxxxxxxxxx>
> ---
> Makefile | 4 ++--
> btrfs.c | 18 +++++++++++++++++-
> btrfs_cmds.c | 3 ++-
> btrfs_cmds.h | 5 +++++
> 4 files changed, 26 insertions(+), 4 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 6e6f6c6..6630887 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -37,8 +37,8 @@ all: version $(progs) manpages
> version:
> bash version.sh
>
> -btrfs: $(objects) btrfs.o btrfs_cmds.o
> - gcc $(CFLAGS) -o btrfs btrfs.o btrfs_cmds.o \
> +btrfs: $(objects) btrfs.o btrfs_cmds.o scrub.o
> + gcc -lpthread $(CFLAGS) -o btrfs btrfs.o btrfs_cmds.o scrub.o \
> $(objects) $(LDFLAGS) $(LIBS)
>
> btrfsctl: $(objects) btrfsctl.o
> diff --git a/btrfs.c b/btrfs.c
> index 46314cf..2dfa0b7 100644
> --- a/btrfs.c
> +++ b/btrfs.c
> @@ -89,12 +89,28 @@ static struct Command commands[] = {
> },
> { do_df_filesystem, 1,
> "filesystem df", "<path>\n"
> - "Show space usage information for a mount point\n."
> + "Show space usage information for a mount point."
> },
> { do_balance, 1,
> "filesystem balance", "<path>\n"
> "Balance the chunks across the device."
> },
> + { do_scrub_start, -1,
> + "scrub start", "[-Bdqr] <path>|<device>\n"
> + "Start a new scrub."
Could you update this patch with detailed help for the various
command-line options, now that we've got a field for it in struct
Command?
Hugo.
--
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
--- There is no dark side to the Moon, really. As a matter of ---
fact, it's all dark.
Attachment:
signature.asc
Description: Digital signature
